From 9fb4b7a8d5d9812edc8863dbfe1082a1c96bef9c Mon Sep 17 00:00:00 2001 From: Fisch Date: Wed, 11 Dec 2019 00:18:17 +0100 Subject: [PATCH] finish calibration for front hoverboard pcb --- Inc/config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Inc/config.h b/Inc/config.h index 348a6fa..0920266 100644 --- a/Inc/config.h +++ b/Inc/config.h @@ -2,8 +2,8 @@ #include "stm32f1xx_hal.h" //Select the calibration values for the different pcbs -//#define BOBBYCAR_PCB_FRONT -#define BOBBYCAR_PCB_REAR +#define BOBBYCAR_PCB_FRONT //Green PCB +//#define BOBBYCAR_PCB_REAR //Blue PCB // ############################### DO-NOT-TOUCH SETTINGS ############################### @@ -53,7 +53,7 @@ #endif #ifdef BOBBYCAR_PCB_FRONT #define BAT_CALIB_REAL_VOLTAGE 4000 // input voltage measured by multimeter (multiplied by 100). In this case 40.00 V * 100 = 4300 - #define BAT_CALIB_ADC 1593 // adc-value measured by mainboard (value nr 5 on UART debug output) + #define BAT_CALIB_ADC 1580 // 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