-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmavlink_msgs.h
32 lines (22 loc) · 932 Bytes
/
mavlink_msgs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
mavlink message definitions
*/
#pragma once
// we have separate helpers disabled to make it possible
// to select MAVLink 1.0 in the arduino GUI build
#define MAVLINK_SEPARATE_HELPERS
#define MAVLINK_NO_CONVERSION_HELPERS
#define MAVLINK_SEND_UART_BYTES(chan, buf, len) comm_send_buffer(chan, buf, len)
// 2 comm channels per available proxy connection, plus one for STATUSTEXT msgs
#define MAVLINK_COMM_NUM_BUFFERS 3
#define MAVLINK_MAX_PAYLOAD_LEN 255
#if defined(__GNUC__) && __GNUC__ >= 9
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
#endif
#include "libraries/mavlink2/generated/all/version.h"
#include "libraries/mavlink2/generated/mavlink_types.h"
/// MAVLink system definition
extern mavlink_system_t mavlink_system;
void comm_send_buffer(mavlink_channel_t chan, const uint8_t *buf, uint8_t len);
#define MAVLINK_USE_CONVENIENCE_FUNCTIONS
#include "libraries/mavlink2/generated/all/mavlink.h"