From b1309130904af9585cbcf2eba26743ed06109972 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Mon, 23 Jan 2017 12:01:10 +0100 Subject: [PATCH] land_detector: made sure the 2 stage landing can not happen in one hysteresis time --- src/modules/land_detector/MulticopterLandDetector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/land_detector/MulticopterLandDetector.cpp b/src/modules/land_detector/MulticopterLandDetector.cpp index e34a89287a..2375441c26 100644 --- a/src/modules/land_detector/MulticopterLandDetector.cpp +++ b/src/modules/land_detector/MulticopterLandDetector.cpp @@ -252,7 +252,7 @@ bool MulticopterLandDetector::_get_landed_state() (fabsf(_vehicleAttitude.yawspeed) > maxRotationScaled); - if (!_get_ground_contact_state() || rotating || horizontalMovement) { + if (!_ground_contact_hysteresis.get_state() || rotating || horizontalMovement) { // Sensed movement or thottle high, so reset the land detector. return false; }