Skip to content

Commit

Permalink
AP_SmartRTL: add accessor to get the path semaphore
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Feb 29, 2024
1 parent a380323 commit faf09f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/AP_SmartRTL/AP_SmartRTL.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ class AP_SmartRTL {
// this may fail if the IO thread has taken the path semaphore
bool peek_point(Vector3f& point);

// returns the semaphore responsible for path protection:
HAL_Semaphore &path_semaphore(void) {
return _path_sem;
}

// clear return path and set return location if position_ok is true. This should be called as part of the arming procedure
// if position_ok is false, SmartRTL will not be available.
// example sketches use the method that allows providing vehicle position directly
Expand Down

0 comments on commit faf09f8

Please sign in to comment.