mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 21:55:34 +08:00
reset dist_to_ground_lock if dist_to_bottom is not valid. this avoids a reset to a previous dist_to_ground after a switch back to a valid measurement
This commit is contained in:
committed by
Marco Hauswirth
parent
fe5c887895
commit
61d595dc64
@@ -129,6 +129,7 @@ void FlightTaskManualAltitude::_updateAltitudeLock()
|
||||
|
||||
} else {
|
||||
_position_setpoint(2) = _position(2);
|
||||
_dist_to_ground_lock = NAN;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user