ESP-IDF RC Motors Controls

This commit is contained in:
2024-12-31 05:22:51 -05:00
parent a0ba0146a8
commit fc3d8e894f
3 changed files with 3 additions and 3 deletions

View File

View File

@@ -1 +1 @@
d91ef6c33dc78cf96e5842dbe0306a0e9a7c6df4 a0ba0146a84aa699a66776554556f7893459dfc9

View File

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