mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 01:30:34 +08:00
Navigator: Set altitude acceptance radius to infinity when moving to land point after transition (#24115)
* Navigator: set alt acceptance radius to infinity for land waypoint after backtransition -> avoid vehicle with depleted battery from not reaching the alt setpoint and getting stuck Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
@@ -355,6 +355,7 @@ void RtlDirect::set_rtl_item()
|
||||
pos_yaw_sp.alt = loiter_altitude;
|
||||
pos_yaw_sp.yaw = !_param_wv_en.get() ? _destination.yaw : NAN; // set final yaw if weather vane is disabled
|
||||
|
||||
altitude_acceptance_radius = FLT_MAX;
|
||||
setMoveToPositionMissionItem(_mission_item, pos_yaw_sp);
|
||||
_navigator->reset_position_setpoint(pos_sp_triplet->previous);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user