move bat_cells to defines
This commit is contained in:
parent
d62793f9a2
commit
094cb5ecb3
12
Inc/config.h
12
Inc/config.h
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue