57 _ef_state(EF_STATE_NONE)
void on_inactive() override
This function is called while the mode is inactive.
Definition of a mission consisting of mission items.
Helper class to access missions.
float get_acceptance_radius()
Get the acceptance radius.
API for the uORB lightweight object broker.
Definition of geo / math functions to perform geodesic calculations.
float altitude
altitude in meters (AMSL)
uint16_t autocontinue
true if next waypoint should follow after this one
float acceptance_radius
default radius in which the mission is accepted as reached in meters
struct position_setpoint_s next
struct home_position_s * get_home_position()
Getters.
enum EngineFailure::EFState EF_STATE_NONE
uint16_t origin
how the mission item was generated
struct position_setpoint_s previous
void on_active() override
This function is called while the mode is active.
double lon
longitude in degrees
struct position_setpoint_s current
struct vehicle_global_position_s * get_global_position()
void on_activation() override
This function is called one time when mode becomes active, pos_sp_triplet must be initialized here...
mission_item_s _mission_item
uint16_t nav_cmd
navigation command
void mission_apply_limitation(mission_item_s &item)
General function used to adjust the mission item based on vehicle specific limitations.
Simple error/warning functions, heavily inspired by the BSD functions of the same names...
EngineFailure(Navigator *navigator)
void reset_mission_item_reached()
Reset all reached flags.
Helper class for a fixedwing engine failure mode.
struct position_setpoint_triplet_s * get_position_setpoint_triplet()
bool mission_item_to_position_setpoint(const mission_item_s &item, position_setpoint_s *sp)
Convert a mission item to a position setpoint.
bool is_mission_item_reached()
Check if mission item has been reached.
void set_ef_item()
Set the DLL item.
float get_loiter_radius()
#define mavlink_log_emergency(_pub, _text,...)
Send a mavlink emergency message and print to console.
orb_advert_t * get_mavlink_log_pub()
void advance_ef()
Move to next EF item.
float yaw
in radians NED -PI..+PI, NAN means don't change yaw
float loiter_radius
loiter radius in meters, 0 for a VTOL to hover, negative for counter-clockwise
void set_can_loiter_at_sp(bool can_loiter)
Setters.
void set_position_setpoint_triplet_updated()
uint16_t altitude_is_relative
true if altitude is relative from start point
double lat
latitude in degrees