diff --git a/ESP-IDF_Robot/main/rc.h b/ESP-IDF_Robot/main/rc.h index 1b7826306..d3133dd08 100644 --- a/ESP-IDF_Robot/main/rc.h +++ b/ESP-IDF_Robot/main/rc.h @@ -129,6 +129,7 @@ static void update_pwm (int rc_x, int rc_y) { } // ------------- + /* // Turn Left if (x == 8190 && y == -8190) { m.motor1_rpm_pcm = 6172; @@ -197,6 +198,8 @@ static void update_pwm (int rc_x, int rc_y) { m.motor3_rpm_pcm = 0; m.motor4_rpm_pcm = 0; } + */ + ledc_set_duty(MTR_MODE, MTR_FRONT_LEFT, m.motor1_rpm_pcm); ledc_update_duty(MTR_MODE, MTR_FRONT_LEFT); ledc_set_duty(MTR_MODE, MTR_FRONT_RIGHT, m.motor2_rpm_pcm);