update ramp speed and size
This commit is contained in:
@ -34,8 +34,8 @@
|
|||||||
#define PWM_L_CHANNEL LEDC_CHANNEL_1
|
#define PWM_L_CHANNEL LEDC_CHANNEL_1
|
||||||
|
|
||||||
// Motor ramping configuration
|
// Motor ramping configuration
|
||||||
#define RAMP_STEP_MS 150 // Time between ramp steps (milliseconds)
|
#define RAMP_STEP_MS 200 // Time between ramp steps (milliseconds)
|
||||||
#define RAMP_STEP_SIZE 5 // PWM duty change per step (0-255)
|
#define RAMP_STEP_SIZE 2 // PWM duty change per step (0-255)
|
||||||
#define MIN_MOTOR_SPEED 10 // Minimum speed to overcome motor inertia
|
#define MIN_MOTOR_SPEED 10 // Minimum speed to overcome motor inertia
|
||||||
#define DIRECTION_CHANGE_COOLDOWN_MS 10000 // 10 seconds cooldown for direction changes
|
#define DIRECTION_CHANGE_COOLDOWN_MS 10000 // 10 seconds cooldown for direction changes
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user