mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-30 16:44:06 +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:
parent
fe5c887895
commit
61d595dc64
@ -129,6 +129,7 @@ void FlightTaskManualAltitude::_updateAltitudeLock()
|
||||
|
||||
} else {
|
||||
_position_setpoint(2) = _position(2);
|
||||
_dist_to_ground_lock = NAN;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user