ESP-IDF RC Motors Controls

This commit is contained in:
2024-12-31 05:22:35 -05:00
parent 5a97b543e8
commit a0ba0146a8

View File

@@ -89,7 +89,7 @@ static void rc_get_raw_data() {
}
else if ((y < 0 && y > -200) && (x > 1000)) {
ESP_LOGW("RC", "RIGHT");
m.motor1_rpm_pcm = 0;
m.motor1_rpm_pcm = x;
m.motor2_rpm_pcm = 0;
m.motor3_rpm_pcm = 0;
m.motor4_rpm_pcm = 0;