mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-10-01 13:25:50 +00:00
RC
This commit is contained in:
0
ESP-IDF_Robot_RC/build/.ninja_lock
Normal file
0
ESP-IDF_Robot_RC/build/.ninja_lock
Normal file
2
ESP-IDF_Robot_RC/build/CMakeFiles/git-data/HEAD
Normal file → Executable file
2
ESP-IDF_Robot_RC/build/CMakeFiles/git-data/HEAD
Normal file → Executable file
@@ -1 +1 @@
|
|||||||
ref: refs/heads/main
|
9d7f2d69f50d1288526d4f1027108e314e8c879f
|
||||||
|
@@ -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)
|
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)
|
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
|
# handle git-worktree
|
||||||
if(EXISTS "${GIT_DIR}/commondir")
|
if(EXISTS "${GIT_DIR}/commondir")
|
||||||
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)
|
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
2
ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref
Normal file → Executable file
@@ -1 +1 @@
|
|||||||
4a1c0cb2c3226c7953193e71c207afd5c8f89396
|
9d7f2d69f50d1288526d4f1027108e314e8c879f
|
||||||
|
@@ -127,7 +127,7 @@ static void rc_send_data_task (void *arg) {
|
|||||||
void app_main(void)
|
void app_main(void)
|
||||||
{
|
{
|
||||||
joystick_adc_init();
|
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
|
// Initialize NVS to store Wi-Fi configurations
|
||||||
esp_err_t ret = nvs_flash_init();
|
esp_err_t ret = nvs_flash_init();
|
||||||
|
@@ -34,8 +34,8 @@ static esp_err_t joystick_adc_init() {
|
|||||||
|
|
||||||
static void joystick_get_raw_xy() {
|
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_xy_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_1, y));
|
||||||
|
|
||||||
ESP_LOGI("(x,y)", "( %d, %d )", x, y);
|
ESP_LOGI("(x,y)", "( %d, %d )", x, y);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user