Skip to content

rewrite dac consumer module - #3878

Draft
benderl wants to merge 1 commit into
openWB:feature_consumer_modulesfrom
benderl:fixes-dac-comsumer
Draft

rewrite dac consumer module#3878
benderl wants to merge 1 commit into
openWB:feature_consumer_modulesfrom
benderl:fixes-dac-comsumer

Conversation

@benderl

@benderl benderl commented Aug 31, 2026

Copy link
Copy Markdown
Contributor
  • add configuration option for "live zero"
  • restructure dac model definition
  • use generic parameter based calculations
  • allow use of first or second analog output for model M120T

UI: openWB/openwb-ui-settings#1070

@benderl
benderl force-pushed the fixes-dac-comsumer branch 2 times, most recently from c8754c5 to deaa366 Compare August 31, 2026 11:05
@benderl
benderl requested a balanced review from Copilot August 31, 2026 11:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reworks generic DAC consumers to support model-driven scaling, live-zero signals, and both M120T outputs.

Changes:

  • Centralizes DAC model parameters.
  • Adds configurable signal-range mapping.
  • Adds separate M120T output selections.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
model.py Defines model-specific output parameters.
consumer.py Implements generic scaling and Modbus writes.
config.py Adds signal-range configuration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/modules/consumers/generic/dac/config.py
Comment thread packages/modules/consumers/generic/dac/model.py
@benderl
benderl force-pushed the fixes-dac-comsumer branch from deaa366 to 134ad5e Compare August 31, 2026 11:11
@benderl
benderl requested a review from ndrsnhs August 31, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants