From 340773096d3d01315d82f093aa2f530576692dfb Mon Sep 17 00:00:00 2001 From: Dennis Mannhart Date: Wed, 12 Apr 2017 16:51:44 +0200 Subject: [PATCH] landdetector: exit landing state if manual.z is larger than threshold --- src/modules/land_detector/MulticopterLandDetector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/land_detector/MulticopterLandDetector.cpp b/src/modules/land_detector/MulticopterLandDetector.cpp index c2dbdb5da7..f197f6934b 100644 --- a/src/modules/land_detector/MulticopterLandDetector.cpp +++ b/src/modules/land_detector/MulticopterLandDetector.cpp @@ -212,6 +212,7 @@ bool MulticopterLandDetector::_get_landed_state() } else { // Pilot wants to take off, assume no groundcontact anymore and therefore allow thrust _ground_contact_hysteresis.set_state_and_update(false); + return false; } }