mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-27 18:20:38 +08:00
enable terrain_hold when not moving vertically
This commit is contained in:
1 parent
451b0a3db8
commit
283a69dedf
1 file changed
+1
-1
@@ -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