addressed review comments

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst 2021-10-26 18:28:37 +03:00 committed by Roman Bapst
parent 3bd114bf9f
commit 514cf12c57
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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,