filter faster rever speed faster

This commit is contained in:
interfisch 2022-08-28 17:54:52 +02:00
parent 5931a5dbbc
commit 41ba23790e
1 changed files with 2 additions and 2 deletions

View File

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