Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

battery: only reset soc filter with valid voltage measurement #23513

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

chfriedrich98
Copy link
Contributor

Solved Problem

If the battery is disconnected (voltage measurement below a hardcoded value of 2.1 V) even for just one sample it causes the SoC filter to reset with the current voltage measurement. This leads to the SoC dropping to 0 for one sample which triggers a battery failsafe.

Solution

Protect the state of charge filter from being reset when the battery is disconnected.

@chfriedrich98 chfriedrich98 self-assigned this Aug 7, 2024
@chfriedrich98 chfriedrich98 merged commit a91aa40 into PX4:main Aug 8, 2024
91 checks passed
vertiq-jordan pushed a commit to iq-motion-control/PX4-Autopilot that referenced this pull request Aug 21, 2024
@chfriedrich98 chfriedrich98 deleted the battery_disconnect_reset branch August 29, 2024 13:33
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