mirror of
https://github.com/okalachev/flix.git
synced 2026-01-13 14:36:45 +00:00
Fix mavlink disconnection in pauses in cli commands
Implement pause function that proceeds processing mavlink. Use temporal workaround for simulation, as micros function gives the same result on the same simulation step.
This commit is contained in:
@@ -60,7 +60,7 @@ void testMotor(uint8_t n) {
|
||||
motors[n] = 1;
|
||||
delay(50); // ESP32 may need to wait until the end of the current cycle to change duty https://github.com/espressif/arduino-esp32/issues/5306
|
||||
sendMotors();
|
||||
delay(3000);
|
||||
pause(3);
|
||||
motors[n] = 0;
|
||||
sendMotors();
|
||||
print("Done\n");
|
||||
|
||||
Reference in New Issue
Block a user