diff --git a/controller_teensy/src/main.cpp b/controller_teensy/src/main.cpp index dcf07d3..a225f64 100644 --- a/controller_teensy/src/main.cpp +++ b/controller_teensy/src/main.cpp @@ -52,7 +52,7 @@ int16_t brake_pos=0; unsigned long last_adcread=0; #define ADCREADPERIOD 10 uint16_t throttle_raw=0; -#define THROTTLE_ADC_FILTER 0.1 //higher value = faster response +#define THROTTLE_ADC_FILTER 0.15 //higher value = faster response uint16_t brake_raw=0; #define ADC_OUTOFRANGE_TIME 100 unsigned long throttle_ok_time=0; @@ -61,7 +61,7 @@ bool error_throttle_outofrange=false; bool error_brake_outofrange=false; #define REVERSE_ENABLE_TIME 1000 //ms. how long standstill to be able to drive backward -#define REVERSE_SPEED 0.15 //reverse driving speed //0 to 1 +#define REVERSE_SPEED 0.25 //reverse driving speed //0 to 1 #define NORMAL_MAX_ACCELERATION_RATE 10000 #define SLOW_MAX_ACCELERATION_RATE 500