From 0c6d9b303109d30cbafaa04dacb72dba3f6b01d9 Mon Sep 17 00:00:00 2001 From: Alexander B Date: Sun, 5 Jan 2025 00:55:57 -0500 Subject: [PATCH] RC --- ESP-IDF_Robot/main/rc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESP-IDF_Robot/main/rc.h b/ESP-IDF_Robot/main/rc.h index c4b42c316..09c2aed61 100644 --- a/ESP-IDF_Robot/main/rc.h +++ b/ESP-IDF_Robot/main/rc.h @@ -75,8 +75,8 @@ static void update_pwm (int x, int y) { check_motor_pcm(rescale_raw_val(y))); if (s < sample) { - x_sum += check_motor_pcm(rescale_raw_val(adc_raw[0][0])); - y_sum += check_motor_pcm(rescale_raw_val(adc_raw[0][1])); + x_sum += check_motor_pcm(rescale_raw_val(x)); + y_sum += check_motor_pcm(rescale_raw_val(y)); s ++; } else if (s == sample) {