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:
Silvan Fuhrer
2022-01-12 18:41:16 +01:00
parent 443406ea2b
commit 3cd1e0ce19
3 changed files with 3 additions and 15 deletions
@@ -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 */