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

Harmonize the battery level ramp #41

Open
BaptisteHudyma opened this issue Nov 17, 2024 · 0 comments
Open

Harmonize the battery level ramp #41

BaptisteHudyma opened this issue Nov 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@BaptisteHudyma
Copy link
Owner

The battery level of a Liion is not linear, and currently we have a dumb way to convert from the voltage of the liion to the actual battery level (simple 3 curve approximation).
This level is remaped to the "safe" battery level (the max and min voltage for the battery, defined by the user).
(Check the battery.cpp file)

This method is imprecise, and breaks occasionally the logic of the application (eg: low battery shutdown).
It should be replaced by a finer liion discharge curve.

Suggestions:

  • All liion level to battery level values could be stored in a look up table
@BaptisteHudyma BaptisteHudyma added the enhancement New feature or request label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant