Skip to content

rewrite dac consumer module - #3878

Merged
LKuemmel merged 1 commit into
openWB:feature_consumer_modulesfrom
benderl:fixes-dac-comsumer
Sep 8, 2026
Merged

LKuemmel merged 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
@LKuemmel
LKuemmel marked this pull request as ready for review September 7, 2026 06:40
@LKuemmel
LKuemmel force-pushed the feature_consumer_modules branch 2 times, most recently from d06a6eb to d36e5b8 Compare September 8, 2026 12:32
@LKuemmel
LKuemmel merged commit 84b3e1b into openWB:feature_consumer_modules Sep 8, 2026
1 check passed
LKuemmel pushed a commit that referenced this pull request Sep 9, 2026
LKuemmel pushed a commit that referenced this pull request Sep 9, 2026
LKuemmel pushed a commit that referenced this pull request Sep 9, 2026
LKuemmel pushed a commit that referenced this pull request Sep 9, 2026
LKuemmel pushed a commit that referenced this pull request Sep 9, 2026
LKuemmel pushed a commit that referenced this pull request Sep 9, 2026
LKuemmel pushed a commit that referenced this pull request Sep 9, 2026
LKuemmel pushed a commit that referenced this pull request Sep 9, 2026
LKuemmel added a commit that referenced this pull request Sep 9, 2026
* modules

* Vampair (#3815)

* Vampair

* typo

* review

* review

* review

* add dataclass object for set_power_limit, DAC (#3855)

* draft dac

* add dataclass object for set_power_limit

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix consumer modules (#3865)

* fix configuration type hints

* fix consumer type hints and errors

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* rewrite dac consumer module (#3878)

* fix avm usage (#3913)

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: benderl <benderl@users.noreply.github.com>
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.

4 participants