Update DC motor parameters

This commit is contained in:
2026-03-02 23:15:24 -05:00
parent da858d1ca6
commit 404d18cc0c

View File

@@ -13,14 +13,14 @@
#define HIGH_DUTY 1000 #define HIGH_DUTY 1000
#define FWD_CHANNEL LEDC_CHANNEL_1 #define FWD_CHANNEL LEDC_CHANNEL_1
#define REV_CHANNEL LEDC_CHANNEL_0 #define REV_CHANNEL LEDC_CHANNEL_0
#define DEADZONE 0.5 #define DEADZONE 0.1
#define KP 0.07 #define KP 0.01
#define KI 0 #define KI 0
#define KD 0.065 #define KD 0.015
#define MIN_PWM_DUTY 675 #define MIN_PWM_DUTY 675
#define MAX_PWM_DUTY 1024 #define MAX_PWM_DUTY 1024
#define TICKS_PER_ROTATION 14.0 #define TICKS_PER_ROTATION 14.0
#define GEAR_RATIO 210 #define GEAR_RATIO 298
DCMotorActuator::DCMotorActuator() { DCMotorActuator::DCMotorActuator() {
ledc_timer_config_t ledc_timer = { ledc_timer_config_t ledc_timer = {