Skip to content

[Electrical] Give battery, inverter and motor independent record-based contracts - #47

Merged
rhorvath02 merged 3 commits into
review/boblib-driversfrom
review/boblib-electrical
Oct 25, 2026
Merged

rhorvath02 merged 3 commits into
review/boblib-driversfrom
review/boblib-electrical

Conversation

@rhorvath02

@rhorvath02 rhorvath02 commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Related Issues

#32

Purpose

Make the battery, inverter and motor independently balanced, record-configured components.

Approach

The inverter supplies voltage and allocated power; the motor owns its current law. Add owner-named records, typed adapter contracts and updated callers. Align exported event hysteresis with integration tolerance and prefer the motor's existing rotor speed as a state to prevent CVODE stalls at direction events.

Validation

The unchanged FMU regression suite passes locally and in GitHub x86 CI: six passed, with the existing re-launch expected failure retained at this layer. The final stack passes all seven locally. Fresh initialization comparisons found identical shared physical values; four affected snapshots track the selected rotor-state names. Modelica formatting and parameter documentation checks pass. GitHub CI passes all three jobs.

@rhorvath02
rhorvath02 force-pushed the review/boblib-electrical branch from a30abe6 to 66e1a1b Compare October 22, 2026 08:44

@raorjun raorjun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve. CI is green, and the review findings are fixed or addressed in the comments above.

@rhorvath02
rhorvath02 merged commit 2065e2b into main Oct 25, 2026
3 checks passed
@rhorvath02
rhorvath02 deleted the review/boblib-electrical branch October 25, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-assisted Developed with AI agent assistance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants