44 #ifndef MAVLINK_MESSAGE_HANDLING_H_
45 #define MAVLINK_MESSAGE_HANDLING_H_
52 #include "mavlink_stream.h"
55 #define MAV_SYS_ID_ALL 0
56 #define MAV_MSG_ENUM_END 255
63 typedef void* handling_module_struct_t;
69 typedef enum MAV_RESULT mav_result_t;
74 typedef void (*mavlink_msg_callback_function_t) (handling_module_struct_t, uint32_t sysid, mavlink_message_t*);
80 typedef mav_result_t (*mavlink_cmd_callback_function_t) (handling_module_struct_t,
mavlink_command_long_t*);
87 typedef enum MAV_COMPONENT mav_component_t;
99 mavlink_msg_callback_function_t
function;
113 mavlink_cmd_callback_function_t
function;
220 void mavlink_message_handler_msg_default_dbg(mavlink_message_t* msg);
Set of command callbacks.
Definition: mavlink_message_handler.h:138
mavlink_message_handler_msg_callback_set_t * msg_callback_set
Set of message callbacks.
Definition: mavlink_message_handler.h:154
Main message handler structure.
Definition: mavlink_message_handler.h:152
uint8_t sysid_filter
The function will be called only for messages coming from MAVs with ID sysid_filter (0 for all) ...
Definition: mavlink_message_handler.h:97
Command callback.
Definition: mavlink_message_handler.h:107
bool debug
Indicates whether debug message are written for every incoming message.
Definition: mavlink_message_handler.h:156
uint16_t command_id
The function will be called only for commands with ID command_id.
Definition: mavlink_message_handler.h:109
handling_module_struct_t module_struct
Pointer to module data structure to be given as argument to the function.
Definition: mavlink_message_handler.h:100
Set of message callbacks.
Definition: mavlink_message_handler.h:124
Mavlink structures for the receive message and its status.
Definition: mavlink_stream.h:77
bool debug
Indicates whether debug message are written for every incoming message.
Definition: mavlink_message_handler.h:168
Definition: mavlink_msg_command_long.h:5
mav_component_t compid_target
The function will be called only if the commands targets the component compid_target of this system (...
Definition: mavlink_message_handler.h:112
handling_module_struct_t module_struct
Pointer to module data structure to be given as argument to the function.
Definition: mavlink_message_handler.h:114
uint32_t max_cmd_callback_count
Maximum number of command callbacks.
Definition: mavlink_message_handler.h:167
uint32_t callback_count
Number of command callback currently registered.
Definition: mavlink_message_handler.h:140
Structure used to hold parameters during initialisation.
Definition: mavlink_message_handler.h:164
Message callback.
Definition: mavlink_message_handler.h:93
mav_component_t compid_filter
The function will be called only for messages coming from component compid_filter (0 for all) ...
Definition: mavlink_message_handler.h:98
uint8_t sysid_filter
The function will be called only for commands coming from MAVs with ID sysid_filter (0 for all) ...
Definition: mavlink_message_handler.h:110
const uint32_t * sys_id
Pointer to the system ID.
Definition: mavlink_message_handler.h:95
uint32_t max_msg_callback_count
Maximum number of message callbacks.
Definition: mavlink_message_handler.h:166
uint32_t max_callback_count
Maximum number of callback that can be registered.
Definition: mavlink_message_handler.h:141
mav_component_t compid_filter
The function will be called only for commands coming from component compid_filter (0 for all) ...
Definition: mavlink_message_handler.h:111
mavlink_message_handler_cmd_callback_set_t * cmd_callback_set
Set of command callbacks.
Definition: mavlink_message_handler.h:155
uint32_t callback_count
Number of message callback currently registered.
Definition: mavlink_message_handler.h:126
Main structure for the MAVLink stream module.
Definition: mavlink_stream.h:87
uint8_t message_id
The function will be called only for messages with ID message_id.
Definition: mavlink_message_handler.h:96
uint32_t max_callback_count
Maximum number of callback that can be registered.
Definition: mavlink_message_handler.h:127