Skip to content

Commit

Permalink
Mission: add is_resume method
Browse files Browse the repository at this point in the history
  • Loading branch information
robot-to-society committed Jun 17, 2024
1 parent 45fef25 commit 1283a14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/AP_Mission/AP_Mission.h
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,9 @@ class AP_Mission
_force_resume = force_resume;
}

// returns true if configured to resume
bool is_resume() const { return _restart == 0 || _force_resume; }

// get a reference to the AP_Mission semaphore, allowing an external caller to lock the
// storage while working with multiple waypoints
HAL_Semaphore &get_semaphore(void)
Expand Down

0 comments on commit 1283a14

Please sign in to comment.