From 14740ea14e4324e45272387cd5860064bb0f7208 Mon Sep 17 00:00:00 2001 From: Alexandre Bobkov Date: Wed, 6 Aug 2025 04:22:43 -0400 Subject: [PATCH] pcm --- ESP-IDF_Robot/main/rc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ESP-IDF_Robot/main/rc.h b/ESP-IDF_Robot/main/rc.h index c9bc3b4b5..2e758e99c 100644 --- a/ESP-IDF_Robot/main/rc.h +++ b/ESP-IDF_Robot/main/rc.h @@ -121,7 +121,7 @@ static void update_pwm (int rc_x, int rc_y) { m.motor3_rpm_pcm = -(y - x); m.motor4_rpm_pcm = 0; } - if ((y < 1500) && (y > 1500)) && (x < 8000) { + if ((y < 1500) && (y > 1500) && (x < 8000) { m.motor1_rpm_pcm = 0; m.motor2_rpm_pcm = (y + x); m.motor3_rpm_pcm = -(y - x);