void on_active() override
This function is called while the mode is active.
Helper class to access missions.
Helper class to land at the current position.
struct position_setpoint_s next
struct position_setpoint_s previous
struct vehicle_land_detected_s * get_land_detected()
struct position_setpoint_s current
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.
void on_activation() override
This function is called one time when mode becomes active, pos_sp_triplet must be initialized here...
void reset_mission_item_reached()
Reset all reached flags.
struct position_setpoint_triplet_s * get_position_setpoint_triplet()
Land(Navigator *navigator)
struct mission_result_s * get_mission_result()
bool mission_item_to_position_setpoint(const mission_item_s &item, position_setpoint_s *sp)
Convert a mission item to a position setpoint.
struct vehicle_status_s * get_vstatus()
void set_mission_result_updated()
void set_land_item(struct mission_item_s *item, bool at_current_location)
Set a land mission item.
void set_can_loiter_at_sp(bool can_loiter)
Setters.
void set_position_setpoint_triplet_updated()
void set_idle_item(struct mission_item_s *item)
Set idle mission item.