44 #include <px4_platform_common/module_params.h> 120 lat = home_position.lat;
121 lon = home_position.lon;
122 alt = home_position.alt;
123 yaw = home_position.yaw;
124 safe_point_index = 0;
135 (ParamFloat<px4::params::RTL_RETURN_ALT>) _param_rtl_return_alt,
136 (ParamFloat<px4::params::RTL_DESCEND_ALT>) _param_rtl_descend_alt,
137 (ParamFloat<px4::params::RTL_LAND_DELAY>) _param_rtl_land_delay,
138 (ParamFloat<px4::params::RTL_MIN_DIST>) _param_rtl_min_dist,
139 (ParamInt<px4::params::RTL_TYPE>) _param_rtl_type,
140 (ParamInt<px4::params::RTL_CONE_ANG>) _param_rtl_cone_half_angle_deg
void advance_rtl()
Move to next RTL item.
uint8_t safe_point_index
0 = home position, 1 = mission landing, >1 = safe landing points (rally points)
Helper class to use mission items.
void set_return_alt_min(bool min)
void set_rtl_item()
Set the RTL item.
void on_inactive() override
This function is called while the mode is inactive.
constexpr _Tp min(_Tp a, _Tp b)
RTLPosition _destination
the RTL position to fly to (typically the home position or a safe point)
void find_RTL_destination()
Base class for different modes in navigator.
void on_active() override
This function is called while the mode is active.
enum RTL::RTLState RTL_STATE_NONE
void on_activation() override
This function is called one time when mode becomes active, pos_sp_triplet must be initialized here...
RTL(Navigator *navigator)
float calculate_return_alt_from_cone_half_angle(float cone_half_angle_deg)