mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 05:30:34 +08:00
enable terrain_hold when not moving vertically
This commit is contained in:
committed by
Marco Hauswirth
parent
451b0a3db8
commit
283a69dedf
@@ -134,7 +134,7 @@ void FlightTaskManualAltitude::_updateAltitudeLock()
|
||||
}
|
||||
|
||||
} else {
|
||||
bool not_moving = spd_xy < 0.5f * _param_mpc_hold_max_xy.get();
|
||||
bool not_moving = spd_xy < 0.5f * _param_mpc_hold_max_xy.get() && stopped;
|
||||
|
||||
if (!stick_input && not_moving && PX4_ISFINITE(_dist_to_bottom)) {
|
||||
// Start using distance to ground
|
||||
|
||||
Reference in New Issue
Block a user