mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 09:53: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 {
|
} else {
|
||||||
_position_setpoint(2) = _position(2);
|
_position_setpoint(2) = _position(2);
|
||||||
|
_dist_to_ground_lock = NAN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user