From 0a0e14e4e424b39af6c659b71ceae4c084b836ac Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Tue, 31 Dec 2024 03:38:33 -0500 Subject: [PATCH] ESP-IDF Robot Controls --- ESP-IDF_Robot/main/rc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ESP-IDF_Robot/main/rc.h b/ESP-IDF_Robot/main/rc.h index e5ae9e126..6aa20d7e3 100644 --- a/ESP-IDF_Robot/main/rc.h +++ b/ESP-IDF_Robot/main/rc.h @@ -74,6 +74,8 @@ static void rc_get_raw_data() { ESP_LOGW("RC", "LEFT"); else if ((y < 0 && y > -200) && (x > 1000)) ESP_LOGW("RC", "RIGHT"); + else + ESP_LOGW("RC", "STAND STILL"); /*// Cut-off readings that have values less than 700, i.e. when joystick is centered if (rescale_raw_val(adc_raw[0][1]) < -500 && rescale_raw_val(adc_raw[0][0]) < 500) {