Skip to content

Conversation

@LKuemmel
Copy link
Contributor

@LKuemmel LKuemmel commented Sep 10, 2025

https://forum.openwb.de/viewtopic.php?p=132522#p132522
Vorher wurde sich der letzte eingegebene SoC gemerkt und davon ausgehend der aktuelle SoC berechnet. Nun wird immer der letzte bekannte SoC und der zugehörige Zählerstand genutzt. Wenn abgesteckt wird, wird der letzte Zählerstand gelöscht.

@LKuemmel LKuemmel added this to the 2.1.9 milestone Sep 10, 2025
# Wenn Sie dann doch noch den alten SoC liefert, darf dieser nicht verworfen werden.
self.store.set(car_state)
elif vehicle_update_data.soc_timestamp > 1e10:
elif vehicle_update_data.last_soc_timestamp > 1e10:
Copy link
Contributor

Choose a reason for hiding this comment

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

Was genau bedeutet 1e10? -> Konstante mit sprechendem Namen?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

umgesetzt

@LKuemmel LKuemmel merged commit 10442c5 into openWB:master Oct 29, 2025
1 check passed
@LKuemmel LKuemmel deleted the calc_soc branch October 29, 2025 10:03
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