Skip to content

fix(battery): copy vehicle status states at central place to avoid logic not executed due to previous read#27046

Merged
mrpollo merged 1 commit intomainfrom
pr-battery-idel-current-follow-up-main
Apr 10, 2026
Merged

fix(battery): copy vehicle status states at central place to avoid logic not executed due to previous read#27046
mrpollo merged 1 commit intomainfrom
pr-battery-idel-current-follow-up-main

Conversation

@sfuhrer
Copy link
Copy Markdown
Contributor

@sfuhrer sfuhrer commented Apr 10, 2026

Solved Problem

Fixes #27011

Solution

  • copy data from VehicleStatus.msg in central place
  • add second class member to be able to catch moment of transition to FW

Changelog Entry

For release notes:

fix(battery): copy vehicle status states at central place to avoid logic not executed due to previous read

Test coverage

Tested in SITL (added printf for reset and simulated VTOL transition).

…gic not executed due to previous read

Signed-off-by: Silvan <silvan@auterion.com>
@mrpollo mrpollo merged commit 557f693 into main Apr 10, 2026
71 checks passed
@mrpollo mrpollo deleted the pr-battery-idel-current-follow-up-main branch April 10, 2026 21:17
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.

[Bug] Average battery current filter doesn't reset after VTOL transition

3 participants