update ramp speed and size

This commit is contained in:
2025-07-09 13:12:43 -06:00
parent 27802237f8
commit c96d0bedef

View File

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