From cf13cb7a6c1caeb74e983994941519f981351a3f Mon Sep 17 00:00:00 2001 From: Alexandre Bobkov Date: Mon, 11 Aug 2025 01:02:26 -0400 Subject: [PATCH] PWM --- ESP-IDF_Robot/main/rc.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ESP-IDF_Robot/main/rc.h b/ESP-IDF_Robot/main/rc.h index 731c62c1d..c3b16073d 100644 --- a/ESP-IDF_Robot/main/rc.h +++ b/ESP-IDF_Robot/main/rc.h @@ -117,12 +117,14 @@ static void update_pwm (int rc_x, int rc_y) { //set_motor_speed(); // Pass PWM values to the proper DC motors depending on the joystick y-axis position // Forward - if (y_val > y_centered) {} + if (y_val > y_centered) { + + } // Reverse if (y_val < y_centered) {} - + /* // Turn Left if (x == 8190 && y == -8190) { m.motor1_rpm_pcm = 6172; @@ -147,7 +149,7 @@ static void update_pwm (int rc_x, int rc_y) { m.motor2_rpm_pcm = 0; m.motor3_rpm_pcm = 8190; m.motor4_rpm_pcm = 6172; - } + }*/ // FORWARD AND REVERSE //if ((x > 1500) && (y > 700 && y < 850)) { else if ((x > 1500) && (y > -2500 && y < 2500)) {