ESP-IDF Robot Controls

This commit is contained in:
2024-12-25 13:41:40 -05:00
parent db8a4ff09a
commit efcdbbfdc5

View File

@@ -83,7 +83,7 @@ TIMER RESOLUTION MAX VALUE HALF-DUTY
#define NAV_BTN (8) // 8 GPIO joystick button
#define _ADC_UNIT_STR(unit) #unit
#define ADC_UNIT_STR(unit) _ADC_UNIT_STR(unit)
uint x_avg = 0, y_avg = 0;
uint8_t x_avg = 0, y_avg = 0;
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_1};