mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 04:54:07 +08:00
land_detector: Hotfix to prevent ground contact detection when descending velocity is very slow with manual stick all the way down
Now the stick down check is only done in manual control and the thrust low is again mandatory to detect ground in any case.
This commit is contained in:
parent
b5858e729c
commit
c559f195ec
@ -175,7 +175,7 @@ bool MulticopterLandDetector::_get_ground_contact_state()
|
||||
|
||||
// If pilots commands fully down or already below minimal thrust because of auto land and we do not move down we assume ground contact
|
||||
// TODO: we need an accelerometer based check for vertical movement for flying without GPS
|
||||
if ((manual_control_move_down || _get_minimal_thrust()) &&
|
||||
if (((manual_control_move_down || !_control_mode.flag_control_manual_enabled) && _get_minimal_thrust()) &&
|
||||
(!verticalMovement || !_get_position_lock_available())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user