land_detector: made sure the 2 stage landing can not happen in one hysteresis time

This commit is contained in:
Matthias Grob
2017-01-23 12:01:10 +01:00
committed by Lorenz Meier
parent 9ef97b78c8
commit b130913090
@@ -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;
}