QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
MAVLinkLib.h
Go to the documentation of this file.
1#pragma once
2
4
5// #define MAVLINK_NO_SIGN_PACKET
6// #define MAVLINK_NO_SIGNATURE_CHECK
7// MAVLINK_USE_MESSAGE_INFO is defined only in MAVLinkMessageInfo.cc; look message info up through MAVLinkMessageInfo.h.
8
9#include <stddef.h>
10
11// moc needs no message definitions, and preprocessing the full dialect after some Qt headers takes moc seconds per
12// header. MAVLinkMessageType.h above still provides the base types.
13#ifndef Q_MOC_RUN
14
15// Ignore warnings from mavlink headers for both GCC/Clang and MSVC
16#ifdef __GNUC__
17# if __GNUC__ > 8
18# pragma GCC diagnostic push
19# pragma GCC diagnostic ignored "-Waddress-of-packed-member"
20# else
21# pragma GCC diagnostic push
22# pragma GCC diagnostic ignored "-Wall"
23# endif
24#else
25# pragma warning(push, 0)
26#endif
27
28#include <mavlink.h>
29
30#ifdef __GNUC__
31# pragma GCC diagnostic pop
32#else
33# pragma warning(pop, 0)
34#endif
35
36#endif // Q_MOC_RUN