mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Plane: be friendly to multi-tasking OSes
This commit is contained in:
parent
8a699f6189
commit
f68778d453
@ -786,6 +786,10 @@ void loop()
|
||||
// call until scheduler.tick() is called again
|
||||
scheduler.run(19000U);
|
||||
}
|
||||
if ((timer - fast_loopTimer_ms) <= 19) {
|
||||
// we have plenty of time - be friendly to multi-tasking OSes
|
||||
hal.scheduler->delay(1);
|
||||
}
|
||||
}
|
||||
|
||||
// Main loop 50Hz
|
||||
|
Loading…
Reference in New Issue
Block a user