mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-09 22:21:15 +00:00
ESP32-C3 RC
This commit is contained in:
@@ -80,6 +80,8 @@ static void rc_get_raw_data() {
|
||||
ESP_LOGI("Joystick F", "Position: %d (%d)", rescale_raw_val(adc_raw[0][1]), check_motor_pcm(rescale_raw_val(adc_raw[0][1])));
|
||||
|
||||
if (sample < 10) {
|
||||
x_sum += check_motor_pcm(rescale_raw_val(adc_raw[0][0]));
|
||||
y_sum += check_motor_pcm(rescale_raw_val(adc_raw[0][1]));
|
||||
sample ++;
|
||||
}
|
||||
else if (sample == 10) {
|
||||
|
Reference in New Issue
Block a user