From 094cb5ecb37f6948108b8b2cc4305369c7a3dc54 Mon Sep 17 00:00:00 2001 From: Fisch Date: Sun, 29 Dec 2019 00:36:44 +0100 Subject: [PATCH] move bat_cells to defines --- Inc/config.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Inc/config.h b/Inc/config.h index a6b6e74..207afa5 100644 --- a/Inc/config.h +++ b/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