mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 11:43:34 +08:00
MCLandDetector: clean up logic for ground effect
Before: in_ground_effect was always true with the default settings (LNDMC_ALT_GND =-1) and when a distance sensor was present with valid data. Now: default of LNDMC_ALT_GND is set to 2m by default, and if set to a negative value then in_ground_effect is never set to true Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -79,8 +79,6 @@ protected:
|
||||
|
||||
void _set_hysteresis_factor(const int factor) override;
|
||||
private:
|
||||
|
||||
float _get_gnd_effect_altitude();
|
||||
bool _is_close_to_ground();
|
||||
|
||||
/** Time in us that freefall has to hold before triggering freefall */
|
||||
|
||||
Reference in New Issue
Block a user