From f75dd37326c5de0eebbd422430bb1b0f0ea6844d Mon Sep 17 00:00:00 2001 From: Dennis Mannhart Date: Mon, 29 May 2017 13:38:45 +0200 Subject: [PATCH] landdetector: delete or for ground_contact detection --- src/modules/land_detector/LandDetector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/land_detector/LandDetector.cpp b/src/modules/land_detector/LandDetector.cpp index 594104475e..f802bedaa8 100644 --- a/src/modules/land_detector/LandDetector.cpp +++ b/src/modules/land_detector/LandDetector.cpp @@ -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;