mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 04:20:35 +08:00
RTL_DIRECT: explicitely set force heading in loiter hold if needed
This commit is contained in:
@@ -300,6 +300,9 @@ void RtlDirect::set_rtl_item()
|
||||
/* Set the altitude tracking to best effort but not strictly enforce it */
|
||||
altitude_acceptance_radius = FLT_MAX;
|
||||
|
||||
if (_force_heading) {
|
||||
_mission_item.force_heading = true;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user