From 662bd6053d527046596e97027eec79ec38636a65 Mon Sep 17 00:00:00 2001 From: Alexandre Bobkov Date: Mon, 11 Aug 2025 01:00:33 -0400 Subject: [PATCH] PWM --- ESP-IDF_Robot/main/rc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ESP-IDF_Robot/main/rc.h b/ESP-IDF_Robot/main/rc.h index 29c470fad..731c62c1d 100644 --- a/ESP-IDF_Robot/main/rc.h +++ b/ESP-IDF_Robot/main/rc.h @@ -116,6 +116,10 @@ static void update_pwm (int rc_x, int rc_y) { //set_motor_direction(); //set_motor_speed(); // Pass PWM values to the proper DC motors depending on the joystick y-axis position + // Forward + if (y_val > y_centered) {} + // Reverse + if (y_val < y_centered) {}