forked from mavlink/qgroundcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQGCMAVLink.h
37 lines (30 loc) · 1.13 KB
/
QGCMAVLink.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
32
33
34
35
36
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
/**
* @file
* @brief MAVLink header file for QGroundControl
* @author Lorenz Meier <[email protected]>
*/
#ifndef QGCMAVLINK_H
#define QGCMAVLINK_H
#define MAVLINK_USE_MESSAGE_INFO
#define MAVLINK_EXTERNAL_RX_STATUS // Single m_mavlink_status instance is in QGCApplication.cc
#include <stddef.h> // Hack workaround for Mav 2.0 header problem with respect to offsetof usage
#include <mavlink_types.h>
extern mavlink_status_t m_mavlink_status[MAVLINK_COMM_NUM_BUFFERS];
#include <mavlink.h>
class QGCMAVLink {
public:
static bool isFixedWing(MAV_TYPE mavType);
static bool isRover(MAV_TYPE mavType);
static bool isSub(MAV_TYPE mavType);
static bool isMultiRotor(MAV_TYPE mavType);
static bool isVTOL(MAV_TYPE mavType);
};
#endif // QGCMAVLINK_H