mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-13 06:17:09 +00:00
RC
This commit is contained in:
@@ -75,8 +75,8 @@ static void update_pwm (int x, int y) {
|
|||||||
check_motor_pcm(rescale_raw_val(y)));
|
check_motor_pcm(rescale_raw_val(y)));
|
||||||
|
|
||||||
if (s < sample) {
|
if (s < sample) {
|
||||||
x_sum += check_motor_pcm(rescale_raw_val(adc_raw[0][0]));
|
x_sum += check_motor_pcm(rescale_raw_val(x));
|
||||||
y_sum += check_motor_pcm(rescale_raw_val(adc_raw[0][1]));
|
y_sum += check_motor_pcm(rescale_raw_val(y));
|
||||||
s ++;
|
s ++;
|
||||||
}
|
}
|
||||||
else if (s == sample) {
|
else if (s == sample) {
|
||||||
|
Reference in New Issue
Block a user