From 78e08bf2b7be897a31045342194968b501d3c774 Mon Sep 17 00:00:00 2001 From: JbLb Date: Wed, 25 Dec 2019 23:35:20 +0100 Subject: [PATCH] personal configuration --- Inc/config.h | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/Inc/config.h b/Inc/config.h index 26d0a4d..15fb33e 100644 --- a/Inc/config.h +++ b/Inc/config.h @@ -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 . + * + * 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 . 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)