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

Bugfix: Clear battery events properly #177

Merged
merged 3 commits into from
Feb 13, 2024
Merged

Conversation

dalathegreat
Copy link
Owner

What

With the new introduction of Events, there are some scenarios that can never be recovered from. This PR fixes recovery for minor things, but keeps the latching for the critical stuff like under/overvoltage.

We also now zero out allowed charge/discharge power for LEAF batteries incase we enter a critical fault state. Previously it was possible to continue operation even though a critical fault was active 😱

Why

To improve safety

How

New info events are added for when battery is full/empty, and latching verified for critical safeties.

Copy link
Collaborator

@Cabooman Cabooman left a comment

Choose a reason for hiding this comment

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

Good stuff!

Software/src/battery/TESLA-MODEL-3-BATTERY.cpp Outdated Show resolved Hide resolved
@dalathegreat
Copy link
Owner Author

Latest main + this PR now running on my 30kWh LEAF battery! It feels much safer already, caught a cell undervoltage at -17*C much better than the old software 🙌

@dalathegreat dalathegreat merged commit a238c8b into main Feb 13, 2024
36 checks passed
@dalathegreat dalathegreat deleted the feature/leaf-events branch February 13, 2024 20:26
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.

3 participants