rtl: let fixed-wing RTL all the way to the loiter/delay state

also fix home vs destination alt discrepancy on RTL
This commit is contained in:
Thomas Stastny
2022-07-20 14:15:12 +02:00
parent 2f3cb97872
commit 1ec62c4063
3 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -582,7 +582,7 @@ void Navigator::run()
case RTL::RTL_TYPE_MISSION_LANDING:
case RTL::RTL_TYPE_CLOSEST:
if (!rtl_activated && _rtl.getClimbAndReturnDone()
if (!rtl_activated && _rtl.getLoiterDone()
&& _rtl.getShouldEngageMissionForLanding()) {
_mission.set_execution_mode(mission_result_s::MISSION_EXECUTION_MODE_FAST_FORWARD);