-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Estimate accurate battery level for some rechargable devices (#2745)
* battery: Extract battery level estimation into function Test battery level estimation with sharp edges based on predefined steps. Rename variable for clarity and add type hints. Related #2744 * battery: Interpolate battery level for some rechargeable devices in percent Estimate remaining battery based on measured battery voltage. Use linear interpolation to achieve a smooth line instead of 10 percent jumps. Fixes #2744
- Loading branch information
Showing
2 changed files
with
92 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters