Arduino Mavlink
Loading...
Searching...
No Matches
standard.h
Go to the documentation of this file.
1/** @file
2 * @brief MAVLink comm protocol generated from standard.xml
3 * @see http://mavlink.org
4 */
5#pragma once
6#ifndef MAVLINK_STANDARD_H
7#define MAVLINK_STANDARD_H
8
9#ifndef MAVLINK_H
10 #error Wrong include order: MAVLINK_STANDARD.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
11#endif
12
13#define MAVLINK_STANDARD_XML_HASH -5325331037394189731
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19// MESSAGE LENGTHS AND CRCS
20
21#ifndef MAVLINK_MESSAGE_LENGTHS
22#define MAVLINK_MESSAGE_LENGTHS {}
23#endif
24
25#ifndef MAVLINK_MESSAGE_CRCS
26#define MAVLINK_MESSAGE_CRCS {{0, 50, 9, 9, 0, 0, 0}, {33, 104, 28, 28, 0, 0, 0}, {148, 178, 60, 78, 0, 0, 0}}
27#endif
28
29#include "common/protocol.h"
30
31#define MAVLINK_ENABLED_STANDARD
32
33// ENUM DEFINITIONS
34
35
36/** @brief Enum used to indicate true or false (also: success or failure, enabled or disabled, active or inactive). */
37#ifndef HAVE_ENUM_MAV_BOOL
38#define HAVE_ENUM_MAV_BOOL
39typedef enum MAV_BOOL
40{
41 MAV_BOOL_FALSE=0, /* False. | */
42 MAV_BOOL_TRUE=1, /* True. | */
44} MAV_BOOL;
45#endif
46
47/** @brief Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. */
48#ifndef HAVE_ENUM_MAV_PROTOCOL_CAPABILITY
49#define HAVE_ENUM_MAV_PROTOCOL_CAPABILITY
51{
52 MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT=1, /* Autopilot supports the MISSION_ITEM float message type.
53 Note that MISSION_ITEM is deprecated, and autopilots should use MISSION_ITEM_INT instead.
54 | */
55 MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT=2, /* Autopilot supports the new param float message type. | */
56 MAV_PROTOCOL_CAPABILITY_MISSION_INT=4, /* Autopilot supports MISSION_ITEM_INT scaled integer message type.
57 Note that this flag must always be set if missions are supported, because missions must always use MISSION_ITEM_INT (rather than MISSION_ITEM, which is deprecated).
58 | */
59 MAV_PROTOCOL_CAPABILITY_COMMAND_INT=8, /* Autopilot supports COMMAND_INT scaled integer message type. | */
60 MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE=16, /* Parameter protocol uses byte-wise encoding of parameter values into param_value (float) fields: https://mavlink.io/en/services/parameter.html#parameter-encoding.
61 Note that either this flag or MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST should be set if the parameter protocol is supported.
62 | */
63 MAV_PROTOCOL_CAPABILITY_FTP=32, /* Autopilot supports the File Transfer Protocol v1: https://mavlink.io/en/services/ftp.html. | */
64 MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET=64, /* Autopilot supports commanding attitude offboard. | */
65 MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED=128, /* Autopilot supports commanding position and velocity targets in local NED frame. | */
66 MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT=256, /* Autopilot supports commanding position and velocity targets in global scaled integers. | */
67 MAV_PROTOCOL_CAPABILITY_TERRAIN=512, /* Autopilot supports terrain protocol / data handling. | */
68 MAV_PROTOCOL_CAPABILITY_RESERVED3=1024, /* Reserved for future use. | */
69 MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION=2048, /* Autopilot supports the MAV_CMD_DO_FLIGHTTERMINATION command (flight termination). | */
70 MAV_PROTOCOL_CAPABILITY_COMPASS_CALIBRATION=4096, /* Autopilot supports onboard compass calibration. | */
71 MAV_PROTOCOL_CAPABILITY_MAVLINK2=8192, /* Autopilot supports MAVLink version 2. | */
72 MAV_PROTOCOL_CAPABILITY_MISSION_FENCE=16384, /* Autopilot supports mission fence protocol. | */
73 MAV_PROTOCOL_CAPABILITY_MISSION_RALLY=32768, /* Autopilot supports mission rally point protocol. | */
74 MAV_PROTOCOL_CAPABILITY_RESERVED2=65536, /* Reserved for future use. | */
75 MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST=131072, /* Parameter protocol uses C-cast of parameter values to set the param_value (float) fields: https://mavlink.io/en/services/parameter.html#parameter-encoding.
76 Note that either this flag or MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE should be set if the parameter protocol is supported.
77 | */
78 MAV_PROTOCOL_CAPABILITY_COMPONENT_IMPLEMENTS_GIMBAL_MANAGER=262144, /* This component implements/is a gimbal manager. This means the GIMBAL_MANAGER_INFORMATION, and other messages can be requested.
79 | */
80 MAV_PROTOCOL_CAPABILITY_COMPONENT_ACCEPTS_GCS_CONTROL=524288, /* Component supports locking control to a particular GCS independent of its system (via MAV_CMD_REQUEST_OPERATOR_CONTROL). | */
81 MAV_PROTOCOL_CAPABILITY_GRIPPER=1048576, /* Autopilot has a connected gripper. MAVLink Grippers would set MAV_TYPE_GRIPPER instead. | */
83} MAV_PROTOCOL_CAPABILITY;
84#endif
85
86/** @brief These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. */
87#ifndef HAVE_ENUM_FIRMWARE_VERSION_TYPE
88#define HAVE_ENUM_FIRMWARE_VERSION_TYPE
90{
91 FIRMWARE_VERSION_TYPE_DEV=0, /* development release | */
92 FIRMWARE_VERSION_TYPE_ALPHA=64, /* alpha release | */
93 FIRMWARE_VERSION_TYPE_BETA=128, /* beta release | */
94 FIRMWARE_VERSION_TYPE_RC=192, /* release candidate | */
95 FIRMWARE_VERSION_TYPE_OFFICIAL=255, /* official stable release | */
97} FIRMWARE_VERSION_TYPE;
98#endif
99
100// MAVLINK VERSION
101
102#ifndef MAVLINK_VERSION
103#define MAVLINK_VERSION 2
104#endif
105
106#if (MAVLINK_VERSION == 0)
107#undef MAVLINK_VERSION
108#define MAVLINK_VERSION 2
109#endif
110
111// MESSAGE DEFINITIONS
112#include "./mavlink_msg_global_position_int.h"
113#include "./mavlink_msg_autopilot_version.h"
114
115// base include
116#include "../minimal/minimal.h"
117
118
119#if MAVLINK_STANDARD_XML_HASH == MAVLINK_PRIMARY_XML_HASH
120# define MAVLINK_MESSAGE_INFO {MAVLINK_MESSAGE_INFO_HEARTBEAT, MAVLINK_MESSAGE_INFO_GLOBAL_POSITION_INT, MAVLINK_MESSAGE_INFO_AUTOPILOT_VERSION}
121# define MAVLINK_MESSAGE_NAMES {{ "AUTOPILOT_VERSION", 148 }, { "GLOBAL_POSITION_INT", 33 }, { "HEARTBEAT", 0 }}
122# if MAVLINK_COMMAND_24BIT
123# include "common/mavlink_get_info.h"
124# endif
125#endif
126
127#ifdef __cplusplus
128}
129#endif // __cplusplus
130#endif // MAVLINK_STANDARD_H
#define MAVLINK_VERSION
Definition: common.h:2939
MAV_PROTOCOL_CAPABILITY
Definition: standard.h:51
@ MAV_PROTOCOL_CAPABILITY_RESERVED2
Definition: standard.h:74
@ MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT
Definition: standard.h:66
@ MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT
Definition: standard.h:55
@ MAV_PROTOCOL_CAPABILITY_COMPASS_CALIBRATION
Definition: standard.h:70
@ MAV_PROTOCOL_CAPABILITY_MISSION_RALLY
Definition: standard.h:73
@ MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET
Definition: standard.h:64
@ MAV_PROTOCOL_CAPABILITY_COMPONENT_IMPLEMENTS_GIMBAL_MANAGER
Definition: standard.h:78
@ MAV_PROTOCOL_CAPABILITY_MISSION_FENCE
Definition: standard.h:72
@ MAV_PROTOCOL_CAPABILITY_COMMAND_INT
Definition: standard.h:59
@ MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE
Definition: standard.h:60
@ MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST
Definition: standard.h:75
@ MAV_PROTOCOL_CAPABILITY_RESERVED3
Definition: standard.h:68
@ MAV_PROTOCOL_CAPABILITY_FTP
Definition: standard.h:63
@ MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED
Definition: standard.h:65
@ MAV_PROTOCOL_CAPABILITY_MAVLINK2
Definition: standard.h:71
@ MAV_PROTOCOL_CAPABILITY_TERRAIN
Definition: standard.h:67
@ MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT
Definition: standard.h:52
@ MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION
Definition: standard.h:69
@ MAV_PROTOCOL_CAPABILITY_GRIPPER
Definition: standard.h:81
@ MAV_PROTOCOL_CAPABILITY_MISSION_INT
Definition: standard.h:56
@ MAV_PROTOCOL_CAPABILITY_COMPONENT_ACCEPTS_GCS_CONTROL
Definition: standard.h:80
@ MAV_PROTOCOL_CAPABILITY_ENUM_END
Definition: standard.h:82
FIRMWARE_VERSION_TYPE
Definition: standard.h:90
@ FIRMWARE_VERSION_TYPE_RC
Definition: standard.h:94
@ FIRMWARE_VERSION_TYPE_BETA
Definition: standard.h:93
@ FIRMWARE_VERSION_TYPE_DEV
Definition: standard.h:91
@ FIRMWARE_VERSION_TYPE_OFFICIAL
Definition: standard.h:95
@ FIRMWARE_VERSION_TYPE_ENUM_END
Definition: standard.h:96
@ FIRMWARE_VERSION_TYPE_ALPHA
Definition: standard.h:92
MAV_BOOL
Definition: standard.h:40
@ MAV_BOOL_TRUE
Definition: standard.h:42
@ MAV_BOOL_FALSE
Definition: standard.h:41
@ MAV_BOOL_ENUM_END
Definition: standard.h:43
#define MAVLINK_STANDARD_XML_HASH
Definition: standard.h:13