mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 05:43:33 +08:00
addressed review comments
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
@@ -115,8 +115,8 @@ void RTL::find_RTL_destination()
|
|||||||
&& _navigator->get_vstatus()->vehicle_type == vehicle_status_s::VEHICLE_TYPE_ROTARY_WING;
|
&& _navigator->get_vstatus()->vehicle_type == vehicle_status_s::VEHICLE_TYPE_ROTARY_WING;
|
||||||
|
|
||||||
|
|
||||||
// consider the mission landing if not RTL_TYPE_HOME_ONLY type set
|
// consider the mission landing if not RTL_TYPE_HOME_OR_RALLY type set
|
||||||
if (_param_rtl_type.get() != RTL_TYPE_HOME_ONLY && _navigator->get_mission_start_land_available()) {
|
if (_param_rtl_type.get() != RTL_TYPE_HOME_OR_RALLY && _navigator->get_mission_start_land_available()) {
|
||||||
double mission_landing_lat;
|
double mission_landing_lat;
|
||||||
double mission_landing_lon;
|
double mission_landing_lon;
|
||||||
float mission_landing_alt;
|
float mission_landing_alt;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ public:
|
|||||||
~RTL() = default;
|
~RTL() = default;
|
||||||
|
|
||||||
enum RTLType {
|
enum RTLType {
|
||||||
RTL_TYPE_HOME_ONLY = 0,
|
RTL_TYPE_HOME_OR_RALLY = 0,
|
||||||
RTL_TYPE_MISSION_LANDING,
|
RTL_TYPE_MISSION_LANDING,
|
||||||
RTL_TYPE_MISSION_LANDING_REVERSED,
|
RTL_TYPE_MISSION_LANDING_REVERSED,
|
||||||
RTL_TYPE_CLOSEST,
|
RTL_TYPE_CLOSEST,
|
||||||
|
|||||||
Reference in New Issue
Block a user