mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Mission: start next nav cmd immediately after prev completes
This commit is contained in:
parent
7802c85b5f
commit
5759a69992
@ -183,6 +183,12 @@ void AP_Mission::update()
|
||||
if (_cmd_verify_fn(_nav_cmd)) {
|
||||
// market _nav_cmd as complete (it will be started on the next iteration)
|
||||
_flags.nav_cmd_loaded = false;
|
||||
// immediately advance to the next mission command
|
||||
if (!advance_current_nav_cmd()) {
|
||||
// failure to advance nav command means mission has completed
|
||||
complete();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user