-
- Downloads
land detector: move arming state into base class & set param when disarming
Before that, different modules (ekf2, commander & land detector) changed params upon different events: - ekf2 & commander set params after disarm - land detector set params on land detected If the 2 events were several 100ms appart, it led to 2 param saves, and the latter param set could have been blocked by an ongoing save. And if the land detector was blocked, it could lead to mag timeouts. This patch makes all modules use the same event, thus only a single param save will happen. If we want to have guarantees to never block, we should introduce a param_try_set() API method.
Showing
- src/modules/land_detector/FixedwingLandDetector.cpp 0 additions, 2 deletionssrc/modules/land_detector/FixedwingLandDetector.cpp
- src/modules/land_detector/FixedwingLandDetector.h 0 additions, 3 deletionssrc/modules/land_detector/FixedwingLandDetector.h
- src/modules/land_detector/LandDetector.cpp 17 additions, 11 deletionssrc/modules/land_detector/LandDetector.cpp
- src/modules/land_detector/LandDetector.h 6 additions, 0 deletionssrc/modules/land_detector/LandDetector.h
- src/modules/land_detector/MulticopterLandDetector.cpp 1 addition, 5 deletionssrc/modules/land_detector/MulticopterLandDetector.cpp
- src/modules/land_detector/MulticopterLandDetector.h 0 additions, 3 deletionssrc/modules/land_detector/MulticopterLandDetector.h
Loading
Please register or sign in to comment