Commit 0a20f4a0 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

energy accounting: adjust for battery wear&tear and cut-off voltage

parent 4e819bfa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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: