filter faster rever speed faster

master
interfisch 5 months ago
parent 5931a5dbbc
commit 41ba23790e

@ -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

Loading…
Cancel
Save