improved low bat detection on other then 10s

This commit is contained in:
larsm 2018-07-22 20:34:04 +02:00
parent a31ea1dcd1
commit 2932480274
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
#define BAT_CALIB_REAL_VOLTAGE 42.0 // input voltage measured by multimeter
#define BAT_CALIB_ADC 1667 // adc-value measured by mainboard (value nr 4 on UART debug output)
#define BAT_NUMBER_OF_CELLS 12 // normal Hoverboard battery: 10s
#define BAT_NUMBER_OF_CELLS 10 // normal Hoverboard battery: 10s
#define BAT_LOW_LVL1 3.6 // gently beeps at this voltage level. [V/cell]
#define BAT_LOW_LVL2 3.5 // your battery is almost empty. Charge now! [V/cell]
#define BAT_LOW_DEAD 3.37 // undervoltage lockout. [V/cell]

View File

@ -131,7 +131,7 @@ int offsetrr2 = 2000;
int offsetdcl = 2000;
int offsetdcr = 2000;
float batteryVoltage = 40.0;
float batteryVoltage = BAT_NUMBER_OF_CELLS * 4.0;
int curl = 0;
// int errorl = 0;