From 514cf12c57a7ac72cee87d0d8cedb30fcec4dae1 Mon Sep 17 00:00:00 2001 From: RomanBapst Date: Tue, 26 Oct 2021 18:28:37 +0300 Subject: [PATCH] addressed review comments Signed-off-by: RomanBapst --- src/modules/navigator/rtl.cpp | 4 ++-- src/modules/navigator/rtl.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/navigator/rtl.cpp b/src/modules/navigator/rtl.cpp index 188920e726..be24cfdfec 100644 --- a/src/modules/navigator/rtl.cpp +++ b/src/modules/navigator/rtl.cpp @@ -115,8 +115,8 @@ void RTL::find_RTL_destination() && _navigator->get_vstatus()->vehicle_type == vehicle_status_s::VEHICLE_TYPE_ROTARY_WING; - // consider the mission landing if not RTL_TYPE_HOME_ONLY type set - if (_param_rtl_type.get() != RTL_TYPE_HOME_ONLY && _navigator->get_mission_start_land_available()) { + // consider the mission landing if not RTL_TYPE_HOME_OR_RALLY type set + if (_param_rtl_type.get() != RTL_TYPE_HOME_OR_RALLY && _navigator->get_mission_start_land_available()) { double mission_landing_lat; double mission_landing_lon; float mission_landing_alt; diff --git a/src/modules/navigator/rtl.h b/src/modules/navigator/rtl.h index a7a48cb115..1c0ca650a8 100644 --- a/src/modules/navigator/rtl.h +++ b/src/modules/navigator/rtl.h @@ -64,7 +64,7 @@ public: ~RTL() = default; enum RTLType { - RTL_TYPE_HOME_ONLY = 0, + RTL_TYPE_HOME_OR_RALLY = 0, RTL_TYPE_MISSION_LANDING, RTL_TYPE_MISSION_LANDING_REVERSED, RTL_TYPE_CLOSEST,