mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
landdetector: exit landing state if manual.z is larger than threshold
This commit is contained in:
committed by
Matthias Grob
parent
239370d72c
commit
340773096d
@@ -212,6 +212,7 @@ bool MulticopterLandDetector::_get_landed_state()
|
|||||||
} else {
|
} else {
|
||||||
// Pilot wants to take off, assume no groundcontact anymore and therefore allow thrust
|
// Pilot wants to take off, assume no groundcontact anymore and therefore allow thrust
|
||||||
_ground_contact_hysteresis.set_state_and_update(false);
|
_ground_contact_hysteresis.set_state_and_update(false);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user