build not tracked - reformat comments in config file

config-jblb
JbLb 6 years ago
parent 2569b22640
commit 19c44c7d53

1
.gitignore vendored

@ -1,2 +1 @@
build/*
!build/hover.hex

@ -12,9 +12,21 @@
// ############################### GENERAL ###############################
// How to calibrate: connect GND and RX of a 3.3v uart-usb adapter to the right sensor board cable (be careful not to use the red wire of the cable. 15v will destroy everything.). if you are using nunchuck, disable it temporarily. enable DEBUG_SERIAL_USART3 and DEBUG_SERIAL_ASCII use asearial terminal.
// How to calibrate:
/* connect GND and RX of a 3.3v uart-usb adapter to the right sensor board cable
* (be careful not to use the red wire of the cable. 15v will destroy everything.)
* if you are using nunchuck, disable it temporarily.
* enable DEBUG_SERIAL_USART3 and DEBUG_SERIAL_ASCII use asearial terminal.
*/
// Battery voltage calibration:
/* connect power source.
* see <How to calibrate>.
* write value nr 5 to BAT_CALIB_ADC.
* make and flash firmware.
* then you can verify voltage on value 6 (devide it by 100.0 to get calibrated voltage).
*/
// Battery voltage calibration: connect power source. see <How to calibrate>. write value nr 5 to BAT_CALIB_ADC. make and flash firmware. then you can verify voltage on value 6 (devide it by 100.0 to get calibrated voltage).
#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)
@ -27,7 +39,19 @@
#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.
// Board overheat detection: the sensor is inside the STM/GD chip. it is very inaccurate without calibration (up to 45°C). so only enable this funcion after calibration! let your board cool down. see <How to calibrate>. get the real temp of the chip by thermo cam or another temp-sensor taped on top of the chip and write it to TEMP_CAL_LOW_DEG_C. write debug value 8 to TEMP_CAL_LOW_ADC. drive around to warm up the board. it should be at least 20°C warmer. repeat it for the HIGH-values. enable warning and/or poweroff and make and flash firmware.
// Board overheat detection:
/* the sensor is inside the STM/GD chip.
* it is very inaccurate without calibration (up to 45°C).
* so only enable this funcion after calibration! let your board cool down.
* see <How to calibrate>.
* get the real temp of the chip by thermo cam or another temp-sensor taped on top of the chip
* and write it to TEMP_CAL_LOW_DEG_C.
* write debug value 8 to TEMP_CAL_LOW_ADC.
* drive around to warm up the board. it should be at least 20°C warmer.
* repeat it for the HIGH-values.
* enable warning and/or poweroff and make and flash firmware.
*/
#define TEMP_CAL_LOW_ADC 1655 // temperature 1: ADC value
#define TEMP_CAL_LOW_DEG_C 35.8 // temperature 1: measured temperature [°C]
#define TEMP_CAL_HIGH_ADC 1588 // temperature 2: ADC value

Loading…
Cancel
Save