This commit is contained in:
2025-01-04 22:29:42 -05:00
parent 606a63050b
commit 3c8d6134c7
6 changed files with 6 additions and 6 deletions

View File

2
ESP-IDF_Robot_RC/build/CMakeFiles/git-data/HEAD Normal file → Executable file
View File

@@ -1 +1 @@
ref: refs/heads/main
9d7f2d69f50d1288526d4f1027108e314e8c879f

View File

@@ -18,7 +18,7 @@ set(HEAD_HASH)
file(READ "/home/alex/github/ESP-Nodes/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024)
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
set(GIT_DIR "/home/alex/github/ESP-Nodes/.git")
set(GIT_DIR "/home/alex/esp/v5.3.2/esp-idf/.git")
# handle git-worktree
if(EXISTS "${GIT_DIR}/commondir")
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)

2
ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref Normal file → Executable file
View File

@@ -1 +1 @@
4a1c0cb2c3226c7953193e71c207afd5c8f89396
9d7f2d69f50d1288526d4f1027108e314e8c879f

View File

@@ -127,7 +127,7 @@ static void rc_send_data_task (void *arg) {
void app_main(void)
{
joystick_adc_init();
//xTaskCreate(joystick_task, "RC", 2048, NULL, 5, NULL);
xTaskCreate(joystick_task, "RC", 2048, NULL, 5, NULL);
// Initialize NVS to store Wi-Fi configurations
esp_err_t ret = nvs_flash_init();

View File

@@ -34,8 +34,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_xy_handle, ADC1_CHANNEL_0, x));
ESP_ERROR_CHECK(adc_oneshot_read(adc1_xy_handle, ADC1_CHANNEL_1, y));
ESP_LOGI("(x,y)", "( %d, %d )", x, y);
}