personal configuration

jblb
JbLb 6 years ago
parent 415ba0e7ab
commit 78e08bf2b7

@ -12,9 +12,20 @@
// ############################### 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 destroye verything.). 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 destroye verything.).
* 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)
@ -37,20 +48,20 @@
#define TEMP_POWEROFF_ENABLE 0 // to poweroff or not to poweroff, 1 or 0, DO NOT ACTIVITE WITHOUT CALIBRATION!
#define TEMP_POWEROFF 65 // overheat poweroff. (while not driving) [°C]
#define INACTIVITY_TIMEOUT 8 // minutes of not driving until poweroff. it is not very precise.
#define INACTIVITY_TIMEOUT 5 // minutes of not driving until poweroff. it is not very precise.
// ############################### SERIAL DEBUG ###############################
//#define DEBUG_SERIAL_USART3 // right sensor board cable, disable if I2C (nunchuck or lcd) is used!
//#define DEBUG_BAUD 115200 // UART baud rate
#define DEBUG_SERIAL_USART3 // right sensor board cable, disable if I2C (nunchuck or lcd) is used!
#define DEBUG_BAUD 115200 // UART baud rate
//#define DEBUG_SERIAL_SERVOTERM
//#define DEBUG_SERIAL_ASCII // "1:345 2:1337 3:0 4:0 5:0 6:0 7:0 8:0\r\n"
#define DEBUG_SERIAL_ASCII // "1:345 2:1337 3:0 4:0 5:0 6:0 7:0 8:0\r\n"
// ###### TRANSPOTTER FIRMWARE #######
#define CONTROL_GAMETRAK
#define SUPPORT_LCD
#define SUPPORT_NUNCHUCK
//#define SUPPORT_REMOTE
// #define CONTROL_GAMETRAK
// #define SUPPORT_LCD
// #define SUPPORT_NUNCHUCK
// #define SUPPORT_REMOTE
#define GAMETRAK_CONNECTION_NORMAL // for normal wireing accoring to the wiki Instructions
//#define GAMETRAK_CONNECTION_ALTERNATE // use this define instead if you messed up the gametrak ADC wirering (steering is speed, and length of teh wire is steering)

Loading…
Cancel
Save