Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
mission_manager.h File Reference

Common functions used within the mission library, blocks and waypoints cannot be send simultaneously (which should not matter) More...

#include <mavlink/mavlink_types.h>
+ Include dependency graph for mission_manager.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

Macros

#define MAVLINK_TIMEOUT   15
 

Typedefs

typedef struct mavlink_mission_mgr mavlink_mission_mgr
 

Enumerations

enum  MAVLINK_MISSION_MGR_STATES { STATE_IDLE = 0 , STATE_SEND_LIST , STATE_SEND_ITEM , STATE_WAYPOINT_WRITE_TRANSACTION }
 State machine. More...
 

Functions

void mavlink_mission_init (mavlink_mission_mgr *mgr)
 
void mavlink_mission_message_handler (const mavlink_message_t *msg)
 
void mavlink_mission_periodic (void)
 update current block and send if changed More...
 
void mavlink_send_mission_ack (void)
 
void mavlink_mission_set_timer (void)
 
void mavlink_mission_cancel_timer (void)
 

Variables

mavlink_mission_mgr mission_mgr
 

Detailed Description

Common functions used within the mission library, blocks and waypoints cannot be send simultaneously (which should not matter)

Definition in file mission_manager.h.


Data Structure Documentation

◆ mavlink_mission_mgr

struct mavlink_mission_mgr

Definition at line 46 of file mission_manager.h.

Data Fields
uint8_t current_block
uint8_t rem_compid
uint8_t rem_sysid
uint16_t seq
enum MAVLINK_MISSION_MGR_STATES state
int timer_id

Macro Definition Documentation

◆ MAVLINK_TIMEOUT

#define MAVLINK_TIMEOUT   15

Definition at line 35 of file mission_manager.h.

Typedef Documentation

◆ mavlink_mission_mgr

Definition at line 1 of file mission_manager.h.

Enumeration Type Documentation

◆ MAVLINK_MISSION_MGR_STATES

State machine.

Enumerator
STATE_IDLE 
STATE_SEND_LIST 
STATE_SEND_ITEM 
STATE_WAYPOINT_WRITE_TRANSACTION 

Definition at line 39 of file mission_manager.h.

Function Documentation

◆ mavlink_mission_cancel_timer()

void mavlink_mission_cancel_timer ( void  )

Definition at line 70 of file mission_manager.c.

References mission_mgr, sys_time_cancel_timer(), and mavlink_mission_mgr::timer_id.

Referenced by mavlink_block_message_handler(), mavlink_mission_message_handler(), mavlink_mission_periodic(), and mavlink_wp_message_handler().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mavlink_mission_init()

void mavlink_mission_init ( mavlink_mission_mgr mgr)

Definition at line 54 of file mission_manager.c.

References mavlink_mission_mgr::seq, and mavlink_mission_mgr::timer_id.

Referenced by mavlink_init().

+ Here is the caller graph for this function:

◆ mavlink_mission_message_handler()

void mavlink_mission_message_handler ( const mavlink_message_t *  msg)

Definition at line 78 of file mission_manager.c.

References mavlink_block_message_handler(), MAVLINK_DEBUG, mavlink_mission_cancel_timer(), mavlink_wp_message_handler(), mission_mgr, msg, mavlink_mission_mgr::state, and STATE_IDLE.

Referenced by mavlink_event().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mavlink_mission_periodic()

void mavlink_mission_periodic ( void  )

update current block and send if changed

Definition at line 93 of file mission_manager.c.

References mavlink_mission_mgr::current_block, MAVLINK_DEBUG, mavlink_mission_cancel_timer(), MAVLinkSendMessage, mission_mgr, nav_block, mavlink_mission_mgr::seq, mavlink_mission_mgr::state, STATE_IDLE, sys_time_check_and_ack_timer(), and mavlink_mission_mgr::timer_id.

Referenced by mavlink_periodic().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mavlink_mission_set_timer()

void mavlink_mission_set_timer ( void  )

Definition at line 60 of file mission_manager.c.

References MAVLINK_TIMEOUT, mission_mgr, sys_time_register_timer(), sys_time_update_timer(), and mavlink_mission_mgr::timer_id.

Referenced by mavlink_block_message_handler(), and mavlink_wp_message_handler().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mavlink_send_mission_ack()

void mavlink_send_mission_ack ( void  )

Variable Documentation

◆ mission_mgr