1 #ifndef MAVLINK_TYPES_H_ 2 #define MAVLINK_TYPES_H_ 5 #if (defined _MSC_VER) && (_MSC_VER < 1600) 6 #error "The C-MAVLink implementation requires Visual Studio 2010 or greater" 13 #define MAVPACKED( __Declaration__ ) __Declaration__ __attribute__((packed)) 15 #define MAVPACKED( __Declaration__ ) __pragma( pack(push, 1) ) __Declaration__ __pragma( pack(pop) ) 18 #ifndef MAVLINK_MAX_PAYLOAD_LEN 20 #define MAVLINK_MAX_PAYLOAD_LEN 255 23 #define MAVLINK_CORE_HEADER_LEN 5 24 #define MAVLINK_NUM_HEADER_BYTES (MAVLINK_CORE_HEADER_LEN + 1) 25 #define MAVLINK_NUM_CHECKSUM_BYTES 2 26 #define MAVLINK_NUM_NON_PAYLOAD_BYTES (MAVLINK_NUM_HEADER_BYTES + MAVLINK_NUM_CHECKSUM_BYTES) 28 #define MAVLINK_MAX_PACKET_LEN (MAVLINK_MAX_PAYLOAD_LEN + MAVLINK_NUM_NON_PAYLOAD_BYTES) 30 #define MAVLINK_MSG_ID_EXTENDED_MESSAGE 255 31 #define MAVLINK_EXTENDED_HEADER_LEN 14 33 #if (defined _MSC_VER) || ((defined __APPLE__) && (defined __MACH__)) || (defined __linux__) 35 #define MAVLINK_MAX_EXTENDED_PACKET_LEN 65507 38 #define MAVLINK_MAX_EXTENDED_PACKET_LEN 2048 41 #define MAVLINK_MAX_EXTENDED_PAYLOAD_LEN (MAVLINK_MAX_EXTENDED_PACKET_LEN - MAVLINK_EXTENDED_HEADER_LEN - MAVLINK_NUM_NON_PAYLOAD_BYTES) 58 uint32_t param_uint32;
60 uint16_t param_uint16;
83 typedef struct param_union_extended {
87 uint8_t mavlink_type:7;
102 }) mavlink_param_union_double_t;
129 int32_t extended_payload_len;
147 #define MAVLINK_MAX_FIELDS 64 166 #define _MAV_PAYLOAD(msg) ((const char *)(&((msg)->payload64[0]))) 167 #define _MAV_PAYLOAD_NON_CONST(msg) ((char *)(&((msg)->payload64[0]))) 170 #define mavlink_ck_a(msg) *((msg)->len + (uint8_t *)_MAV_PAYLOAD_NON_CONST(msg)) 171 #define mavlink_ck_b(msg) *(((msg)->len+(uint16_t)1) + (uint8_t *)_MAV_PAYLOAD_NON_CONST(msg)) 185 #ifndef MAVLINK_COMM_NUM_BUFFERS 186 #if (defined linux) | (defined __linux) | (defined __MACH__) | (defined _WIN32) 187 # define MAVLINK_COMM_NUM_BUFFERS 16 189 # define MAVLINK_COMM_NUM_BUFFERS 4 214 uint8_t msg_received;
215 uint8_t buffer_overrun;
217 mavlink_parse_state_t parse_state;
219 uint8_t current_rx_seq;
220 uint8_t current_tx_seq;
221 uint16_t packet_rx_success_count;
222 uint16_t packet_rx_drop_count;
225 #define MAVLINK_BIG_ENDIAN 0 226 #define MAVLINK_LITTLE_ENDIAN 1 struct __mavlink_message_info mavlink_message_info_t
unsigned int array_length
struct __mavlink_status mavlink_status_t
struct __mavlink_field_info mavlink_field_info_t
#define MAVPACKED(__Declaration__)
#define MAVLINK_MAX_PAYLOAD_LEN
Maximum payload length.
mavlink_message_type_t type
const char * print_format
#define MAVLINK_MAX_FIELDS
unsigned int structure_offset
#define MAVLINK_MAX_EXTENDED_PAYLOAD_LEN
#define MAVLINK_NUM_CHECKSUM_BYTES