mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 01:45:44 +08:00
land_detector: made sure the 2 stage landing can not happen in one hysteresis time
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user