mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 12:54:07 +08:00
addressed review comments
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
parent
3bd114bf9f
commit
514cf12c57
@ -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;
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user