Browse Source

AP_InertialSensor: 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
58708c483f
  1. 2
      libraries/AP_InertialSensor/AP_InertialSensor_Backend.h

2
libraries/AP_InertialSensor/AP_InertialSensor_Backend.h

@ -115,7 +115,7 @@ protected:
AP_InertialSensor &_imu; AP_InertialSensor &_imu;
// semaphore for access to shared frontend data // semaphore for access to shared frontend data
HAL_Semaphore_Recursive _sem; HAL_Semaphore _sem;
//Default Clip Limit //Default Clip Limit
float _clip_limit = 15.5f * GRAVITY_MSS; float _clip_limit = 15.5f * GRAVITY_MSS;

Loading…
Cancel
Save