Browse Source

AC_Avoidance: make all semaphores recursive

the cost is very similar and this prevents an easy coding error which
can occur on less used code paths
c415-sdk
Andrew Tridgell 5 years ago
parent
commit
48486d259f
  1. 2
      libraries/AC_Avoidance/AP_OAPathPlanner.h

2
libraries/AC_Avoidance/AP_OAPathPlanner.h

@ -86,7 +86,7 @@ private: @@ -86,7 +86,7 @@ private:
AP_Float _margin_max; // object avoidance will ignore objects more than this many meters from vehicle
// internal variables used by front end
HAL_Semaphore_Recursive _rsem; // semaphore for multi-thread use of avoidance_request and avoidance_result
HAL_Semaphore _rsem; // semaphore for multi-thread use of avoidance_request and avoidance_result
bool _thread_created; // true once background thread has been created
AP_OABendyRuler *_oabendyruler; // Bendy Ruler algorithm
AP_OADijkstra *_oadijkstra; // Dijkstra's algorithm

Loading…
Cancel
Save