|
39 | 39 |
|
40 | 40 | #define INACTIVITY_TIMEOUT 8 // minutes of not driving until poweroff. it is not very precise.
|
41 | 41 |
|
42 |
| -// ############################### LCD DEBUG ############################### |
43 |
| - |
44 |
| -//#define DEBUG_I2C_LCD // standard 16x2 or larger text-lcd via i2c-converter on right sensor board cable |
45 |
| - |
46 | 42 | // ############################### SERIAL DEBUG ###############################
|
47 | 43 |
|
48 | 44 | //#define DEBUG_SERIAL_USART3 // right sensor board cable, disable if I2C (nunchuck or lcd) is used!
|
49 | 45 | //#define DEBUG_BAUD 115200 // UART baud rate
|
50 | 46 | //#define DEBUG_SERIAL_SERVOTERM
|
51 | 47 | //#define DEBUG_SERIAL_ASCII // "1:345 2:1337 3:0 4:0 5:0 6:0 7:0 8:0\r\n"
|
52 | 48 |
|
53 |
| -// ############################### INPUT ############################### |
54 |
| - |
55 |
| -// ###### CONTROL VIA UART (serial) ###### |
56 |
| -//#define CONTROL_SERIAL_USART2 // left sensor board cable, disable if ADC or PPM is used! |
57 |
| -// #define CONTROL_BAUD 19200 // control via usart from eg an Arduino or raspberry |
58 |
| -// for Arduino, use void loop(void){ Serial.write((uint8_t *) &steer, sizeof(steer)); Serial.write((uint8_t *) &speed, sizeof(speed));delay(20); } |
59 |
| - |
60 |
| -// ###### CONTROL VIA RC REMOTE ###### |
61 |
| -// left sensor board cable. Channel 1: steering, Channel 2: speed. |
62 |
| -//#define CONTROL_PPM // use PPM-Sum as input. disable DEBUG_SERIAL_USART2! |
63 |
| -//#define PPM_NUM_CHANNELS 6 // total number of PPM channels to receive, even if they are not used. |
64 |
| - |
65 |
| -// ###### CONTROL VIA TWO POTENTIOMETERS ###### |
66 |
| -// ADC-calibration to cover the full poti-range: connect potis to left sensor board cable (0 to 3.3V) (do NOT use the red 15V wire in the cable!). see <How to calibrate>. turn the potis to minimum position, write value 1 to ADC1_MIN and value 2 to ADC2_MIN. turn to maximum position and repeat it for ADC?_MAX. make, flash and test it. |
67 |
| -//#define CONTROL_ADC // use ADC as input. disable DEBUG_SERIAL_USART2! |
68 |
| -//#define ADC1_MIN 0 // min ADC1-value while poti at minimum-position (0 - 4095) |
69 |
| -//#define ADC1_MAX 4095 // max ADC1-value while poti at maximum-position (0 - 4095) |
70 |
| -//#define ADC2_MIN 0 // min ADC2-value while poti at minimum-position (0 - 4095) |
71 |
| -//#define ADC2_MAX 4095 // max ADC2-value while poti at maximum-position (0 - 4095) |
72 |
| - |
73 | 49 | // ###### TRANSPOTTER FIRMWARE #######
|
74 | 50 | #define CONTROL_GAMETRAK
|
75 | 51 | #define SUPPORT_LCD
|
76 | 52 | #define SUPPORT_NUNCHUCK
|
77 | 53 | //#define SUPPORT_REMOTE
|
78 | 54 |
|
| 55 | +#define GAMETRAK_CONNECTION_NORMAL // for normal wireing accoring to the wiki Instructions |
| 56 | +//#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) |
| 57 | + |
79 | 58 | #define ROT_P -1.2 // P coefficient for the direction controller. Positive / Negative values to invert gametrak steering direction.
|
80 | 59 | #define FILTER 0.1 // lower value == softer filter. do not use values <0.01, you will get float precision issues.
|
81 | 60 |
|
|
0 commit comments