Arduino Mavlink
Loading...
Searching...
No Matches
MavlinkConfig.h
Go to the documentation of this file.
1
2// SPDX-License-Identifier: MIT
3// Copyright (c) 2026 pschatzmann
4
5#pragma once
6
7// --- Core ---
8#ifndef MAVLINK_ALIGNED_FIELDS
9#define MAVLINK_ALIGNED_FIELDS 1
10#endif
11
12#ifndef MAVLINK_CRC_EXTRA
13#define MAVLINK_CRC_EXTRA 1
14#endif
15
16#ifndef MAVLINK_COMMAND_24BIT
17#define MAVLINK_COMMAND_24BIT 1
18#endif
19
20// --- Version ---
21#ifndef MAVLINK_VERSION
22#define MAVLINK_VERSION 2
23#endif
24
25#ifndef MAVLINK_PROTOCOL_VERSION
26#define MAVLINK_PROTOCOL_VERSION 2
27#endif
28
29// --- Buffers ---
30#ifndef MAVLINK_COMM_NUM_BUFFERS
31#define MAVLINK_COMM_NUM_BUFFERS 1
32#endif
33
34#ifndef MAVLINK_MAX_PAYLOAD_LEN
35#define MAVLINK_MAX_PAYLOAD_LEN 255
36#endif
37
38// --- Identity ---
39#ifndef MAVLINK_SYSTEM_ID
40#define MAVLINK_SYSTEM_ID 255
41#endif
42
43#ifndef MAVLINK_COMPONENT_ID
44#define MAVLINK_COMPONENT_ID 200
45#endif
46
47// --- Signing ---
48#ifndef MAVLINK_USE_SIGNING
49#define MAVLINK_USE_SIGNING 0
50#endif
51
52// --- Convenience ---
53//#define MAVLINK_USE_CONVENIENCE_FUNCTIONS
54
55// --- Logging ---
56#ifndef MAVLINK_MAX_LOG_SIZE
57#define MAVLINK_MAX_LOG_SIZE 120
58#endif
59
60// --- ESP32 Logging ---
61#ifndef MAVLINK_USE_ESP_LOGGER
62#define MAVLINK_USE_ESP_LOGGER true
63#endif
64
65// ignore warnings about taking the address of packed struct members, which is
66#pragma GCC diagnostic ignored "-Waddress-of-packed-member"