finish calibration for front hoverboard pcb

This commit is contained in:
interfisch 2019-12-11 00:18:17 +01:00
parent 794edd5169
commit 9fb4b7a8d5
1 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@
#include "stm32f1xx_hal.h" #include "stm32f1xx_hal.h"
//Select the calibration values for the different pcbs //Select the calibration values for the different pcbs
//#define BOBBYCAR_PCB_FRONT #define BOBBYCAR_PCB_FRONT //Green PCB
#define BOBBYCAR_PCB_REAR //#define BOBBYCAR_PCB_REAR //Blue PCB
// ############################### DO-NOT-TOUCH SETTINGS ############################### // ############################### DO-NOT-TOUCH SETTINGS ###############################
@ -53,7 +53,7 @@
#endif #endif
#ifdef BOBBYCAR_PCB_FRONT #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_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 #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