diff --git a/ESP-IDF_Robot/main/rc.h b/ESP-IDF_Robot/main/rc.h index 19d892e9e..f58d73daf 100644 --- a/ESP-IDF_Robot/main/rc.h +++ b/ESP-IDF_Robot/main/rc.h @@ -87,7 +87,7 @@ static void update_pwm (int x, int y) { y = y_sum / sample; s++;*/ - if ((x > 0 && x < 500) && (y > 500)) { + if ((x > 500) && (y > 0 && y < 500)) { ESP_LOGW("ESP-NOW", "FORWARD"); // Both sides rotate in forward direction. m.motor1_rpm_pcm = y; // left, forward