This commit is contained in:
2025-08-06 04:20:17 -04:00
parent 6fff0e1055
commit 2eb72112e4

View File

@@ -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);