From 8a591e05412587e2484444d38c28c6e85a3db84f Mon Sep 17 00:00:00 2001 From: Alexandre Bobkov Date: Wed, 6 Aug 2025 04:46:09 -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 08162ff7a..6d982b14b 100644 --- a/ESP-IDF_Robot/main/rc.h +++ b/ESP-IDF_Robot/main/rc.h @@ -118,7 +118,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);