Firmware
|
Public Types | |
enum | mission_altitude_mode { MISSION_ALTMODE_ZOH = 0, MISSION_ALTMODE_FOH = 1 } |
Public Member Functions | |
Mission (Navigator *navigator) | |
void | on_inactive () override |
This function is called while the mode is inactive. | |
void | on_inactivation () override |
This function is called one time when mode becomes inactive. | |
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. | |
bool | set_current_mission_index (uint16_t index) |
bool | land_start () |
bool | landing () |
uint16_t | get_land_start_index () const |
bool | get_land_start_available () const |
bool | get_mission_finished () const |
bool | get_mission_changed () const |
bool | get_mission_waypoints_changed () const |
void | set_closest_item_as_current () |
void | set_execution_mode (const uint8_t mode) |
Set a new mission mode and handle the switching between the different modes. More... | |
![]() | |
MissionBlock (Navigator *navigator) | |
Constructor. | |
MissionBlock (const MissionBlock &)=delete | |
MissionBlock & | operator= (const MissionBlock &)=delete |
![]() | |
NavigatorMode (Navigator *navigator) | |
NavigatorMode (const NavigatorMode &)=delete | |
NavigatorMode | operator= (const NavigatorMode &)=delete |
void | run (bool active) |
![]() | |
ModuleParams (ModuleParams *parent) | |
void | setParent (ModuleParams *parent) |
Sets the parent module. More... | |
ModuleParams (const ModuleParams &)=delete | |
ModuleParams & | operator= (const ModuleParams &)=delete |
ModuleParams (ModuleParams &&)=delete | |
ModuleParams & | operator= (ModuleParams &&)=delete |
![]() | |
void | setSibling (ModuleParams * sibling) |
const ModuleParams * | getSibling () const |
Additional Inherited Members | |
![]() | |
static bool | item_contains_position (const mission_item_s &item) |
![]() | |
bool | is_mission_item_reached () |
Check if mission item has been reached. More... | |
void | reset_mission_item_reached () |
Reset all reached flags. | |
bool | mission_item_to_position_setpoint (const mission_item_s &item, position_setpoint_s *sp) |
Convert a mission item to a position setpoint. More... | |
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 position. | |
void | set_takeoff_item (struct mission_item_s *item, float abs_altitude, float min_pitch=0.0f) |
Set a takeoff mission item. | |
void | set_land_item (struct mission_item_s *item, bool at_current_location) |
Set a land mission item. | |
void | set_idle_item (struct mission_item_s *item) |
Set idle mission item. | |
void | set_vtol_transition_item (struct mission_item_s *item, const uint8_t new_mode) |
Set vtol transition item. | |
void | mission_apply_limitation (mission_item_s &item) |
General function used to adjust the mission item based on vehicle specific limitations. | |
void | issue_command (const mission_item_s &item) |
float | get_time_inside (const mission_item_s &item) const |
float | get_absolute_altitude_for_item (const mission_item_s &mission_item) const |
![]() | |
virtual void | updateParams () |
Call this method whenever the module gets a parameter change notification. More... | |
virtual void | updateParamsImpl () |
The implementation for this is generated with the macro DEFINE_PARAMETERS() | |
![]() | |
mission_item_s | _mission_item {} |
bool | _waypoint_position_reached {false} |
bool | _waypoint_yaw_reached {false} |
hrt_abstime | _time_first_inside_orbit {0} |
hrt_abstime | _action_start {0} |
hrt_abstime | _time_wp_reached {0} |
orb_advert_t | _actuator_pub {nullptr} |
![]() | |
Navigator * | _navigator {nullptr} |
![]() | |
ModuleParams * | _sibling |
void Mission::set_execution_mode | ( | const uint8_t | mode | ) |
Set a new mission mode and handle the switching between the different modes.
For a list of the different modes refer to mission_result.msg