diff options
author | Alex Dolzhenkov <admin@alexx.pw> | 2022-10-29 12:20:44 +1300 |
---|---|---|
committer | JF <JF002@users.noreply.github.com> | 2022-11-19 16:34:03 +0100 |
commit | 7376c02bbfa53b41fab1c49562917d678c24848f (patch) | |
tree | 452e627099746304c1c32afa9eb18da8124c624a /src/components/battery/BatteryController.h | |
parent | a67f401b306e1ef62f1824e7126ff8e962fffdb2 (diff) |
Add linear approximation and use it for improving battery percentage
Add linear approximation class and use it to better model the non-linear
discharge curve of the battery.
Changed the minimum voltage level to 3.5V and the maximum to 4.18V. For
reference the maximum observed voltage is 4.21V during charging.
Diffstat (limited to 'src/components/battery/BatteryController.h')
-rw-r--r-- | src/components/battery/BatteryController.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/components/battery/BatteryController.h b/src/components/battery/BatteryController.h index 15559916..5a7394c4 100644 --- a/src/components/battery/BatteryController.h +++ b/src/components/battery/BatteryController.h @@ -49,7 +49,6 @@ namespace Pinetime { void SaadcEventHandler(nrfx_saadc_evt_t const* p_event); static void AdcCallbackStatic(nrfx_saadc_evt_t const* event); - static uint8_t GetBatteryPercentageFromVoltage(uint16_t voltage); bool isReading = false; |