NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
common.h
Go to the documentation of this file.
1 
5 #ifndef MAVLINK_COMMON_H
6 #define MAVLINK_COMMON_H
7 
8 #ifndef MAVLINK_H
9  #error Wrong include order: MAVLINK_COMMON.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.
10 #endif
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 // MESSAGE LENGTHS AND CRCS
17 
18 #ifndef MAVLINK_MESSAGE_LENGTHS
19 #define MAVLINK_MESSAGE_LENGTHS {9, 31, 12, 0, 14, 28, 3, 32, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 20, 2, 25, 23, 30, 101, 22, 26, 16, 14, 28, 32, 28, 28, 22, 22, 21, 6, 6, 37, 4, 4, 2, 2, 4, 2, 2, 3, 13, 12, 37, 0, 0, 0, 27, 25, 0, 0, 0, 0, 0, 68, 26, 185, 229, 42, 6, 4, 0, 11, 18, 0, 0, 37, 20, 35, 33, 3, 0, 0, 0, 22, 39, 37, 53, 51, 53, 51, 0, 28, 56, 42, 33, 0, 0, 0, 0, 0, 0, 0, 26, 32, 32, 20, 32, 62, 44, 64, 84, 9, 254, 16, 12, 36, 44, 64, 22, 6, 14, 12, 97, 2, 2, 113, 35, 6, 79, 35, 35, 22, 13, 255, 14, 18, 43, 8, 22, 14, 36, 43, 41, 0, 0, 0, 0, 0, 0, 36, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 36, 30, 18, 18, 51, 9, 0}
20 #endif
21 
22 #ifndef MAVLINK_MESSAGE_CRCS
23 #define MAVLINK_MESSAGE_CRCS {50, 124, 137, 0, 237, 217, 104, 119, 0, 0, 0, 89, 0, 0, 0, 0, 0, 0, 0, 0, 214, 159, 220, 168, 24, 23, 170, 144, 67, 115, 39, 246, 185, 104, 237, 244, 222, 212, 9, 254, 230, 28, 28, 132, 221, 232, 11, 153, 41, 39, 78, 0, 0, 0, 15, 3, 0, 0, 0, 0, 0, 153, 183, 51, 59, 118, 148, 21, 0, 243, 124, 0, 0, 38, 20, 158, 152, 143, 0, 0, 0, 106, 49, 22, 143, 140, 5, 150, 0, 231, 183, 63, 54, 0, 0, 0, 0, 0, 0, 0, 175, 102, 158, 208, 56, 93, 138, 108, 32, 185, 84, 34, 174, 124, 237, 4, 76, 128, 56, 116, 134, 237, 203, 250, 87, 203, 220, 25, 226, 46, 29, 223, 85, 6, 229, 203, 1, 195, 109, 168, 181, 0, 0, 0, 0, 0, 0, 154, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 204, 49, 170, 44, 83, 46, 0}
24 #endif
25 
26 #ifndef MAVLINK_MESSAGE_INFO
27 #define MAVLINK_MESSAGE_INFO {MAVLINK_MESSAGE_INFO_HEARTBEAT, MAVLINK_MESSAGE_INFO_SYS_STATUS, MAVLINK_MESSAGE_INFO_SYSTEM_TIME, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_PING, MAVLINK_MESSAGE_INFO_CHANGE_OPERATOR_CONTROL, MAVLINK_MESSAGE_INFO_CHANGE_OPERATOR_CONTROL_ACK, MAVLINK_MESSAGE_INFO_AUTH_KEY, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_SET_MODE, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_PARAM_REQUEST_READ, MAVLINK_MESSAGE_INFO_PARAM_REQUEST_LIST, MAVLINK_MESSAGE_INFO_PARAM_VALUE, MAVLINK_MESSAGE_INFO_PARAM_SET, MAVLINK_MESSAGE_INFO_GPS_RAW_INT, MAVLINK_MESSAGE_INFO_GPS_STATUS, MAVLINK_MESSAGE_INFO_SCALED_IMU, MAVLINK_MESSAGE_INFO_RAW_IMU, MAVLINK_MESSAGE_INFO_RAW_PRESSURE, MAVLINK_MESSAGE_INFO_SCALED_PRESSURE, MAVLINK_MESSAGE_INFO_ATTITUDE, MAVLINK_MESSAGE_INFO_ATTITUDE_QUATERNION, MAVLINK_MESSAGE_INFO_LOCAL_POSITION_NED, MAVLINK_MESSAGE_INFO_GLOBAL_POSITION_INT, MAVLINK_MESSAGE_INFO_RC_CHANNELS_SCALED, MAVLINK_MESSAGE_INFO_RC_CHANNELS_RAW, MAVLINK_MESSAGE_INFO_SERVO_OUTPUT_RAW, MAVLINK_MESSAGE_INFO_MISSION_REQUEST_PARTIAL_LIST, MAVLINK_MESSAGE_INFO_MISSION_WRITE_PARTIAL_LIST, MAVLINK_MESSAGE_INFO_MISSION_ITEM, MAVLINK_MESSAGE_INFO_MISSION_REQUEST, MAVLINK_MESSAGE_INFO_MISSION_SET_CURRENT, MAVLINK_MESSAGE_INFO_MISSION_CURRENT, MAVLINK_MESSAGE_INFO_MISSION_REQUEST_LIST, MAVLINK_MESSAGE_INFO_MISSION_COUNT, MAVLINK_MESSAGE_INFO_MISSION_CLEAR_ALL, MAVLINK_MESSAGE_INFO_MISSION_ITEM_REACHED, MAVLINK_MESSAGE_INFO_MISSION_ACK, MAVLINK_MESSAGE_INFO_SET_GPS_GLOBAL_ORIGIN, MAVLINK_MESSAGE_INFO_GPS_GLOBAL_ORIGIN, MAVLINK_MESSAGE_INFO_PARAM_MAP_RC, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_SAFETY_SET_ALLOWED_AREA, MAVLINK_MESSAGE_INFO_SAFETY_ALLOWED_AREA, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_ATTITUDE_QUATERNION_COV, MAVLINK_MESSAGE_INFO_NAV_CONTROLLER_OUTPUT, MAVLINK_MESSAGE_INFO_GLOBAL_POSITION_INT_COV, MAVLINK_MESSAGE_INFO_LOCAL_POSITION_NED_COV, MAVLINK_MESSAGE_INFO_RC_CHANNELS, MAVLINK_MESSAGE_INFO_REQUEST_DATA_STREAM, MAVLINK_MESSAGE_INFO_DATA_STREAM, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_MANUAL_CONTROL, MAVLINK_MESSAGE_INFO_RC_CHANNELS_OVERRIDE, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_MISSION_ITEM_INT, MAVLINK_MESSAGE_INFO_VFR_HUD, MAVLINK_MESSAGE_INFO_COMMAND_INT, MAVLINK_MESSAGE_INFO_COMMAND_LONG, MAVLINK_MESSAGE_INFO_COMMAND_ACK, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_MANUAL_SETPOINT, MAVLINK_MESSAGE_INFO_SET_ATTITUDE_TARGET, MAVLINK_MESSAGE_INFO_ATTITUDE_TARGET, MAVLINK_MESSAGE_INFO_SET_POSITION_TARGET_LOCAL_NED, MAVLINK_MESSAGE_INFO_POSITION_TARGET_LOCAL_NED, MAVLINK_MESSAGE_INFO_SET_POSITION_TARGET_GLOBAL_INT, MAVLINK_MESSAGE_INFO_POSITION_TARGET_GLOBAL_INT, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_LOCAL_POSITION_NED_SYSTEM_GLOBAL_OFFSET, MAVLINK_MESSAGE_INFO_HIL_STATE, MAVLINK_MESSAGE_INFO_HIL_CONTROLS, MAVLINK_MESSAGE_INFO_HIL_RC_INPUTS_RAW, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_OPTICAL_FLOW, MAVLINK_MESSAGE_INFO_GLOBAL_VISION_POSITION_ESTIMATE, MAVLINK_MESSAGE_INFO_VISION_POSITION_ESTIMATE, MAVLINK_MESSAGE_INFO_VISION_SPEED_ESTIMATE, MAVLINK_MESSAGE_INFO_VICON_POSITION_ESTIMATE, MAVLINK_MESSAGE_INFO_HIGHRES_IMU, MAVLINK_MESSAGE_INFO_OPTICAL_FLOW_RAD, MAVLINK_MESSAGE_INFO_HIL_SENSOR, MAVLINK_MESSAGE_INFO_SIM_STATE, MAVLINK_MESSAGE_INFO_RADIO_STATUS, MAVLINK_MESSAGE_INFO_FILE_TRANSFER_PROTOCOL, MAVLINK_MESSAGE_INFO_TIMESYNC, MAVLINK_MESSAGE_INFO_CAMERA_TRIGGER, MAVLINK_MESSAGE_INFO_HIL_GPS, MAVLINK_MESSAGE_INFO_HIL_OPTICAL_FLOW, MAVLINK_MESSAGE_INFO_HIL_STATE_QUATERNION, MAVLINK_MESSAGE_INFO_SCALED_IMU2, MAVLINK_MESSAGE_INFO_LOG_REQUEST_LIST, MAVLINK_MESSAGE_INFO_LOG_ENTRY, MAVLINK_MESSAGE_INFO_LOG_REQUEST_DATA, MAVLINK_MESSAGE_INFO_LOG_DATA, MAVLINK_MESSAGE_INFO_LOG_ERASE, MAVLINK_MESSAGE_INFO_LOG_REQUEST_END, MAVLINK_MESSAGE_INFO_GPS_INJECT_DATA, MAVLINK_MESSAGE_INFO_GPS2_RAW, MAVLINK_MESSAGE_INFO_POWER_STATUS, MAVLINK_MESSAGE_INFO_SERIAL_CONTROL, MAVLINK_MESSAGE_INFO_GPS_RTK, MAVLINK_MESSAGE_INFO_GPS2_RTK, MAVLINK_MESSAGE_INFO_SCALED_IMU3, MAVLINK_MESSAGE_INFO_DATA_TRANSMISSION_HANDSHAKE, MAVLINK_MESSAGE_INFO_ENCAPSULATED_DATA, MAVLINK_MESSAGE_INFO_DISTANCE_SENSOR, MAVLINK_MESSAGE_INFO_TERRAIN_REQUEST, MAVLINK_MESSAGE_INFO_TERRAIN_DATA, MAVLINK_MESSAGE_INFO_TERRAIN_CHECK, MAVLINK_MESSAGE_INFO_TERRAIN_REPORT, MAVLINK_MESSAGE_INFO_SCALED_PRESSURE2, MAVLINK_MESSAGE_INFO_ATT_POS_MOCAP, MAVLINK_MESSAGE_INFO_SET_ACTUATOR_CONTROL_TARGET, MAVLINK_MESSAGE_INFO_ACTUATOR_CONTROL_TARGET, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_BATTERY_STATUS, MAVLINK_MESSAGE_INFO_AUTOPILOT_VERSION, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_V2_EXTENSION, MAVLINK_MESSAGE_INFO_MEMORY_VECT, MAVLINK_MESSAGE_INFO_DEBUG_VECT, MAVLINK_MESSAGE_INFO_NAMED_VALUE_FLOAT, MAVLINK_MESSAGE_INFO_NAMED_VALUE_INT, MAVLINK_MESSAGE_INFO_STATUSTEXT, MAVLINK_MESSAGE_INFO_DEBUG, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}}
28 #endif
29 
30 #include "../protocol.h"
31 
32 #define MAVLINK_ENABLED_COMMON
33 
34 // ENUM DEFINITIONS
35 
36 
38 #ifndef HAVE_ENUM_MAV_AUTOPILOT
39 #define HAVE_ENUM_MAV_AUTOPILOT
40 typedef enum MAV_AUTOPILOT
41 {
42  MAV_AUTOPILOT_GENERIC=0, /* Generic autopilot, full support for everything | */
43  MAV_AUTOPILOT_PIXHAWK=1, /* PIXHAWK autopilot, http://pixhawk.ethz.ch | */
44  MAV_AUTOPILOT_SLUGS=2, /* SLUGS autopilot, http://slugsuav.soe.ucsc.edu | */
45  MAV_AUTOPILOT_ARDUPILOTMEGA=3, /* ArduPilotMega / ArduCopter, http://diydrones.com | */
46  MAV_AUTOPILOT_OPENPILOT=4, /* OpenPilot, http://openpilot.org | */
47  MAV_AUTOPILOT_GENERIC_WAYPOINTS_ONLY=5, /* Generic autopilot only supporting simple waypoints | */
48  MAV_AUTOPILOT_GENERIC_WAYPOINTS_AND_SIMPLE_NAVIGATION_ONLY=6, /* Generic autopilot supporting waypoints and other simple navigation commands | */
49  MAV_AUTOPILOT_GENERIC_MISSION_FULL=7, /* Generic autopilot supporting the full mission command set | */
50  MAV_AUTOPILOT_INVALID=8, /* No valid autopilot, e.g. a GCS or other MAVLink component | */
51  MAV_AUTOPILOT_PPZ=9, /* PPZ UAV - http://nongnu.org/paparazzi | */
52  MAV_AUTOPILOT_UDB=10, /* UAV Dev Board | */
53  MAV_AUTOPILOT_FP=11, /* FlexiPilot | */
54  MAV_AUTOPILOT_PX4=12, /* PX4 Autopilot - http://pixhawk.ethz.ch/px4/ | */
55  MAV_AUTOPILOT_SMACCMPILOT=13, /* SMACCMPilot - http://smaccmpilot.org | */
56  MAV_AUTOPILOT_AUTOQUAD=14, /* AutoQuad -- http://autoquad.org | */
57  MAV_AUTOPILOT_ARMAZILA=15, /* Armazila -- http://armazila.com | */
58  MAV_AUTOPILOT_AEROB=16, /* Aerob -- http://aerob.ru | */
59  MAV_AUTOPILOT_ASLUAV=17, /* ASLUAV autopilot -- http://www.asl.ethz.ch | */
62 #endif
63 
65 #ifndef HAVE_ENUM_MAV_TYPE
66 #define HAVE_ENUM_MAV_TYPE
67 typedef enum MAV_TYPE
68 {
69  MAV_TYPE_GENERIC=0, /* Generic micro air vehicle. | */
70  MAV_TYPE_FIXED_WING=1, /* Fixed wing aircraft. | */
71  MAV_TYPE_QUADROTOR=2, /* Quadrotor | */
72  MAV_TYPE_COAXIAL=3, /* Coaxial helicopter | */
73  MAV_TYPE_HELICOPTER=4, /* Normal helicopter with tail rotor. | */
74  MAV_TYPE_ANTENNA_TRACKER=5, /* Ground installation | */
75  MAV_TYPE_GCS=6, /* Operator control unit / ground control station | */
76  MAV_TYPE_AIRSHIP=7, /* Airship, controlled | */
77  MAV_TYPE_FREE_BALLOON=8, /* Free balloon, uncontrolled | */
78  MAV_TYPE_ROCKET=9, /* Rocket | */
79  MAV_TYPE_GROUND_ROVER=10, /* Ground rover | */
80  MAV_TYPE_SURFACE_BOAT=11, /* Surface vessel, boat, ship | */
81  MAV_TYPE_SUBMARINE=12, /* Submarine | */
82  MAV_TYPE_HEXAROTOR=13, /* Hexarotor | */
83  MAV_TYPE_OCTOROTOR=14, /* Octorotor | */
84  MAV_TYPE_TRICOPTER=15, /* Octorotor | */
85  MAV_TYPE_FLAPPING_WING=16, /* Flapping wing | */
86  MAV_TYPE_KITE=17, /* Flapping wing | */
87  MAV_TYPE_ONBOARD_CONTROLLER=18, /* Onboard companion controller | */
88  MAV_TYPE_VTOL_DUOROTOR=19, /* Two-rotor VTOL using control surfaces in vertical operation in addition. Tailsitter. | */
89  MAV_TYPE_VTOL_QUADROTOR=20, /* Quad-rotor VTOL using a V-shaped quad config in vertical operation. Tailsitter. | */
90  MAV_TYPE_VTOL_RESERVED1=21, /* VTOL reserved 1 | */
91  MAV_TYPE_VTOL_RESERVED2=22, /* VTOL reserved 2 | */
92  MAV_TYPE_VTOL_RESERVED3=23, /* VTOL reserved 3 | */
93  MAV_TYPE_VTOL_RESERVED4=24, /* VTOL reserved 4 | */
94  MAV_TYPE_VTOL_RESERVED5=25, /* VTOL reserved 5 | */
95  MAV_TYPE_GIMBAL=26, /* Onboard gimbal | */
96  MAV_TYPE_ENUM_END=27, /* | */
97 } MAV_TYPE;
98 #endif
99 
101 #ifndef HAVE_ENUM_MAV_MODE_FLAG
102 #define HAVE_ENUM_MAV_MODE_FLAG
103 typedef enum MAV_MODE_FLAG
104 {
105  MAV_MODE_FLAG_CUSTOM_MODE_ENABLED=1, /* 0b00000001 Reserved for future use. | */
106  MAV_MODE_FLAG_TEST_ENABLED=2, /* 0b00000010 system has a test mode enabled. This flag is intended for temporary system tests and should not be used for stable implementations. | */
107  MAV_MODE_FLAG_AUTO_ENABLED=4, /* 0b00000100 autonomous mode enabled, system finds its own goal positions. Guided flag can be set or not, depends on the actual implementation. | */
108  MAV_MODE_FLAG_GUIDED_ENABLED=8, /* 0b00001000 guided mode enabled, system flies MISSIONs / mission items. | */
109  MAV_MODE_FLAG_STABILIZE_ENABLED=16, /* 0b00010000 system stabilizes electronically its attitude (and optionally position). It needs however further control inputs to move around. | */
110  MAV_MODE_FLAG_HIL_ENABLED=32, /* 0b00100000 hardware in the loop simulation. All motors / actuators are blocked, but internal software is full operational. | */
111  MAV_MODE_FLAG_MANUAL_INPUT_ENABLED=64, /* 0b01000000 remote control input is enabled. | */
112  MAV_MODE_FLAG_SAFETY_ARMED=128, /* 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. | */
114 } MAV_MODE_FLAG;
115 #endif
116 
118 #ifndef HAVE_ENUM_MAV_MODE_FLAG_DECODE_POSITION
119 #define HAVE_ENUM_MAV_MODE_FLAG_DECODE_POSITION
121 {
122  MAV_MODE_FLAG_DECODE_POSITION_CUSTOM_MODE=1, /* Eighth bit: 00000001 | */
123  MAV_MODE_FLAG_DECODE_POSITION_TEST=2, /* Seventh bit: 00000010 | */
124  MAV_MODE_FLAG_DECODE_POSITION_AUTO=4, /* Sixt bit: 00000100 | */
125  MAV_MODE_FLAG_DECODE_POSITION_GUIDED=8, /* Fifth bit: 00001000 | */
126  MAV_MODE_FLAG_DECODE_POSITION_STABILIZE=16, /* Fourth bit: 00010000 | */
127  MAV_MODE_FLAG_DECODE_POSITION_HIL=32, /* Third bit: 00100000 | */
128  MAV_MODE_FLAG_DECODE_POSITION_MANUAL=64, /* Second bit: 01000000 | */
129  MAV_MODE_FLAG_DECODE_POSITION_SAFETY=128, /* First bit: 10000000 | */
132 #endif
133 
135 #ifndef HAVE_ENUM_MAV_GOTO
136 #define HAVE_ENUM_MAV_GOTO
137 typedef enum MAV_GOTO
138 {
139  MAV_GOTO_DO_HOLD=0, /* Hold at the current position. | */
140  MAV_GOTO_DO_CONTINUE=1, /* Continue with the next item in mission execution. | */
141  MAV_GOTO_HOLD_AT_CURRENT_POSITION=2, /* Hold at the current position of the system | */
142  MAV_GOTO_HOLD_AT_SPECIFIED_POSITION=3, /* Hold at the position specified in the parameters of the DO_HOLD action | */
143  MAV_GOTO_ENUM_END=4, /* | */
144 } MAV_GOTO;
145 #endif
146 
149 #ifndef HAVE_ENUM_MAV_MODE
150 #define HAVE_ENUM_MAV_MODE
151 typedef enum MAV_MODE
152 {
153  MAV_MODE_PREFLIGHT=0, /* System is not ready to fly, booting, calibrating, etc. No flag is set. | */
154  MAV_MODE_MANUAL_DISARMED=64, /* System is allowed to be active, under manual (RC) control, no stabilization | */
155  MAV_MODE_TEST_DISARMED=66, /* UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only. | */
156  MAV_MODE_STABILIZE_DISARMED=80, /* System is allowed to be active, under assisted RC control. | */
157  MAV_MODE_GUIDED_DISARMED=88, /* System is allowed to be active, under autonomous control, manual setpoint | */
158  MAV_MODE_AUTO_DISARMED=92, /* System is allowed to be active, under autonomous control and navigation (the trajectory is decided onboard and not pre-programmed by MISSIONs) | */
159  MAV_MODE_MANUAL_ARMED=192, /* System is allowed to be active, under manual (RC) control, no stabilization | */
160  MAV_MODE_TEST_ARMED=194, /* UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only. | */
161  MAV_MODE_STABILIZE_ARMED=208, /* System is allowed to be active, under assisted RC control. | */
162  MAV_MODE_GUIDED_ARMED=216, /* System is allowed to be active, under autonomous control, manual setpoint | */
163  MAV_MODE_AUTO_ARMED=220, /* System is allowed to be active, under autonomous control and navigation (the trajectory is decided onboard and not pre-programmed by MISSIONs) | */
164  MAV_MODE_ENUM_END=221, /* | */
165 } MAV_MODE;
166 #endif
167 
169 #ifndef HAVE_ENUM_MAV_STATE
170 #define HAVE_ENUM_MAV_STATE
171 typedef enum MAV_STATE
172 {
173  MAV_STATE_UNINIT=0, /* Uninitialized system, state is unknown. | */
174  MAV_STATE_BOOT=1, /* System is booting up. | */
175  MAV_STATE_CALIBRATING=2, /* System is calibrating and not flight-ready. | */
176  MAV_STATE_STANDBY=3, /* System is grounded and on standby. It can be launched any time. | */
177  MAV_STATE_ACTIVE=4, /* System is active and might be already airborne. Motors are engaged. | */
178  MAV_STATE_CRITICAL=5, /* System is in a non-normal flight mode. It can however still navigate. | */
179  MAV_STATE_EMERGENCY=6, /* System is in a non-normal flight mode. It lost control over parts or over the whole airframe. It is in mayday and going down. | */
180  MAV_STATE_POWEROFF=7, /* System just initialized its power-down sequence, will shut down now. | */
182 } MAV_STATE;
183 #endif
184 
186 #ifndef HAVE_ENUM_MAV_COMPONENT
187 #define HAVE_ENUM_MAV_COMPONENT
188 typedef enum MAV_COMPONENT
189 {
190  MAV_COMP_ID_ALL=0, /* | */
191  MAV_COMP_ID_CAMERA=100, /* | */
192  MAV_COMP_ID_SERVO1=140, /* | */
193  MAV_COMP_ID_SERVO2=141, /* | */
194  MAV_COMP_ID_SERVO3=142, /* | */
195  MAV_COMP_ID_SERVO4=143, /* | */
196  MAV_COMP_ID_SERVO5=144, /* | */
197  MAV_COMP_ID_SERVO6=145, /* | */
198  MAV_COMP_ID_SERVO7=146, /* | */
199  MAV_COMP_ID_SERVO8=147, /* | */
200  MAV_COMP_ID_SERVO9=148, /* | */
201  MAV_COMP_ID_SERVO10=149, /* | */
202  MAV_COMP_ID_SERVO11=150, /* | */
203  MAV_COMP_ID_SERVO12=151, /* | */
204  MAV_COMP_ID_SERVO13=152, /* | */
205  MAV_COMP_ID_SERVO14=153, /* | */
206  MAV_COMP_ID_GIMBAL=154, /* | */
207  MAV_COMP_ID_MAPPER=180, /* | */
210  MAV_COMP_ID_IMU=200, /* | */
211  MAV_COMP_ID_IMU_2=201, /* | */
212  MAV_COMP_ID_IMU_3=202, /* | */
213  MAV_COMP_ID_GPS=220, /* | */
218 } MAV_COMPONENT;
219 #endif
220 
222 #ifndef HAVE_ENUM_MAV_SYS_STATUS_SENSOR
223 #define HAVE_ENUM_MAV_SYS_STATUS_SENSOR
225 {
226  MAV_SYS_STATUS_SENSOR_3D_GYRO=1, /* 0x01 3D gyro | */
227  MAV_SYS_STATUS_SENSOR_3D_ACCEL=2, /* 0x02 3D accelerometer | */
228  MAV_SYS_STATUS_SENSOR_3D_MAG=4, /* 0x04 3D magnetometer | */
229  MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE=8, /* 0x08 absolute pressure | */
230  MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE=16, /* 0x10 differential pressure | */
231  MAV_SYS_STATUS_SENSOR_GPS=32, /* 0x20 GPS | */
232  MAV_SYS_STATUS_SENSOR_OPTICAL_FLOW=64, /* 0x40 optical flow | */
233  MAV_SYS_STATUS_SENSOR_VISION_POSITION=128, /* 0x80 computer vision position | */
234  MAV_SYS_STATUS_SENSOR_LASER_POSITION=256, /* 0x100 laser based position | */
235  MAV_SYS_STATUS_SENSOR_EXTERNAL_GROUND_TRUTH=512, /* 0x200 external ground truth (Vicon or Leica) | */
236  MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL=1024, /* 0x400 3D angular rate control | */
237  MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION=2048, /* 0x800 attitude stabilization | */
238  MAV_SYS_STATUS_SENSOR_YAW_POSITION=4096, /* 0x1000 yaw position | */
239  MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL=8192, /* 0x2000 z/altitude control | */
240  MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL=16384, /* 0x4000 x/y position control | */
241  MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS=32768, /* 0x8000 motor outputs / control | */
242  MAV_SYS_STATUS_SENSOR_RC_RECEIVER=65536, /* 0x10000 rc receiver | */
243  MAV_SYS_STATUS_SENSOR_3D_GYRO2=131072, /* 0x20000 2nd 3D gyro | */
244  MAV_SYS_STATUS_SENSOR_3D_ACCEL2=262144, /* 0x40000 2nd 3D accelerometer | */
245  MAV_SYS_STATUS_SENSOR_3D_MAG2=524288, /* 0x80000 2nd 3D magnetometer | */
246  MAV_SYS_STATUS_GEOFENCE=1048576, /* 0x100000 geofence | */
247  MAV_SYS_STATUS_AHRS=2097152, /* 0x200000 AHRS subsystem health | */
248  MAV_SYS_STATUS_TERRAIN=4194304, /* 0x400000 Terrain subsystem health | */
251 #endif
252 
254 #ifndef HAVE_ENUM_MAV_FRAME
255 #define HAVE_ENUM_MAV_FRAME
256 typedef enum MAV_FRAME
257 {
258  MAV_FRAME_GLOBAL=0, /* Global coordinate frame, WGS84 coordinate system. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL) | */
259  MAV_FRAME_LOCAL_NED=1, /* Local coordinate frame, Z-up (x: north, y: east, z: down). | */
260  MAV_FRAME_MISSION=2, /* NOT a coordinate frame, indicates a mission command. | */
261  MAV_FRAME_GLOBAL_RELATIVE_ALT=3, /* Global coordinate frame, WGS84 coordinate system, relative altitude over ground with respect to the home position. First value / x: latitude, second value / y: longitude, third value / z: positive altitude with 0 being at the altitude of the home location. | */
262  MAV_FRAME_LOCAL_ENU=4, /* Local coordinate frame, Z-down (x: east, y: north, z: up) | */
263  MAV_FRAME_GLOBAL_INT=5, /* Global coordinate frame, WGS84 coordinate system. First value / x: latitude in degrees*1.0e-7, second value / y: longitude in degrees*1.0e-7, third value / z: positive altitude over mean sea level (MSL) | */
264  MAV_FRAME_GLOBAL_RELATIVE_ALT_INT=6, /* Global coordinate frame, WGS84 coordinate system, relative altitude over ground with respect to the home position. First value / x: latitude in degrees*10e-7, second value / y: longitude in degrees*10e-7, third value / z: positive altitude with 0 being at the altitude of the home location. | */
265  MAV_FRAME_LOCAL_OFFSET_NED=7, /* Offset to the current local frame. Anything expressed in this frame should be added to the current local frame position. | */
266  MAV_FRAME_BODY_NED=8, /* Setpoint in body NED frame. This makes sense if all position control is externalized - e.g. useful to command 2 m/s^2 acceleration to the right. | */
267  MAV_FRAME_BODY_OFFSET_NED=9, /* Offset in body NED frame. This makes sense if adding setpoints to the current flight path, to avoid an obstacle - e.g. useful to command 2 m/s^2 acceleration to the east. | */
268  MAV_FRAME_GLOBAL_TERRAIN_ALT=10, /* Global coordinate frame with above terrain level altitude. WGS84 coordinate system, relative altitude over terrain with respect to the waypoint coordinate. First value / x: latitude in degrees, second value / y: longitude in degrees, third value / z: positive altitude in meters with 0 being at ground level in terrain model. | */
269  MAV_FRAME_GLOBAL_TERRAIN_ALT_INT=11, /* Global coordinate frame with above terrain level altitude. WGS84 coordinate system, relative altitude over terrain with respect to the waypoint coordinate. First value / x: latitude in degrees*10e-7, second value / y: longitude in degrees*10e-7, third value / z: positive altitude in meters with 0 being at ground level in terrain model. | */
270  MAV_FRAME_ENUM_END=12, /* | */
271 } MAV_FRAME;
272 #endif
273 
275 #ifndef HAVE_ENUM_MAVLINK_DATA_STREAM_TYPE
276 #define HAVE_ENUM_MAVLINK_DATA_STREAM_TYPE
278 {
287 #endif
288 
290 #ifndef HAVE_ENUM_FENCE_ACTION
291 #define HAVE_ENUM_FENCE_ACTION
292 typedef enum FENCE_ACTION
293 {
294  FENCE_ACTION_NONE=0, /* Disable fenced mode | */
295  FENCE_ACTION_GUIDED=1, /* Switched to guided mode to return point (fence point 0) | */
296  FENCE_ACTION_REPORT=2, /* Report fence breach, but don't take action | */
297  FENCE_ACTION_GUIDED_THR_PASS=3, /* Switched to guided mode to return point (fence point 0) with manual throttle control | */
299 } FENCE_ACTION;
300 #endif
301 
303 #ifndef HAVE_ENUM_FENCE_BREACH
304 #define HAVE_ENUM_FENCE_BREACH
305 typedef enum FENCE_BREACH
306 {
307  FENCE_BREACH_NONE=0, /* No last fence breach | */
308  FENCE_BREACH_MINALT=1, /* Breached minimum altitude | */
309  FENCE_BREACH_MAXALT=2, /* Breached maximum altitude | */
310  FENCE_BREACH_BOUNDARY=3, /* Breached fence boundary | */
312 } FENCE_BREACH;
313 #endif
314 
316 #ifndef HAVE_ENUM_MAV_MOUNT_MODE
317 #define HAVE_ENUM_MAV_MOUNT_MODE
318 typedef enum MAV_MOUNT_MODE
319 {
320  MAV_MOUNT_MODE_RETRACT=0, /* Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization | */
321  MAV_MOUNT_MODE_NEUTRAL=1, /* Load and keep neutral position (Roll,Pitch,Yaw) from permanent memory. | */
322  MAV_MOUNT_MODE_MAVLINK_TARGETING=2, /* Load neutral position and start MAVLink Roll,Pitch,Yaw control with stabilization | */
323  MAV_MOUNT_MODE_RC_TARGETING=3, /* Load neutral position and start RC Roll,Pitch,Yaw control with stabilization | */
324  MAV_MOUNT_MODE_GPS_POINT=4, /* Load neutral position and start to point to Lat,Lon,Alt | */
327 #endif
328 
330 #ifndef HAVE_ENUM_MAV_CMD
331 #define HAVE_ENUM_MAV_CMD
332 typedef enum MAV_CMD
333 {
334  MAV_CMD_NAV_WAYPOINT=16, /* Navigate to MISSION. |Hold time in decimal seconds. (ignored by fixed wing, time to stay at MISSION for rotary wing)| Acceptance radius in meters (if the sphere with this radius is hit, the MISSION counts as reached)| 0 to pass through the WP, if > 0 radius in meters to pass by WP. Positive value for clockwise orbit, negative value for counter-clockwise orbit. Allows trajectory control.| Desired yaw angle at MISSION (rotary wing)| Latitude| Longitude| Altitude| */
335  MAV_CMD_NAV_LOITER_UNLIM=17, /* Loiter around this MISSION an unlimited amount of time |Empty| Empty| Radius around MISSION, in meters. If positive loiter clockwise, else counter-clockwise| Desired yaw angle.| Latitude| Longitude| Altitude| */
336  MAV_CMD_NAV_LOITER_TURNS=18, /* Loiter around this MISSION for X turns |Turns| Empty| Radius around MISSION, in meters. If positive loiter clockwise, else counter-clockwise| Desired yaw angle.| Latitude| Longitude| Altitude| */
337  MAV_CMD_NAV_LOITER_TIME=19, /* Loiter around this MISSION for X seconds |Seconds (decimal)| Empty| Radius around MISSION, in meters. If positive loiter clockwise, else counter-clockwise| Desired yaw angle.| Latitude| Longitude| Altitude| */
338  MAV_CMD_NAV_RETURN_TO_LAUNCH=20, /* Return to launch location |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
339  MAV_CMD_NAV_LAND=21, /* Land at location |Empty| Empty| Empty| Desired yaw angle.| Latitude| Longitude| Altitude| */
340  MAV_CMD_NAV_TAKEOFF=22, /* Takeoff from ground / hand |Minimum pitch (if airspeed sensor present), desired pitch without sensor| Empty| Empty| Yaw angle (if magnetometer present), ignored without magnetometer| Latitude| Longitude| Altitude| */
341  MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT=30, /* Continue on the current course and climb/descend to specified altitude. When the altitude is reached continue to the next command (i.e., don't proceed to the next command until the desired altitude is reached. |Empty| Empty| Empty| Empty| Empty| Empty| Desired altitude in meters| */
342  MAV_CMD_NAV_ROI=80, /* Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicles control system to control the vehicle attitude and the attitude of various sensors such as cameras. |Region of intereset mode. (see MAV_ROI enum)| MISSION index/ target ID. (see MAV_ROI enum)| ROI index (allows a vehicle to manage multiple ROI's)| Empty| x the location of the fixed ROI (see MAV_FRAME)| y| z| */
343  MAV_CMD_NAV_PATHPLANNING=81, /* Control autonomous path planning on the MAV. |0: Disable local obstacle avoidance / local path planning (without resetting map), 1: Enable local path planning, 2: Enable and reset local path planning| 0: Disable full path planning (without resetting map), 1: Enable, 2: Enable and reset map/occupancy grid, 3: Enable and reset planned route, but not occupancy grid| Empty| Yaw angle at goal, in compass degrees, [0..360]| Latitude/X of goal| Longitude/Y of goal| Altitude/Z of goal| */
344  MAV_CMD_NAV_SPLINE_WAYPOINT=82, /* Navigate to MISSION using a spline path. |Hold time in decimal seconds. (ignored by fixed wing, time to stay at MISSION for rotary wing)| Empty| Empty| Empty| Latitude/X of goal| Longitude/Y of goal| Altitude/Z of goal| */
345  MAV_CMD_NAV_GUIDED_ENABLE=92, /* hand control over to an external controller |On / Off (> 0.5f on)| Empty| Empty| Empty| Empty| Empty| Empty| */
346  MAV_CMD_NAV_LAST=95, /* NOP - This command is only used to mark the upper limit of the NAV/ACTION commands in the enumeration |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
347  MAV_CMD_CONDITION_DELAY=112, /* Delay mission state machine. |Delay in seconds (decimal)| Empty| Empty| Empty| Empty| Empty| Empty| */
348  MAV_CMD_CONDITION_CHANGE_ALT=113, /* Ascend/descend at rate. Delay mission state machine until desired altitude reached. |Descent / Ascend rate (m/s)| Empty| Empty| Empty| Empty| Empty| Finish Altitude| */
349  MAV_CMD_CONDITION_DISTANCE=114, /* Delay mission state machine until within desired distance of next NAV point. |Distance (meters)| Empty| Empty| Empty| Empty| Empty| Empty| */
350  MAV_CMD_CONDITION_YAW=115, /* Reach a certain target angle. |target angle: [0-360], 0 is north| speed during yaw change:[deg per second]| direction: negative: counter clockwise, positive: clockwise [-1,1]| relative offset or absolute angle: [ 1,0]| Empty| Empty| Empty| */
351  MAV_CMD_CONDITION_LAST=159, /* NOP - This command is only used to mark the upper limit of the CONDITION commands in the enumeration |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
352  MAV_CMD_DO_SET_MODE=176, /* Set system mode. |Mode, as defined by ENUM MAV_MODE| Custom mode - this is system specific, please refer to the individual autopilot specifications for details.| Empty| Empty| Empty| Empty| Empty| */
353  MAV_CMD_DO_JUMP=177, /* Jump to the desired command in the mission list. Repeat this action only the specified number of times |Sequence number| Repeat count| Empty| Empty| Empty| Empty| Empty| */
354  MAV_CMD_DO_CHANGE_SPEED=178, /* Change speed and/or throttle set points. |Speed type (0=Airspeed, 1=Ground Speed)| Speed (m/s, -1 indicates no change)| Throttle ( Percent, -1 indicates no change)| Empty| Empty| Empty| Empty| */
355  MAV_CMD_DO_SET_HOME=179, /* Changes the home location either to the current location or a specified location. |Use current (1=use current location, 0=use specified location)| Empty| Empty| Empty| Latitude| Longitude| Altitude| */
356  MAV_CMD_DO_SET_PARAMETER=180, /* Set a system parameter. Caution! Use of this command requires knowledge of the numeric enumeration value of the parameter. |Parameter number| Parameter value| Empty| Empty| Empty| Empty| Empty| */
357  MAV_CMD_DO_SET_RELAY=181, /* Set a relay to a condition. |Relay number| Setting (1=on, 0=off, others possible depending on system hardware)| Empty| Empty| Empty| Empty| Empty| */
358  MAV_CMD_DO_REPEAT_RELAY=182, /* Cycle a relay on and off for a desired number of cyles with a desired period. |Relay number| Cycle count| Cycle time (seconds, decimal)| Empty| Empty| Empty| Empty| */
359  MAV_CMD_DO_SET_SERVO=183, /* Set a servo to a desired PWM value. |Servo number| PWM (microseconds, 1000 to 2000 typical)| Empty| Empty| Empty| Empty| Empty| */
360  MAV_CMD_DO_REPEAT_SERVO=184, /* Cycle a between its nominal setting and a desired PWM for a desired number of cycles with a desired period. |Servo number| PWM (microseconds, 1000 to 2000 typical)| Cycle count| Cycle time (seconds)| Empty| Empty| Empty| */
361  MAV_CMD_DO_FLIGHTTERMINATION=185, /* Terminate flight immediately |Flight termination activated if > 0.5| Empty| Empty| Empty| Empty| Empty| Empty| */
362  MAV_CMD_DO_LAND_START=189, /* Mission command to perform a landing. This is used as a marker in a mission to tell the autopilot where a sequence of mission items that represents a landing starts. It may also be sent via a COMMAND_LONG to trigger a landing, in which case the nearest (geographically) landing sequence in the mission will be used. The Latitude/Longitude is optional, and may be set to 0/0 if not needed. If specified then it will be used to help find the closest landing sequence. |Empty| Empty| Empty| Empty| Latitude| Longitude| Empty| */
363  MAV_CMD_DO_RALLY_LAND=190, /* Mission command to perform a landing from a rally point. |Break altitude (meters)| Landing speed (m/s)| Empty| Empty| Empty| Empty| Empty| */
364  MAV_CMD_DO_GO_AROUND=191, /* Mission command to safely abort an autonmous landing. |Altitude (meters)| Empty| Empty| Empty| Empty| Empty| Empty| */
365  MAV_CMD_DO_CONTROL_VIDEO=200, /* Control onboard camera system. |Camera ID (-1 for all)| Transmission: 0: disabled, 1: enabled compressed, 2: enabled raw| Transmission mode: 0: video stream, >0: single images every n seconds (decimal)| Recording: 0: disabled, 1: enabled compressed, 2: enabled raw| Empty| Empty| Empty| */
366  MAV_CMD_DO_SET_ROI=201, /* Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicles control system to control the vehicle attitude and the attitude of various sensors such as cameras. |Region of intereset mode. (see MAV_ROI enum)| MISSION index/ target ID. (see MAV_ROI enum)| ROI index (allows a vehicle to manage multiple ROI's)| Empty| x the location of the fixed ROI (see MAV_FRAME)| y| z| */
367  MAV_CMD_DO_DIGICAM_CONFIGURE=202, /* Mission command to configure an on-board camera controller system. |Modes: P, TV, AV, M, Etc| Shutter speed: Divisor number for one second| Aperture: F stop number| ISO number e.g. 80, 100, 200, Etc| Exposure type enumerator| Command Identity| Main engine cut-off time before camera trigger in seconds/10 (0 means no cut-off)| */
368  MAV_CMD_DO_DIGICAM_CONTROL=203, /* Mission command to control an on-board camera controller system. |Session control e.g. show/hide lens| Zoom's absolute position| Zooming step value to offset zoom from the current position| Focus Locking, Unlocking or Re-locking| Shooting Command| Command Identity| Empty| */
369  MAV_CMD_DO_MOUNT_CONFIGURE=204, /* Mission command to configure a camera or antenna mount |Mount operation mode (see MAV_MOUNT_MODE enum)| stabilize roll? (1 = yes, 0 = no)| stabilize pitch? (1 = yes, 0 = no)| stabilize yaw? (1 = yes, 0 = no)| Empty| Empty| Empty| */
370  MAV_CMD_DO_MOUNT_CONTROL=205, /* Mission command to control a camera or antenna mount |pitch or lat in degrees, depending on mount mode.| roll or lon in degrees depending on mount mode| yaw or alt (in meters) depending on mount mode| reserved| reserved| reserved| MAV_MOUNT_MODE enum value| */
371  MAV_CMD_DO_SET_CAM_TRIGG_DIST=206, /* Mission command to set CAM_TRIGG_DIST for this flight |Camera trigger distance (meters)| Empty| Empty| Empty| Empty| Empty| Empty| */
372  MAV_CMD_DO_FENCE_ENABLE=207, /* Mission command to enable the geofence |enable? (0=disable, 1=enable)| Empty| Empty| Empty| Empty| Empty| Empty| */
373  MAV_CMD_DO_PARACHUTE=208, /* Mission command to trigger a parachute |action (0=disable, 1=enable, 2=release, for some systems see PARACHUTE_ACTION enum, not in general message set.)| Empty| Empty| Empty| Empty| Empty| Empty| */
374  MAV_CMD_DO_INVERTED_FLIGHT=210, /* Change to/from inverted flight |inverted (0=normal, 1=inverted)| Empty| Empty| Empty| Empty| Empty| Empty| */
375  MAV_CMD_DO_MOUNT_CONTROL_QUAT=220, /* Mission command to control a camera or antenna mount, using a quaternion as reference. |q1 - quaternion param #1, w (1 in null-rotation)| q2 - quaternion param #2, x (0 in null-rotation)| q3 - quaternion param #3, y (0 in null-rotation)| q4 - quaternion param #4, z (0 in null-rotation)| Empty| Empty| Empty| */
376  MAV_CMD_DO_GUIDED_MASTER=221, /* set id of master controller |System ID| Component ID| Empty| Empty| Empty| Empty| Empty| */
377  MAV_CMD_DO_GUIDED_LIMITS=222, /* set limits for external control |timeout - maximum time (in seconds) that external controller will be allowed to control vehicle. 0 means no timeout| absolute altitude min (in meters, AMSL) - if vehicle moves below this alt, the command will be aborted and the mission will continue. 0 means no lower altitude limit| absolute altitude max (in meters)- if vehicle moves above this alt, the command will be aborted and the mission will continue. 0 means no upper altitude limit| horizontal move limit (in meters, AMSL) - if vehicle moves more than this distance from it's location at the moment the command was executed, the command will be aborted and the mission will continue. 0 means no horizontal altitude limit| Empty| Empty| Empty| */
378  MAV_CMD_DO_LAST=240, /* NOP - This command is only used to mark the upper limit of the DO commands in the enumeration |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
379  MAV_CMD_PREFLIGHT_CALIBRATION=241, /* Trigger calibration. This command will be only accepted if in pre-flight mode. |Gyro calibration: 0: no, 1: yes| Magnetometer calibration: 0: no, 1: yes| Ground pressure: 0: no, 1: yes| Radio calibration: 0: no, 1: yes| Accelerometer calibration: 0: no, 1: yes| Compass/Motor interference calibration: 0: no, 1: yes| Empty| */
380  MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS=242, /* Set sensor offsets. This command will be only accepted if in pre-flight mode. |Sensor to adjust the offsets for: 0: gyros, 1: accelerometer, 2: magnetometer, 3: barometer, 4: optical flow, 5: second magnetometer| X axis offset (or generic dimension 1), in the sensor's raw units| Y axis offset (or generic dimension 2), in the sensor's raw units| Z axis offset (or generic dimension 3), in the sensor's raw units| Generic dimension 4, in the sensor's raw units| Generic dimension 5, in the sensor's raw units| Generic dimension 6, in the sensor's raw units| */
381  MAV_CMD_PREFLIGHT_STORAGE=245, /* Request storage of different parameter values and logs. This command will be only accepted if in pre-flight mode. |Parameter storage: 0: READ FROM FLASH/EEPROM, 1: WRITE CURRENT TO FLASH/EEPROM| Mission storage: 0: READ FROM FLASH/EEPROM, 1: WRITE CURRENT TO FLASH/EEPROM| Reserved| Reserved| Empty| Empty| Empty| */
382  MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN=246, /* Request the reboot or shutdown of system components. |0: Do nothing for autopilot, 1: Reboot autopilot, 2: Shutdown autopilot.| 0: Do nothing for onboard computer, 1: Reboot onboard computer, 2: Shutdown onboard computer.| Reserved| Reserved| Empty| Empty| Empty| */
383  MAV_CMD_OVERRIDE_GOTO=252, /* Hold / continue the current action |MAV_GOTO_DO_HOLD: hold MAV_GOTO_DO_CONTINUE: continue with next item in mission plan| MAV_GOTO_HOLD_AT_CURRENT_POSITION: Hold at current position MAV_GOTO_HOLD_AT_SPECIFIED_POSITION: hold at specified position| MAV_FRAME coordinate frame of hold point| Desired yaw angle in degrees| Latitude / X position| Longitude / Y position| Altitude / Z position| */
384  MAV_CMD_MISSION_START=300, /* start running a mission |first_item: the first mission item to run| last_item: the last mission item to run (after this item is run, the mission ends)| */
385  MAV_CMD_COMPONENT_ARM_DISARM=400, /* Arms / Disarms a component |1 to arm, 0 to disarm| */
386  MAV_CMD_START_RX_PAIR=500, /* Starts receiver pairing |0:Spektrum| 0:Spektrum DSM2, 1:Spektrum DSMX| */
387  MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES=520, /* Request autopilot capabilities |1: Request autopilot version| Reserved (all remaining params)| */
388  MAV_CMD_IMAGE_START_CAPTURE=2000, /* Start image capture sequence |Duration between two consecutive pictures (in seconds)| Number of images to capture total - 0 for unlimited capture| Resolution in megapixels (0.3 for 640x480, 1.3 for 1280x720, etc)| */
389  MAV_CMD_IMAGE_STOP_CAPTURE=2001, /* Stop image capture sequence |Reserved| Reserved| */
390  MAV_CMD_DO_TRIGGER_CONTROL=2003, /* Enable or disable on-board camera triggering system. |Trigger enable/disable (0 for disable, 1 for start)| Shutter integration time (in ms)| Reserved| */
391  MAV_CMD_VIDEO_START_CAPTURE=2500, /* Starts video capture |Camera ID (0 for all cameras), 1 for first, 2 for second, etc.| Frames per second| Resolution in megapixels (0.3 for 640x480, 1.3 for 1280x720, etc)| */
392  MAV_CMD_VIDEO_STOP_CAPTURE=2501, /* Stop the current video capture |Reserved| Reserved| */
393  MAV_CMD_PANORAMA_CREATE=2800, /* Create a panorama at the current position |Viewing angle horizontal of the panorama (in degrees, +- 0.5 the total angle)| Viewing angle vertical of panorama (in degrees)| Speed of the horizontal rotation (in degrees per second)| Speed of the vertical rotation (in degrees per second)| */
394  MAV_CMD_PAYLOAD_PREPARE_DEPLOY=30001, /* Deploy payload on a Lat / Lon / Alt position. This includes the navigation to reach the required release position and velocity. |Operation mode. 0: prepare single payload deploy (overwriting previous requests), but do not execute it. 1: execute payload deploy immediately (rejecting further deploy commands during execution, but allowing abort). 2: add payload deploy to existing deployment list.| Desired approach vector in degrees compass heading (0..360). A negative value indicates the system can define the approach vector at will.| Desired ground speed at release time. This can be overriden by the airframe in case it needs to meet minimum airspeed. A negative value indicates the system can define the ground speed at will.| Minimum altitude clearance to the release position in meters. A negative value indicates the system can define the clearance at will.| Latitude unscaled for MISSION_ITEM or in 1e7 degrees for MISSION_ITEM_INT| Longitude unscaled for MISSION_ITEM or in 1e7 degrees for MISSION_ITEM_INT| Altitude, in meters AMSL| */
395  MAV_CMD_PAYLOAD_CONTROL_DEPLOY=30002, /* Control the payload deployment. |Operation mode. 0: Abort deployment, continue normal mission. 1: switch to payload deploment mode. 100: delete first payload deployment request. 101: delete all payload deployment requests.| Reserved| Reserved| Reserved| Reserved| Reserved| Reserved| */
396  MAV_CMD_ENUM_END=30003, /* | */
397 } MAV_CMD;
398 #endif
399 
403 #ifndef HAVE_ENUM_MAV_DATA_STREAM
404 #define HAVE_ENUM_MAV_DATA_STREAM
405 typedef enum MAV_DATA_STREAM
406 {
407  MAV_DATA_STREAM_ALL=0, /* Enable all data streams | */
408  MAV_DATA_STREAM_RAW_SENSORS=1, /* Enable IMU_RAW, GPS_RAW, GPS_STATUS packets. | */
409  MAV_DATA_STREAM_EXTENDED_STATUS=2, /* Enable GPS_STATUS, CONTROL_STATUS, AUX_STATUS | */
410  MAV_DATA_STREAM_RC_CHANNELS=3, /* Enable RC_CHANNELS_SCALED, RC_CHANNELS_RAW, SERVO_OUTPUT_RAW | */
411  MAV_DATA_STREAM_RAW_CONTROLLER=4, /* Enable ATTITUDE_CONTROLLER_OUTPUT, POSITION_CONTROLLER_OUTPUT, NAV_CONTROLLER_OUTPUT. | */
412  MAV_DATA_STREAM_POSITION=6, /* Enable LOCAL_POSITION, GLOBAL_POSITION/GLOBAL_POSITION_INT messages. | */
413  MAV_DATA_STREAM_EXTRA1=10, /* Dependent on the autopilot | */
414  MAV_DATA_STREAM_EXTRA2=11, /* Dependent on the autopilot | */
415  MAV_DATA_STREAM_EXTRA3=12, /* Dependent on the autopilot | */
418 #endif
419 
423 #ifndef HAVE_ENUM_MAV_ROI
424 #define HAVE_ENUM_MAV_ROI
425 typedef enum MAV_ROI
426 {
427  MAV_ROI_NONE=0, /* No region of interest. | */
428  MAV_ROI_WPNEXT=1, /* Point toward next MISSION. | */
429  MAV_ROI_WPINDEX=2, /* Point toward given MISSION. | */
430  MAV_ROI_LOCATION=3, /* Point toward fixed location. | */
431  MAV_ROI_TARGET=4, /* Point toward of given id. | */
432  MAV_ROI_ENUM_END=5, /* | */
433 } MAV_ROI;
434 #endif
435 
437 #ifndef HAVE_ENUM_MAV_CMD_ACK
438 #define HAVE_ENUM_MAV_CMD_ACK
439 typedef enum MAV_CMD_ACK
440 {
441  MAV_CMD_ACK_OK=1, /* Command / mission item is ok. | */
442  MAV_CMD_ACK_ERR_FAIL=2, /* Generic error message if none of the other reasons fails or if no detailed error reporting is implemented. | */
443  MAV_CMD_ACK_ERR_ACCESS_DENIED=3, /* The system is refusing to accept this command from this source / communication partner. | */
444  MAV_CMD_ACK_ERR_NOT_SUPPORTED=4, /* Command or mission item is not supported, other commands would be accepted. | */
445  MAV_CMD_ACK_ERR_COORDINATE_FRAME_NOT_SUPPORTED=5, /* The coordinate frame of this command / mission item is not supported. | */
446  MAV_CMD_ACK_ERR_COORDINATES_OUT_OF_RANGE=6, /* The coordinate frame of this command is ok, but he coordinate values exceed the safety limits of this system. This is a generic error, please use the more specific error messages below if possible. | */
447  MAV_CMD_ACK_ERR_X_LAT_OUT_OF_RANGE=7, /* The X or latitude value is out of range. | */
448  MAV_CMD_ACK_ERR_Y_LON_OUT_OF_RANGE=8, /* The Y or longitude value is out of range. | */
449  MAV_CMD_ACK_ERR_Z_ALT_OUT_OF_RANGE=9, /* The Z or altitude value is out of range. | */
451 } MAV_CMD_ACK;
452 #endif
453 
455 #ifndef HAVE_ENUM_MAV_PARAM_TYPE
456 #define HAVE_ENUM_MAV_PARAM_TYPE
457 typedef enum MAV_PARAM_TYPE
458 {
459  MAV_PARAM_TYPE_UINT8=1, /* 8-bit unsigned integer | */
460  MAV_PARAM_TYPE_INT8=2, /* 8-bit signed integer | */
461  MAV_PARAM_TYPE_UINT16=3, /* 16-bit unsigned integer | */
462  MAV_PARAM_TYPE_INT16=4, /* 16-bit signed integer | */
463  MAV_PARAM_TYPE_UINT32=5, /* 32-bit unsigned integer | */
464  MAV_PARAM_TYPE_INT32=6, /* 32-bit signed integer | */
465  MAV_PARAM_TYPE_UINT64=7, /* 64-bit unsigned integer | */
466  MAV_PARAM_TYPE_INT64=8, /* 64-bit signed integer | */
467  MAV_PARAM_TYPE_REAL32=9, /* 32-bit floating-point | */
468  MAV_PARAM_TYPE_REAL64=10, /* 64-bit floating-point | */
471 #endif
472 
474 #ifndef HAVE_ENUM_MAV_RESULT
475 #define HAVE_ENUM_MAV_RESULT
476 typedef enum MAV_RESULT
477 {
478  MAV_RESULT_ACCEPTED=0, /* Command ACCEPTED and EXECUTED | */
479  MAV_RESULT_TEMPORARILY_REJECTED=1, /* Command TEMPORARY REJECTED/DENIED | */
480  MAV_RESULT_DENIED=2, /* Command PERMANENTLY DENIED | */
481  MAV_RESULT_UNSUPPORTED=3, /* Command UNKNOWN/UNSUPPORTED | */
482  MAV_RESULT_FAILED=4, /* Command executed, but failed | */
484 } MAV_RESULT;
485 #endif
486 
488 #ifndef HAVE_ENUM_MAV_MISSION_RESULT
489 #define HAVE_ENUM_MAV_MISSION_RESULT
490 typedef enum MAV_MISSION_RESULT
491 {
492  MAV_MISSION_ACCEPTED=0, /* mission accepted OK | */
493  MAV_MISSION_ERROR=1, /* generic error / not accepting mission commands at all right now | */
494  MAV_MISSION_UNSUPPORTED_FRAME=2, /* coordinate frame is not supported | */
495  MAV_MISSION_UNSUPPORTED=3, /* command is not supported | */
496  MAV_MISSION_NO_SPACE=4, /* mission item exceeds storage space | */
497  MAV_MISSION_INVALID=5, /* one of the parameters has an invalid value | */
498  MAV_MISSION_INVALID_PARAM1=6, /* param1 has an invalid value | */
499  MAV_MISSION_INVALID_PARAM2=7, /* param2 has an invalid value | */
500  MAV_MISSION_INVALID_PARAM3=8, /* param3 has an invalid value | */
501  MAV_MISSION_INVALID_PARAM4=9, /* param4 has an invalid value | */
502  MAV_MISSION_INVALID_PARAM5_X=10, /* x/param5 has an invalid value | */
503  MAV_MISSION_INVALID_PARAM6_Y=11, /* y/param6 has an invalid value | */
504  MAV_MISSION_INVALID_PARAM7=12, /* param7 has an invalid value | */
505  MAV_MISSION_INVALID_SEQUENCE=13, /* received waypoint out of sequence | */
506  MAV_MISSION_DENIED=14, /* not accepting any mission commands from this communication partner | */
509 #endif
510 
512 #ifndef HAVE_ENUM_MAV_SEVERITY
513 #define HAVE_ENUM_MAV_SEVERITY
514 typedef enum MAV_SEVERITY
515 {
516  MAV_SEVERITY_EMERGENCY=0, /* System is unusable. This is a "panic" condition. | */
517  MAV_SEVERITY_ALERT=1, /* Action should be taken immediately. Indicates error in non-critical systems. | */
518  MAV_SEVERITY_CRITICAL=2, /* Action must be taken immediately. Indicates failure in a primary system. | */
519  MAV_SEVERITY_ERROR=3, /* Indicates an error in secondary/redundant systems. | */
520  MAV_SEVERITY_WARNING=4, /* Indicates about a possible future error if this is not resolved within a given timeframe. Example would be a low battery warning. | */
521  MAV_SEVERITY_NOTICE=5, /* An unusual event has occured, though not an error condition. This should be investigated for the root cause. | */
522  MAV_SEVERITY_INFO=6, /* Normal operational messages. Useful for logging. No action is required for these messages. | */
523  MAV_SEVERITY_DEBUG=7, /* Useful non-operational messages that can assist in debugging. These should not occur during normal operation. | */
525 } MAV_SEVERITY;
526 #endif
527 
529 #ifndef HAVE_ENUM_MAV_POWER_STATUS
530 #define HAVE_ENUM_MAV_POWER_STATUS
531 typedef enum MAV_POWER_STATUS
532 {
533  MAV_POWER_STATUS_BRICK_VALID=1, /* main brick power supply valid | */
534  MAV_POWER_STATUS_SERVO_VALID=2, /* main servo power supply valid for FMU | */
535  MAV_POWER_STATUS_USB_CONNECTED=4, /* USB power is connected | */
536  MAV_POWER_STATUS_PERIPH_OVERCURRENT=8, /* peripheral supply is in over-current state | */
537  MAV_POWER_STATUS_PERIPH_HIPOWER_OVERCURRENT=16, /* hi-power peripheral supply is in over-current state | */
538  MAV_POWER_STATUS_CHANGED=32, /* Power status has changed since boot | */
541 #endif
542 
544 #ifndef HAVE_ENUM_SERIAL_CONTROL_DEV
545 #define HAVE_ENUM_SERIAL_CONTROL_DEV
546 typedef enum SERIAL_CONTROL_DEV
547 {
548  SERIAL_CONTROL_DEV_TELEM1=0, /* First telemetry port | */
549  SERIAL_CONTROL_DEV_TELEM2=1, /* Second telemetry port | */
550  SERIAL_CONTROL_DEV_GPS1=2, /* First GPS port | */
551  SERIAL_CONTROL_DEV_GPS2=3, /* Second GPS port | */
554 #endif
555 
557 #ifndef HAVE_ENUM_SERIAL_CONTROL_FLAG
558 #define HAVE_ENUM_SERIAL_CONTROL_FLAG
560 {
561  SERIAL_CONTROL_FLAG_REPLY=1, /* Set if this is a reply | */
562  SERIAL_CONTROL_FLAG_RESPOND=2, /* Set if the sender wants the receiver to send a response as another SERIAL_CONTROL message | */
563  SERIAL_CONTROL_FLAG_EXCLUSIVE=4, /* Set if access to the serial port should be removed from whatever driver is currently using it, giving exclusive access to the SERIAL_CONTROL protocol. The port can be handed back by sending a request without this flag set | */
564  SERIAL_CONTROL_FLAG_BLOCKING=8, /* Block on writes to the serial port | */
565  SERIAL_CONTROL_FLAG_MULTI=16, /* Send multiple replies until port is drained | */
568 #endif
569 
571 #ifndef HAVE_ENUM_MAV_DISTANCE_SENSOR
572 #define HAVE_ENUM_MAV_DISTANCE_SENSOR
574 {
575  MAV_DISTANCE_SENSOR_LASER=0, /* Laser altimeter, e.g. LightWare SF02/F or PulsedLight units | */
576  MAV_DISTANCE_SENSOR_ULTRASOUND=1, /* Ultrasound altimeter, e.g. MaxBotix units | */
579 #endif
580 
582 #ifndef HAVE_ENUM_MAV_PROTOCOL_CAPABILITY
583 #define HAVE_ENUM_MAV_PROTOCOL_CAPABILITY
585 {
586  MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT=1, /* Autopilot supports MISSION float message type. | */
587  MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT=2, /* Autopilot supports the new param float message type. | */
588  MAV_PROTOCOL_CAPABILITY_MISSION_INT=4, /* Autopilot supports MISSION_INT scaled integer message type. | */
589  MAV_PROTOCOL_CAPABILITY_COMMAND_INT=8, /* Autopilot supports COMMAND_INT scaled integer message type. | */
590  MAV_PROTOCOL_CAPABILITY_PARAM_UNION=16, /* Autopilot supports the new param union message type. | */
591  MAV_PROTOCOL_CAPABILITY_FTP=32, /* Autopilot supports the new param union message type. | */
592  MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET=64, /* Autopilot supports commanding attitude offboard. | */
593  MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED=128, /* Autopilot supports commanding position and velocity targets in local NED frame. | */
594  MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT=256, /* Autopilot supports commanding position and velocity targets in global scaled integers. | */
595  MAV_PROTOCOL_CAPABILITY_TERRAIN=512, /* Autopilot supports terrain protocol / data handling. | */
596  MAV_PROTOCOL_CAPABILITY_SET_ACTUATOR_TARGET=1024, /* Autopilot supports direct actuator control. | */
599 #endif
600 
602 #ifndef HAVE_ENUM_MAV_ESTIMATOR_TYPE
603 #define HAVE_ENUM_MAV_ESTIMATOR_TYPE
604 typedef enum MAV_ESTIMATOR_TYPE
605 {
606  MAV_ESTIMATOR_TYPE_NAIVE=1, /* This is a naive estimator without any real covariance feedback. | */
607  MAV_ESTIMATOR_TYPE_VISION=2, /* Computer vision based estimate. Might be up to scale. | */
608  MAV_ESTIMATOR_TYPE_VIO=3, /* Visual-inertial estimate. | */
609  MAV_ESTIMATOR_TYPE_GPS=4, /* Plain GPS estimate. | */
610  MAV_ESTIMATOR_TYPE_GPS_INS=5, /* Estimator integrating GPS and inertial sensing. | */
613 #endif
614 
616 #ifndef HAVE_ENUM_MAV_BATTERY_TYPE
617 #define HAVE_ENUM_MAV_BATTERY_TYPE
618 typedef enum MAV_BATTERY_TYPE
619 {
620  MAV_BATTERY_TYPE_UNKNOWN=0, /* Not specified. | */
621  MAV_BATTERY_TYPE_LIPO=1, /* Lithium polymere battery | */
622  MAV_BATTERY_TYPE_LIFE=2, /* Lithium ferrite battery | */
623  MAV_BATTERY_TYPE_LION=3, /* Lithium-ION battery | */
624  MAV_BATTERY_TYPE_NIMH=4, /* Nickel metal hydride battery | */
627 #endif
628 
630 #ifndef HAVE_ENUM_MAV_BATTERY_FUNCTION
631 #define HAVE_ENUM_MAV_BATTERY_FUNCTION
633 {
634  MAV_BATTERY_FUNCTION_UNKNOWN=0, /* Lithium polymere battery | */
635  MAV_BATTERY_FUNCTION_ALL=1, /* Battery supports all flight systems | */
636  MAV_BATTERY_FUNCTION_PROPULSION=2, /* Battery for the propulsion system | */
637  MAV_BATTERY_FUNCTION_AVIONICS=3, /* Avionics battery | */
638  MAV_BATTERY_TYPE_PAYLOAD=4, /* Payload battery | */
641 #endif
642 
643 
644 
645 // MAVLINK VERSION
646 
647 #ifndef MAVLINK_VERSION
648 #define MAVLINK_VERSION 3
649 #endif
650 
651 #if (MAVLINK_VERSION == 0)
652 #undef MAVLINK_VERSION
653 #define MAVLINK_VERSION 3
654 #endif
655 
656 // MESSAGE DEFINITIONS
657 #include "./mavlink_msg_heartbeat.h"
660 #include "./mavlink_msg_ping.h"
663 #include "./mavlink_msg_auth_key.h"
664 #include "./mavlink_msg_set_mode.h"
668 #include "./mavlink_msg_param_set.h"
672 #include "./mavlink_msg_raw_imu.h"
675 #include "./mavlink_msg_attitude.h"
708 #include "./mavlink_msg_vfr_hud.h"
720 #include "./mavlink_msg_hil_state.h"
731 #include "./mavlink_msg_sim_state.h"
734 #include "./mavlink_msg_timesync.h"
736 #include "./mavlink_msg_hil_gps.h"
741 #include "./mavlink_msg_log_entry.h"
743 #include "./mavlink_msg_log_data.h"
744 #include "./mavlink_msg_log_erase.h"
747 #include "./mavlink_msg_gps2_raw.h"
750 #include "./mavlink_msg_gps_rtk.h"
751 #include "./mavlink_msg_gps2_rtk.h"
772 #include "./mavlink_msg_debug.h"
773 
774 #ifdef __cplusplus
775 }
776 #endif // __cplusplus
777 #endif // MAVLINK_COMMON_H
Definition: common.h:262
Definition: common.h:81
Definition: common.h:45
Definition: common.h:444
Definition: common.h:507
Definition: common.h:432
Definition: common.h:89
Definition: common.h:155
Definition: common.h:465
Definition: common.h:86
Definition: common.h:365
Definition: common.h:388
Definition: common.h:95
Definition: common.h:79
MAV_MOUNT_MODE
Definition: common.h:318
Definition: common.h:352
Definition: common.h:76
Definition: common.h:127
Definition: common.h:493
Definition: common.h:267
Definition: common.h:261
Definition: common.h:298
Definition: common.h:408
MAV_POWER_STATUS
Definition: common.h:531
Definition: common.h:113
Definition: common.h:492
Definition: common.h:637
Definition: common.h:370
Definition: common.h:49
Definition: common.h:379
Definition: common.h:260
Definition: common.h:123
Definition: common.h:378
Definition: common.h:243
Definition: common.h:209
Definition: common.h:590
Definition: common.h:347
Definition: common.h:322
MAV_PARAM_TYPE
Definition: common.h:457
Definition: common.h:227
Definition: common.h:263
Definition: common.h:549
Definition: common.h:373
Definition: common.h:520
Definition: common.h:124
Definition: common.h:501
Definition: common.h:125
Definition: common.h:284
Definition: common.h:157
Definition: common.h:57
Definition: common.h:375
Definition: common.h:93
Definition: common.h:363
Definition: common.h:196
Definition: common.h:231
Definition: common.h:355
Definition: common.h:622
Definition: common.h:87
Definition: common.h:190
MAV_AUTOPILOT
Definition: common.h:40
Definition: common.h:469
Definition: common.h:214
Definition: common.h:194
Definition: common.h:606
Definition: common.h:415
Definition: common.h:54
Definition: common.h:153
Definition: common.h:429
MAV_BATTERY_TYPE
Definition: common.h:618
Definition: common.h:285
Definition: common.h:392
Definition: common.h:324
Definition: common.h:442
MAV_SYS_STATUS_SENSOR
Definition: common.h:224
Definition: common.h:270
Definition: common.h:564
MAV_DATA_STREAM
Definition: common.h:405
Definition: common.h:216
Definition: common.h:414
Definition: common.h:163
Definition: common.h:159
Definition: common.h:141
Definition: common.h:396
Definition: common.h:143
Definition: common.h:84
Definition: common.h:297
Definition: common.h:495
Definition: common.h:416
Definition: common.h:207
Definition: common.h:307
Definition: common.h:110
MAV_COMPONENT
Definition: common.h:188
Definition: common.h:264
Definition: common.h:180
SERIAL_CONTROL_FLAG
Definition: common.h:559
Definition: common.h:247
Definition: common.h:294
Definition: common.h:325
Definition: common.h:377
Definition: common.h:200
Definition: common.h:441
Definition: common.h:259
MAV_CMD
Definition: ardupilotmega.h:40
Definition: common.h:70
Definition: common.h:346
Definition: common.h:430
Definition: common.h:283
Definition: common.h:71
Definition: common.h:179
Definition: common.h:309
Definition: common.h:91
Definition: common.h:523
Definition: common.h:340
Definition: common.h:482
Definition: common.h:69
Definition: common.h:376
Definition: common.h:634
Definition: common.h:464
Definition: common.h:351
Definition: common.h:374
Definition: common.h:203
Definition: common.h:195
Definition: common.h:296
Definition: common.h:409
Definition: common.h:479
Definition: common.h:142
Definition: common.h:51
Definition: common.h:413
Definition: common.h:565
Definition: common.h:368
Definition: common.h:478
Definition: common.h:204
Definition: common.h:466
Definition: common.h:176
Definition: common.h:359
Definition: common.h:90
Definition: common.h:393
Definition: common.h:635
Definition: common.h:389
Definition: common.h:361
Definition: common.h:338
MAV_MODE
Definition: common.h:151
Definition: common.h:356
Definition: common.h:428
Definition: common.h:105
SERIAL_CONTROL_DEV
Definition: common.h:546
Definition: common.h:343
Definition: common.h:77
Definition: common.h:360
Definition: common.h:383
Definition: common.h:226
Definition: common.h:522
Definition: common.h:608
Definition: common.h:94
Definition: common.h:173
Definition: common.h:348
Definition: common.h:205
MAV_TYPE
Definition: common.h:67
Definition: common.h:561
MAV_BATTERY_FUNCTION
Definition: common.h:632
Definition: common.h:85
Definition: common.h:382
Definition: common.h:217
Definition: common.h:58
Definition: common.h:521
Definition: common.h:238
Definition: common.h:345
Definition: common.h:228
Definition: common.h:156
Definition: common.h:497
Definition: common.h:496
Definition: common.h:371
Definition: common.h:211
Definition: common.h:158
Definition: common.h:636
Definition: common.h:249
Definition: common.h:449
Definition: common.h:517
Definition: common.h:427
Definition: common.h:372
Definition: common.h:380
Definition: common.h:390
Definition: common.h:587
Definition: common.h:577
Definition: common.h:610
Definition: common.h:350
Definition: common.h:215
Definition: common.h:595
Definition: common.h:369
Definition: common.h:269
Definition: common.h:72
Definition: common.h:536
Definition: common.h:268
Definition: common.h:353
Definition: common.h:391
Definition: common.h:431
Definition: common.h:381
Definition: common.h:516
MAV_DISTANCE_SENSOR
Definition: common.h:573
Definition: common.h:518
Definition: common.h:336
Definition: common.h:210
Definition: common.h:563
Definition: common.h:199
Definition: common.h:460
Definition: common.h:539
Definition: common.h:108
Definition: common.h:534
Definition: common.h:538
Definition: common.h:366
Definition: common.h:638
Definition: common.h:177
Definition: common.h:106
Definition: common.h:384
Definition: common.h:193
Definition: common.h:342
Definition: common.h:311
MAV_ROI
Definition: common.h:425
MAV_DATA_STREAM
Definition: autoquad.h:138
Definition: common.h:208
Definition: common.h:364
Definition: common.h:308
Definition: common.h:611
Definition: common.h:206
Definition: common.h:181
Definition: common.h:411
Definition: common.h:447
MAV_ESTIMATOR_TYPE
Definition: common.h:604
Definition: common.h:82
Definition: common.h:162
Definition: common.h:245
Definition: common.h:498
Definition: common.h:111
MAV_MISSION_RESULT
Definition: common.h:490
Definition: common.h:357
Definition: common.h:59
Definition: common.h:265
Definition: common.h:461
MAV_RESULT
Definition: common.h:476
MAV_MODE_FLAG_DECODE_POSITION
Definition: common.h:120
Definition: common.h:625
Definition: common.h:334
Definition: common.h:242
Definition: common.h:588
Definition: common.h:503
Definition: common.h:412
MAV_STATE
Definition: common.h:171
Definition: common.h:323
Definition: common.h:548
Definition: common.h:50
Definition: common.h:339
Definition: common.h:241
Definition: common.h:463
Definition: common.h:83
Definition: common.h:266
Definition: common.h:344
Definition: common.h:310
Definition: common.h:279
Definition: common.h:74
Definition: common.h:505
Definition: common.h:337
Definition: common.h:175
Definition: common.h:607
Definition: common.h:562
Definition: common.h:212
Definition: common.h:386
Definition: common.h:589
Definition: common.h:575
Definition: common.h:154
Definition: common.h:46
Definition: common.h:56
MAV_SEVERITY
Definition: common.h:514
Definition: common.h:320
Definition: common.h:462
Definition: common.h:502
Definition: common.h:246
Definition: common.h:467
Definition: common.h:80
Definition: common.h:75
MAV_MODE_FLAG
Definition: common.h:103
Definition: common.h:410
Definition: common.h:395
Definition: common.h:535
Definition: common.h:551
Definition: common.h:524
Definition: common.h:533
Definition: common.h:213
Definition: common.h:443
Definition: common.h:499
Definition: common.h:42
Definition: common.h:112
Definition: common.h:174
Definition: common.h:621
Definition: common.h:459
Definition: common.h:494
FENCE_ACTION
Definition: common.h:292
Definition: common.h:385
Definition: common.h:178
Definition: common.h:55
Definition: common.h:362
Definition: common.h:244
MAVLINK_DATA_STREAM_TYPE
Definition: common.h:277
Definition: common.h:468
Definition: common.h:201
Definition: common.h:78
Definition: common.h:407
Definition: common.h:197
Definition: common.h:335
Definition: common.h:109
Definition: common.h:591
Definition: common.h:506
Definition: common.h:198
Definition: common.h:234
Definition: common.h:566
Definition: common.h:43
Definition: common.h:53
Definition: common.h:191
MAV_FRAME
Definition: common.h:256
Definition: common.h:140
Definition: common.h:60
Definition: common.h:232
Definition: common.h:258
Definition: common.h:139
Definition: common.h:248
MAV_GOTO
Definition: common.h:137
Definition: common.h:107
Definition: common.h:202
Definition: common.h:394
MAV_CMD
Definition: common.h:332
Definition: common.h:44
Definition: common.h:500
Definition: common.h:96
Definition: common.h:282
Definition: common.h:552
Definition: common.h:160
Definition: common.h:448
Definition: common.h:52
Definition: common.h:128
Definition: common.h:280
Definition: common.h:161
Definition: common.h:519
Definition: common.h:639
Definition: common.h:129
Definition: common.h:481
Definition: common.h:164
Definition: common.h:480
Definition: common.h:624
Definition: common.h:281
Definition: common.h:349
Definition: common.h:295
Definition: common.h:341
FENCE_BREACH
Definition: common.h:305
Definition: common.h:504
Definition: common.h:354
Definition: common.h:92
Definition: common.h:623
Definition: common.h:321
Definition: common.h:576
Definition: common.h:550
Definition: common.h:483
Definition: common.h:620
Definition: common.h:73
Definition: common.h:192
MAV_CMD_ACK
Definition: common.h:439
Definition: common.h:367
Definition: common.h:597
MAV_PROTOCOL_CAPABILITY
Definition: common.h:584
Definition: common.h:88
Definition: common.h:609
Definition: common.h:358
Definition: common.h:450