50 #include <mathlib/mathlib.h> 57 ModuleParams(navigator)
83 case GPSF_STATE_LOITER: {
108 PX4_WARN(
"GPS not recovered, switching to next failure state");
115 case GPSF_STATE_TERMINATE:
136 case GPSF_STATE_TERMINATE: {
140 PX4_WARN(
"GPS failure: request flight termination");
155 case GPSF_STATE_NONE:
160 case GPSF_STATE_LOITER:
165 case GPSF_STATE_TERMINATE:
166 PX4_WARN(
"terminate");
#define mavlink_log_critical(_pub, _text,...)
Send a mavlink critical message and print to console.
void set_gpsf_item()
Set the GPSF item.
Definition of a mission consisting of mission items.
Helper class to access missions.
void on_activation() override
This function is called one time when mode becomes active, pos_sp_triplet must be initialized here...
API for the uORB lightweight object broker.
Definition of geo / math functions to perform geodesic calculations.
struct position_setpoint_s next
struct position_setpoint_s previous
bool get_can_loiter_at_sp()
uORB::Publication< vehicle_attitude_setpoint_s > _fw_virtual_att_sp_pub
struct position_setpoint_s current
bool publish(const T &data)
Publish the struct.
uORB::Publication< vehicle_attitude_setpoint_s > _att_sp_pub
constexpr T radians(T degrees)
static hrt_abstime hrt_elapsed_time(const hrt_abstime *then)
Compute the delta between a timestamp taken in the past and now.
struct position_setpoint_triplet_s * get_position_setpoint_triplet()
GpsFailure(Navigator *navigator)
struct mission_result_s * get_mission_result()
Quaternion< float > Quatf
Helper class for Data Link Loss Mode according to the OBC rules.
#define mavlink_log_emergency(_pub, _text,...)
Send a mavlink emergency message and print to console.
hrt_abstime _timestamp_activation
void advance_gpsf()
Move to next GPSF item.
orb_advert_t * get_mavlink_log_pub()
struct vehicle_status_s * get_vstatus()
void set_mission_result_updated()
void on_inactive() override
This function is called while the mode is inactive.
void on_active() override
This function is called while the mode is active.
void set_position_setpoint_triplet_updated()
__EXPORT hrt_abstime hrt_absolute_time(void)
Get absolute time in [us] (does not wrap).