summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-02-22 10:09:12 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-02-22 10:09:12 +0100
commit0a20f4a06cc558fa527a414e0a278eb600c59a26 (patch)
tree82f62e368ed624ffb5552f23ac63e78c5d44a429
parent4e819bfad050aa0fcaa844eb8ae88b37f8775f69 (diff)
energy accounting: adjust for battery wear&tear and cut-off voltage
-rw-r--r--src/system.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h
index 12c5e0c..d23caad 100644
--- a/src/system.h
+++ b/src/system.h
@@ -15,7 +15,8 @@ class System {
uint8_t mode_changed;
// 1 Ah @ 3.7V = 13 kJ
- int16_t const energy_full = 13000;
+ // adjusted for battery wear&tear and increased cut-off voltage: 5 kJ
+ int16_t const energy_full = 5000;
int16_t energy_j;
public: