mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 17:03:34 +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 */
|
/* Set the altitude tracking to best effort but not strictly enforce it */
|
||||||
altitude_acceptance_radius = FLT_MAX;
|
altitude_acceptance_radius = FLT_MAX;
|
||||||
|
|
||||||
|
if (_force_heading) {
|
||||||
|
_mission_item.force_heading = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user