move bat_cells to defines

This commit is contained in:
interfisch 2019-12-29 00:36:44 +01:00
parent d62793f9a2
commit 094cb5ecb3
1 changed files with 11 additions and 1 deletions

View File

@ -61,7 +61,17 @@
#define BAT_CALIB_ADC 1704 // adc-value measured by mainboard (value nr 5 on UART debug output)
#endif
#define BAT_CELLS 10 // battery number of cells. Normal Hoverboard battery: 10s
//#define BAT_CELLS 10 // battery number of cells. Normal Hoverboard battery: 10s
#ifdef BOBBYCAR_PCB_REAR
#define BAT_CELLS 12
#endif
#ifdef BOBBYCAR_PCB_FRONT
#define BAT_CELLS 12
#endif
#ifdef HOVERBRETT
#define BAT_CELLS 10
#endif
#define BAT_LOW_LVL1_ENABLE 0 // to beep or not to beep, 1 or 0
#define BAT_LOW_LVL2_ENABLE 1 // to beep or not to beep, 1 or 0
#define BAT_LOW_LVL1 (360 * BAT_CELLS * BAT_CALIB_ADC) / BAT_CALIB_REAL_VOLTAGE // gently beeps at this voltage level. [V*100/cell]. In this case 3.60 V/cell