From baf5356805153fa607ea9ffe7881575feee67c2d Mon Sep 17 00:00:00 2001 From: Alexander B Date: Sat, 4 Jan 2025 22:06:18 -0500 Subject: [PATCH] RC --- ESP-IDF_Robot_RC/build/.ninja_lock | 0 ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref | 2 +- ESP-IDF_Robot_RC/main/joystick.h | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 ESP-IDF_Robot_RC/build/.ninja_lock diff --git a/ESP-IDF_Robot_RC/build/.ninja_lock b/ESP-IDF_Robot_RC/build/.ninja_lock new file mode 100644 index 000000000..e69de29bb diff --git a/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref b/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref index 4d21d6582..526738c9e 100644 --- a/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref +++ b/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref @@ -1 +1 @@ -a227350a839a9c2448f0be55d5141ccc629bfc5c +60c5fa9e57c5b350a6d0992a0651edb91d808af2 diff --git a/ESP-IDF_Robot_RC/main/joystick.h b/ESP-IDF_Robot_RC/main/joystick.h index 06cbb6e3c..0fedd98f6 100644 --- a/ESP-IDF_Robot_RC/main/joystick.h +++ b/ESP-IDF_Robot_RC/main/joystick.h @@ -27,8 +27,8 @@ static esp_err_t joystick_adc_init() { static void joystick_get_raw_xy() { - ESP_ERROR_CHECK(adc_oneshot_read(adc1_x_handle, ADC1_CHANNEL_0, x)); - ESP_ERROR_CHECK(adc_oneshot_read(adc1_y_handle, ADC1_CHANNEL_1, y)); + ESP_ERROR_CHECK(adc_oneshot_read(adc1_x_handle, ADC1_CHANNEL_0, &x)); + ESP_ERROR_CHECK(adc_oneshot_read(adc1_y_handle, ADC1_CHANNEL_1, &y)); ESP_LOGI("(x,y)", "( %i, %i)", x, y); }