mirror of
https://github.com/lucysrausch/hoverboard-firmware-hack.git
synced 2025-08-01 08:34:27 +02:00
ADD: example code for turbo boost
This commit is contained in:
@@ -42,6 +42,15 @@
|
||||
#define SPEED_COEFFICIENT 0.5
|
||||
#define STEER_COEFFICIENT 0.5
|
||||
|
||||
//Turno boost at high speeds while button1 is pressed:
|
||||
//#define ADDITIONAL_CODE \
|
||||
if (button1 && speed > 700) { /* field weakening at high speeds */ \
|
||||
weakl = cmd1 - 700; /* weak should never exceed 400 or 450 MAX!! */ \
|
||||
weakr = cmd1 - 700; } \
|
||||
else { \
|
||||
weakl = 0; \
|
||||
weakr = 0; }
|
||||
|
||||
// ###### BOBBYCAR ######
|
||||
// #define FILTER 0.1
|
||||
// #define SPEED_COEFFICIENT -1
|
||||
|
Reference in New Issue
Block a user