47 ModuleParams(navigator)
145 memset(rep, 0,
sizeof(*rep));
Helper class to access missions.
float get_loiter_min_alt() const
void set_loiter_item(struct mission_item_s *item, float min_clearance=-1.0f)
Set a loiter mission item, if possible reuse the position setpoint, otherwise take the current positi...
struct position_setpoint_s next
void set_loiter_position()
Set the position to hold based on the current local position.
struct position_setpoint_s previous
struct vehicle_land_detected_s * get_land_detected()
void on_activation() override
This function is called one time when mode becomes active, pos_sp_triplet must be initialized here...
void on_active() override
This function is called while the mode is active.
struct position_setpoint_s current
void on_inactive() override
This function is called while the mode is inactive.
struct vehicle_global_position_s * get_global_position()
mission_item_s _mission_item
void mission_apply_limitation(mission_item_s &item)
General function used to adjust the mission item based on vehicle specific limitations.
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.
void reposition()
Use the stored reposition location of the navigator to move to a new location.
struct position_setpoint_triplet_s * get_reposition_triplet()
struct vehicle_status_s * get_vstatus()
void set_can_loiter_at_sp(bool can_loiter)
Setters.
void set_position_setpoint_triplet_updated()
Loiter(Navigator *navigator)