#define BAT_CALIB_REAL_VOLTAGE 43.0 // input voltage measured by multimeter
#define BAT_CALIB_ADC 1704 // adc-value measured by mainboard (value nr 5 on UART debug output)
#define BAT_NUMBER_OF_CELLS 9// normal Hoverboard battery: 10s
#define BAT_NUMBER_OF_CELLS 10// normal Hoverboard battery: 10s
#define BAT_LOW_LVL1_ENABLE 0 // to beep or not to beep, 1 or 0
#define BAT_LOW_LVL1 3.2// gently beeps at this voltage level. [V/cell]
#define BAT_LOW_LVL1 3.5// gently beeps at this voltage level. [V/cell]
#define BAT_LOW_LVL2_ENABLE 1 // to beep or not to beep, 1 or 0
#define BAT_LOW_LVL2 3.0// your battery is almost empty. Charge now! [V/cell]
#define BAT_LOW_DEAD 2.6// undervoltage poweroff. (while not driving) [V/cell]
#define BAT_LOW_LVL2 3.3// your battery is almost empty. Charge now! [V/cell]
#define BAT_LOW_DEAD 3.2// undervoltage poweroff. (while not driving) [V/cell]
#define DC_CUR_LIMIT 15 // DC current limit in amps per motor. so 15 means it will draw 30A out of your battery. it does not disable motors, it is a soft current limit.
@ -76,70 +76,18 @@
#define SUPPORT_NUNCHUCK
//#define SUPPORT_REMOTE
#define VEL_P 0.9
#define ROT_P -1.2
#define ROT_P -1.2 // P coefficient for the direction controller. Positive / Negative values to invert gametrak steering direction.
#define FILTER 0.1 // lower value == softer filter. do not use values <0.01, you will get float precision issues.
#define INVERT_R_DIRECTION // Invert right motor
#define INVERT_L_DIRECTION // Invert left motor
// ###### CONTROL VIA NINTENDO NUNCHUCK ######
// left sensor board cable. keep cable short, use shielded cable, use ferrits, stabalize voltage in nunchuck, use the right one of the 2 types of nunchucks, add i2c pullups. use original nunchuck. most clones does not work very well.
//#define CONTROL_NUNCHUCK // use nunchuck as input. disable DEBUG_SERIAL_USART3!