ESP-IDF Robot Controls

This commit is contained in:
2024-12-25 12:04:35 -05:00
parent e4246f2bce
commit 17802da2b7
5 changed files with 4 additions and 4 deletions

View File

View File

@@ -1 +1 @@
ref: refs/heads/main
c9763f62dd00c887a1a8fafe388db868a7e44069

View File

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

View File

@@ -1 +1 @@
2c859b346e779f6e67e110497506160cf0eb3e02
c9763f62dd00c887a1a8fafe388db868a7e44069

View File

@@ -84,7 +84,7 @@ TIMER RESOLUTION MAX VALUE HALF-DUTY
#define ADC_UNIT_STR(unit) _ADC_UNIT_STR(unit)
static TaskHandle_t s_task_handle;
//static adc_channel_t channel[2] = {ADC_CHANNEL_2, ADC_CHANNEL_3};
static adc_channel_t channel[2] = {ADC_CHANNEL_0, ADC_CHANNEL_4};
static adc_channel_t channel[2] = {ADC_CHANNEL_0, ADC_CHANNEL_1};
static int adc_raw[2][10];
static int voltage[2][10];