From fa885c6c82e7e67c1a922e70098bcb3ccc9da3e7 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Tue, 31 Dec 2024 05:03:10 -0500 Subject: [PATCH] ESP-IDF RC Motors Controls --- ESP-IDF_Robot/build/.ninja_lock | 0 ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref | 2 +- ESP-IDF_Robot/main/rc.h | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 ESP-IDF_Robot/build/.ninja_lock diff --git a/ESP-IDF_Robot/build/.ninja_lock b/ESP-IDF_Robot/build/.ninja_lock new file mode 100644 index 000000000..e69de29bb diff --git a/ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref b/ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref index 137f4a976..030443105 100644 --- a/ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref +++ b/ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref @@ -1 +1 @@ -7f726482ea6489c576ee0c1f5ec3006efb7fa659 +4146cf609cfc648f565618893853cc77646808ad diff --git a/ESP-IDF_Robot/main/rc.h b/ESP-IDF_Robot/main/rc.h index ad7dc6521..d562a596b 100644 --- a/ESP-IDF_Robot/main/rc.h +++ b/ESP-IDF_Robot/main/rc.h @@ -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");