Remove relaying of maximum altitude through land detector

This commit is contained in:
Matthias Grob
2022-01-05 14:54:59 +01:00
parent 2445fa8b4c
commit bbb04ab4b8
11 changed files with 15 additions and 40 deletions
@@ -323,16 +323,6 @@ bool MulticopterLandDetector::_get_landed_state()
return _maybe_landed_hysteresis.get_state();
}
float MulticopterLandDetector::_get_max_altitude()
{
if (_param_lndmc_alt_max.get() < 0.0f) {
return INFINITY;
} else {
return _param_lndmc_alt_max.get();
}
}
float MulticopterLandDetector::_get_gnd_effect_altitude()
{
if (_param_lndmc_alt_gnd_effect.get() < 0.0f) {