landdetector: delete or for ground_contact detection

This commit is contained in:
Dennis Mannhart 2017-05-29 13:38:45 +02:00 committed by Lorenz Meier
parent 2890af7305
commit f75dd37326

View File

@ -195,7 +195,7 @@ void LandDetector::_update_state()
_freefall_hysteresis.set_state_and_update(_get_freefall_state());
_landed_hysteresis.set_state_and_update(_get_landed_state());
_maybe_landed_hysteresis.set_state_and_update(_get_maybe_landed_state());
_ground_contact_hysteresis.set_state_and_update(_landed_hysteresis.get_state() || _get_ground_contact_state());
_ground_contact_hysteresis.set_state_and_update(_get_ground_contact_state());
if (_freefall_hysteresis.get_state()) {
_state = LandDetectionState::FREEFALL;