From ddf8fb4182524a00036ae9fb68e51b435dfa4eeb Mon Sep 17 00:00:00 2001 From: Alexander B Date: Sun, 5 Jan 2025 01:24:54 -0500 Subject: [PATCH] RC --- ESP-IDF_Robot/build/.ninja_lock | 0 ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref | 2 +- ESP-IDF_Robot/main/blink_example_main.c | 4 ++-- ESP-IDF_Robot/main/rc.h | 2 +- 4 files changed, 4 insertions(+), 4 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 990a4026a..ba89f439a 100644 --- a/ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref +++ b/ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref @@ -1 +1 @@ -a0c216bbb3b6a046e15e8ec52376b79557f1bbb7 +084a76ccee30d8467861867aaf16738507272033 diff --git a/ESP-IDF_Robot/main/blink_example_main.c b/ESP-IDF_Robot/main/blink_example_main.c index 06b438dc2..b454996a7 100644 --- a/ESP-IDF_Robot/main/blink_example_main.c +++ b/ESP-IDF_Robot/main/blink_example_main.c @@ -815,8 +815,8 @@ void onDataReceived (const uint8_t *mac_addr, const uint8_t *data, uint8_t data_ ESP_LOGI(TAG, "PCM 2: 0x%04X", buf.motor2_rpm_pcm); ESP_LOGI(TAG, "PCM 3: 0x%04X", buf.motor3_rpm_pcm); ESP_LOGI(TAG, "PCM 4: 0x%04X", buf.motor4_rpm_pcm); - rc_x = buf.y_axis; - rc_y = buf.x_axis; + rc_x = buf.x_axis; + rc_y = buf.y_axis; //update_pwm(buf.x_axis, buf.y_axis); update_pwm(rc_x, rc_y); diff --git a/ESP-IDF_Robot/main/rc.h b/ESP-IDF_Robot/main/rc.h index cfbb13e95..19d892e9e 100644 --- a/ESP-IDF_Robot/main/rc.h +++ b/ESP-IDF_Robot/main/rc.h @@ -120,7 +120,7 @@ static void update_pwm (int x, int y) { m.motor4_rpm_pcm = x; } else { - ESP_LOGW("ESP-NOW", "STAND STILL (%d, %d)", x, y); + ESP_LOGW("ESP-NOW", "STAND STILL"); m.motor1_rpm_pcm = 0; m.motor2_rpm_pcm = 0; m.motor3_rpm_pcm = 0;