Commit Graph

2 Commits

Author SHA1 Message Date
MickiusMousius 5ceaa1b879 Fix: Use a lookup table & interpolation to better estimate remaining battery capacity
The old battery capacity estimate code uses a linear approximation to estimate the remaining battery capacity. This is computationally very efficient, however, the estimate is very inaccurate once below 60%.

This change uses a small table of bounded functions to provide a more accurate estimate of remaining capacity. The values in the table re-implement the old estimation "curve".
2025-04-13 14:01:48 +09:30
Peter Johanson 690bc1bb44 refactor: Move drivers into properly module.
* Align our driver module layout to properly match Zephyr conventions,
  allowing proper CMake setup to amend the library for each type of driver.
2023-09-16 11:52:40 -07:00