ESP-IDF RC Motors Controls

This commit is contained in:
2024-12-31 05:03:10 -05:00
parent 4146cf609c
commit fa885c6c82
3 changed files with 3 additions and 3 deletions

View File

View File

@@ -1 +1 @@
7f726482ea6489c576ee0c1f5ec3006efb7fa659
4146cf609cfc648f565618893853cc77646808ad

View File

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