From 30b406db040c1fbfa2fffa395b1d6197df0cbee3 Mon Sep 17 00:00:00 2001 From: Alexander B Date: Sun, 4 Jan 2026 03:58:12 -0500 Subject: [PATCH] Motor Logic --- ESP-IDF_Robot/main/rc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESP-IDF_Robot/main/rc.h b/ESP-IDF_Robot/main/rc.h index 012f35df85..1a356bff6b 100644 --- a/ESP-IDF_Robot/main/rc.h +++ b/ESP-IDF_Robot/main/rc.h @@ -230,13 +230,13 @@ static void update_motors_pwm (int pwm_motor_1, int pwm_motor_2) { m.motor3_rpm_pcm = -pwm_motor_1; m.motor4_rpm_pcm = -pwm_motor_2; } - /*if (pwm_motor_1 > 0 && pwm_motor_2 < 0) { + if (pwm_motor_1 > 0 && pwm_motor_2 < 0) { m.motor1_rpm_pcm = pwm_motor_1; m.motor2_rpm_pcm = 0; m.motor3_rpm_pcm = -pwm_motor_2; m.motor4_rpm_pcm = 0; } - if (pwm_motor_1 < 0 && pwm_motor_2 > 0) { + /*if (pwm_motor_1 < 0 && pwm_motor_2 > 0) { m.motor1_rpm_pcm = 0; m.motor2_rpm_pcm = -pwm_motor_1; m.motor3_rpm_pcm = 0;