Skip to content

Commit

Permalink
AP_Mission: Verify do commands when running advance_current_nav_cmd()
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKear committed Jan 10, 2024
1 parent d1ad0ca commit a8b00f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libraries/AP_Mission/AP_Mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1998,6 +1998,13 @@ bool AP_Mission::advance_current_nav_cmd(uint16_t starting_index)
}

} else {

// check the active do command
if (verify_command(_do_cmd)) {
// mark _do_cmd as complete
_flags.do_cmd_loaded = false;
}

// set current do command and start it (if not already set)
if (!_flags.do_cmd_loaded) {
_do_cmd = cmd;
Expand Down

0 comments on commit a8b00f8

Please sign in to comment.