Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1702 | - | 1 | /** @file |
2 | * @brief MAVLink comm protocol generated from common.xml |
||
3 | * @see http://qgroundcontrol.org/mavlink/ |
||
4 | */ |
||
5 | #ifndef COMMON_H |
||
6 | #define COMMON_H |
||
7 | |||
8 | #ifdef __cplusplus |
||
9 | extern "C" { |
||
10 | #endif |
||
11 | |||
12 | // MESSAGE LENGTHS AND CRCS |
||
13 | |||
14 | #ifndef MAVLINK_MESSAGE_LENGTHS |
||
15 | #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, 19, 17, 15, 15, 27, 25, 18, 18, 20, 20, 9, 54, 26, 0, 36, 0, 6, 4, 0, 21, 18, 0, 0, 0, 20, 0, 33, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 56, 42, 33, 0, 0, 0, 0, 0, 0, 0, 26, 32, 32, 20, 32, 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, 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, 36, 30, 18, 18, 51, 9, 0} |
||
16 | #endif |
||
17 | |||
18 | #ifndef MAVLINK_MESSAGE_CRCS |
||
19 | #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, 214, 223, 141, 33, 15, 3, 100, 24, 239, 238, 30, 200, 183, 0, 130, 0, 148, 21, 0, 52, 124, 0, 0, 0, 20, 0, 152, 143, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 231, 183, 63, 54, 0, 0, 0, 0, 0, 0, 0, 175, 102, 158, 208, 56, 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, 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, 204, 49, 170, 44, 83, 46, 0} |
||
20 | #endif |
||
21 | |||
22 | #ifndef MAVLINK_MESSAGE_INFO |
||
23 | #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_SET_LOCAL_POSITION_SETPOINT, MAVLINK_MESSAGE_INFO_LOCAL_POSITION_SETPOINT, MAVLINK_MESSAGE_INFO_GLOBAL_POSITION_SETPOINT_INT, MAVLINK_MESSAGE_INFO_SET_GLOBAL_POSITION_SETPOINT_INT, MAVLINK_MESSAGE_INFO_SAFETY_SET_ALLOWED_AREA, MAVLINK_MESSAGE_INFO_SAFETY_ALLOWED_AREA, MAVLINK_MESSAGE_INFO_SET_ROLL_PITCH_YAW_THRUST, MAVLINK_MESSAGE_INFO_SET_ROLL_PITCH_YAW_SPEED_THRUST, MAVLINK_MESSAGE_INFO_ROLL_PITCH_YAW_THRUST_SETPOINT, MAVLINK_MESSAGE_INFO_ROLL_PITCH_YAW_SPEED_THRUST_SETPOINT, MAVLINK_MESSAGE_INFO_SET_QUAD_MOTORS_SETPOINT, MAVLINK_MESSAGE_INFO_SET_QUAD_SWARM_ROLL_PITCH_YAW_THRUST, MAVLINK_MESSAGE_INFO_NAV_CONTROLLER_OUTPUT, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_STATE_CORRECTION, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, 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}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_VFR_HUD, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, 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}}}, {"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_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, {"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}}}, {"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_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}}}} |
||
24 | #endif |
||
25 | |||
26 | #include "../protocol.h" |
||
27 | |||
28 | #define MAVLINK_ENABLED_COMMON |
||
29 | |||
30 | // ENUM DEFINITIONS |
||
31 | |||
32 | |||
33 | /** @brief Micro air vehicle / autopilot classes. This identifies the individual model. */ |
||
34 | #ifndef HAVE_ENUM_MAV_AUTOPILOT |
||
35 | #define HAVE_ENUM_MAV_AUTOPILOT |
||
36 | enum MAV_AUTOPILOT |
||
37 | { |
||
38 | MAV_AUTOPILOT_GENERIC=0, /* Generic autopilot, full support for everything | */ |
||
39 | MAV_AUTOPILOT_PIXHAWK=1, /* PIXHAWK autopilot, http://pixhawk.ethz.ch | */ |
||
40 | MAV_AUTOPILOT_SLUGS=2, /* SLUGS autopilot, http://slugsuav.soe.ucsc.edu | */ |
||
41 | MAV_AUTOPILOT_ARDUPILOTMEGA=3, /* ArduPilotMega / ArduCopter, http://diydrones.com | */ |
||
42 | MAV_AUTOPILOT_OPENPILOT=4, /* OpenPilot, http://openpilot.org | */ |
||
43 | MAV_AUTOPILOT_GENERIC_WAYPOINTS_ONLY=5, /* Generic autopilot only supporting simple waypoints | */ |
||
44 | MAV_AUTOPILOT_GENERIC_WAYPOINTS_AND_SIMPLE_NAVIGATION_ONLY=6, /* Generic autopilot supporting waypoints and other simple navigation commands | */ |
||
45 | MAV_AUTOPILOT_GENERIC_MISSION_FULL=7, /* Generic autopilot supporting the full mission command set | */ |
||
46 | MAV_AUTOPILOT_INVALID=8, /* No valid autopilot, e.g. a GCS or other MAVLink component | */ |
||
47 | MAV_AUTOPILOT_PPZ=9, /* PPZ UAV - http://nongnu.org/paparazzi | */ |
||
48 | MAV_AUTOPILOT_UDB=10, /* UAV Dev Board | */ |
||
49 | MAV_AUTOPILOT_FP=11, /* FlexiPilot | */ |
||
50 | MAV_AUTOPILOT_ENUM_END=12, /* | */ |
||
51 | }; |
||
52 | #endif |
||
53 | |||
54 | /** @brief */ |
||
55 | #ifndef HAVE_ENUM_MAV_TYPE |
||
56 | #define HAVE_ENUM_MAV_TYPE |
||
57 | enum MAV_TYPE |
||
58 | { |
||
59 | MAV_TYPE_GENERIC=0, /* Generic micro air vehicle. | */ |
||
60 | MAV_TYPE_FIXED_WING=1, /* Fixed wing aircraft. | */ |
||
61 | MAV_TYPE_QUADROTOR=2, /* Quadrotor | */ |
||
62 | MAV_TYPE_COAXIAL=3, /* Coaxial helicopter | */ |
||
63 | MAV_TYPE_HELICOPTER=4, /* Normal helicopter with tail rotor. | */ |
||
64 | MAV_TYPE_ANTENNA_TRACKER=5, /* Ground installation | */ |
||
65 | MAV_TYPE_GCS=6, /* Operator control unit / ground control station | */ |
||
66 | MAV_TYPE_AIRSHIP=7, /* Airship, controlled | */ |
||
67 | MAV_TYPE_FREE_BALLOON=8, /* Free balloon, uncontrolled | */ |
||
68 | MAV_TYPE_ROCKET=9, /* Rocket | */ |
||
69 | MAV_TYPE_GROUND_ROVER=10, /* Ground rover | */ |
||
70 | MAV_TYPE_SURFACE_BOAT=11, /* Surface vessel, boat, ship | */ |
||
71 | MAV_TYPE_SUBMARINE=12, /* Submarine | */ |
||
72 | MAV_TYPE_HEXAROTOR=13, /* Hexarotor | */ |
||
73 | MAV_TYPE_OCTOROTOR=14, /* Octorotor | */ |
||
74 | MAV_TYPE_TRICOPTER=15, /* Octorotor | */ |
||
75 | MAV_TYPE_FLAPPING_WING=16, /* Flapping wing | */ |
||
76 | MAV_TYPE_ENUM_END=17, /* | */ |
||
77 | }; |
||
78 | #endif |
||
79 | |||
80 | /** @brief These flags encode the MAV mode. */ |
||
81 | #ifndef HAVE_ENUM_MAV_MODE_FLAG |
||
82 | #define HAVE_ENUM_MAV_MODE_FLAG |
||
83 | enum MAV_MODE_FLAG |
||
84 | { |
||
85 | MAV_MODE_FLAG_CUSTOM_MODE_ENABLED=1, /* 0b00000001 Reserved for future use. | */ |
||
86 | 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. | */ |
||
87 | 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. | */ |
||
88 | MAV_MODE_FLAG_GUIDED_ENABLED=8, /* 0b00001000 guided mode enabled, system flies MISSIONs / mission items. | */ |
||
89 | MAV_MODE_FLAG_STABILIZE_ENABLED=16, /* 0b00010000 system stabilizes electronically its attitude (and optionally position). It needs however further control inputs to move around. | */ |
||
90 | MAV_MODE_FLAG_HIL_ENABLED=32, /* 0b00100000 hardware in the loop simulation. All motors / actuators are blocked, but internal software is full operational. | */ |
||
91 | MAV_MODE_FLAG_MANUAL_INPUT_ENABLED=64, /* 0b01000000 remote control input is enabled. | */ |
||
92 | MAV_MODE_FLAG_SAFETY_ARMED=128, /* 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. | */ |
||
93 | MAV_MODE_FLAG_ENUM_END=129, /* | */ |
||
94 | }; |
||
95 | #endif |
||
96 | |||
97 | /** @brief These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. */ |
||
98 | #ifndef HAVE_ENUM_MAV_MODE_FLAG_DECODE_POSITION |
||
99 | #define HAVE_ENUM_MAV_MODE_FLAG_DECODE_POSITION |
||
100 | enum MAV_MODE_FLAG_DECODE_POSITION |
||
101 | { |
||
102 | MAV_MODE_FLAG_DECODE_POSITION_CUSTOM_MODE=1, /* Eighth bit: 00000001 | */ |
||
103 | MAV_MODE_FLAG_DECODE_POSITION_TEST=2, /* Seventh bit: 00000010 | */ |
||
104 | MAV_MODE_FLAG_DECODE_POSITION_AUTO=4, /* Sixt bit: 00000100 | */ |
||
105 | MAV_MODE_FLAG_DECODE_POSITION_GUIDED=8, /* Fifth bit: 00001000 | */ |
||
106 | MAV_MODE_FLAG_DECODE_POSITION_STABILIZE=16, /* Fourth bit: 00010000 | */ |
||
107 | MAV_MODE_FLAG_DECODE_POSITION_HIL=32, /* Third bit: 00100000 | */ |
||
108 | MAV_MODE_FLAG_DECODE_POSITION_MANUAL=64, /* Second bit: 01000000 | */ |
||
109 | MAV_MODE_FLAG_DECODE_POSITION_SAFETY=128, /* First bit: 10000000 | */ |
||
110 | MAV_MODE_FLAG_DECODE_POSITION_ENUM_END=129, /* | */ |
||
111 | }; |
||
112 | #endif |
||
113 | |||
114 | /** @brief Override command, pauses current mission execution and moves immediately to a position */ |
||
115 | #ifndef HAVE_ENUM_MAV_GOTO |
||
116 | #define HAVE_ENUM_MAV_GOTO |
||
117 | enum MAV_GOTO |
||
118 | { |
||
119 | MAV_GOTO_DO_HOLD=0, /* Hold at the current position. | */ |
||
120 | MAV_GOTO_DO_CONTINUE=1, /* Continue with the next item in mission execution. | */ |
||
121 | MAV_GOTO_HOLD_AT_CURRENT_POSITION=2, /* Hold at the current position of the system | */ |
||
122 | MAV_GOTO_HOLD_AT_SPECIFIED_POSITION=3, /* Hold at the position specified in the parameters of the DO_HOLD action | */ |
||
123 | MAV_GOTO_ENUM_END=4, /* | */ |
||
124 | }; |
||
125 | #endif |
||
126 | |||
127 | /** @brief These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it |
||
128 | simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. */ |
||
129 | #ifndef HAVE_ENUM_MAV_MODE |
||
130 | #define HAVE_ENUM_MAV_MODE |
||
131 | enum MAV_MODE |
||
132 | { |
||
133 | MAV_MODE_PREFLIGHT=0, /* System is not ready to fly, booting, calibrating, etc. No flag is set. | */ |
||
134 | MAV_MODE_MANUAL_DISARMED=64, /* System is allowed to be active, under manual (RC) control, no stabilization | */ |
||
135 | MAV_MODE_TEST_DISARMED=66, /* UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only. | */ |
||
136 | MAV_MODE_STABILIZE_DISARMED=80, /* System is allowed to be active, under assisted RC control. | */ |
||
137 | MAV_MODE_GUIDED_DISARMED=88, /* System is allowed to be active, under autonomous control, manual setpoint | */ |
||
138 | 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) | */ |
||
139 | MAV_MODE_MANUAL_ARMED=192, /* System is allowed to be active, under manual (RC) control, no stabilization | */ |
||
140 | MAV_MODE_TEST_ARMED=194, /* UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only. | */ |
||
141 | MAV_MODE_STABILIZE_ARMED=208, /* System is allowed to be active, under assisted RC control. | */ |
||
142 | MAV_MODE_GUIDED_ARMED=216, /* System is allowed to be active, under autonomous control, manual setpoint | */ |
||
143 | 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) | */ |
||
144 | MAV_MODE_ENUM_END=221, /* | */ |
||
145 | }; |
||
146 | #endif |
||
147 | |||
148 | /** @brief */ |
||
149 | #ifndef HAVE_ENUM_MAV_STATE |
||
150 | #define HAVE_ENUM_MAV_STATE |
||
151 | enum MAV_STATE |
||
152 | { |
||
153 | MAV_STATE_UNINIT=0, /* Uninitialized system, state is unknown. | */ |
||
154 | MAV_STATE_BOOT=1, /* System is booting up. | */ |
||
155 | MAV_STATE_CALIBRATING=2, /* System is calibrating and not flight-ready. | */ |
||
156 | MAV_STATE_STANDBY=3, /* System is grounded and on standby. It can be launched any time. | */ |
||
157 | MAV_STATE_ACTIVE=4, /* System is active and might be already airborne. Motors are engaged. | */ |
||
158 | MAV_STATE_CRITICAL=5, /* System is in a non-normal flight mode. It can however still navigate. | */ |
||
159 | 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. | */ |
||
160 | MAV_STATE_POWEROFF=7, /* System just initialized its power-down sequence, will shut down now. | */ |
||
161 | MAV_STATE_ENUM_END=8, /* | */ |
||
162 | }; |
||
163 | #endif |
||
164 | |||
165 | /** @brief */ |
||
166 | #ifndef HAVE_ENUM_MAV_COMPONENT |
||
167 | #define HAVE_ENUM_MAV_COMPONENT |
||
168 | enum MAV_COMPONENT |
||
169 | { |
||
170 | MAV_COMP_ID_ALL=0, /* | */ |
||
171 | MAV_COMP_ID_CAMERA=100, /* | */ |
||
172 | MAV_COMP_ID_SERVO1=140, /* | */ |
||
173 | MAV_COMP_ID_SERVO2=141, /* | */ |
||
174 | MAV_COMP_ID_SERVO3=142, /* | */ |
||
175 | MAV_COMP_ID_SERVO4=143, /* | */ |
||
176 | MAV_COMP_ID_SERVO5=144, /* | */ |
||
177 | MAV_COMP_ID_SERVO6=145, /* | */ |
||
178 | MAV_COMP_ID_SERVO7=146, /* | */ |
||
179 | MAV_COMP_ID_SERVO8=147, /* | */ |
||
180 | MAV_COMP_ID_SERVO9=148, /* | */ |
||
181 | MAV_COMP_ID_SERVO10=149, /* | */ |
||
182 | MAV_COMP_ID_SERVO11=150, /* | */ |
||
183 | MAV_COMP_ID_SERVO12=151, /* | */ |
||
184 | MAV_COMP_ID_SERVO13=152, /* | */ |
||
185 | MAV_COMP_ID_SERVO14=153, /* | */ |
||
186 | MAV_COMP_ID_MAPPER=180, /* | */ |
||
187 | MAV_COMP_ID_MISSIONPLANNER=190, /* | */ |
||
188 | MAV_COMP_ID_PATHPLANNER=195, /* | */ |
||
189 | MAV_COMP_ID_IMU=200, /* | */ |
||
190 | MAV_COMP_ID_IMU_2=201, /* | */ |
||
191 | MAV_COMP_ID_IMU_3=202, /* | */ |
||
192 | MAV_COMP_ID_GPS=220, /* | */ |
||
193 | MAV_COMP_ID_UDP_BRIDGE=240, /* | */ |
||
194 | MAV_COMP_ID_UART_BRIDGE=241, /* | */ |
||
195 | MAV_COMP_ID_SYSTEM_CONTROL=250, /* | */ |
||
196 | MAV_COMPONENT_ENUM_END=251, /* | */ |
||
197 | }; |
||
198 | #endif |
||
199 | |||
200 | /** @brief */ |
||
201 | #ifndef HAVE_ENUM_MAV_FRAME |
||
202 | #define HAVE_ENUM_MAV_FRAME |
||
203 | enum MAV_FRAME |
||
204 | { |
||
205 | 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) | */ |
||
206 | MAV_FRAME_LOCAL_NED=1, /* Local coordinate frame, Z-up (x: north, y: east, z: down). | */ |
||
207 | MAV_FRAME_MISSION=2, /* NOT a coordinate frame, indicates a mission command. | */ |
||
208 | 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. | */ |
||
209 | MAV_FRAME_LOCAL_ENU=4, /* Local coordinate frame, Z-down (x: east, y: north, z: up) | */ |
||
210 | MAV_FRAME_ENUM_END=5, /* | */ |
||
211 | }; |
||
212 | #endif |
||
213 | |||
214 | /** @brief */ |
||
215 | #ifndef HAVE_ENUM_MAVLINK_DATA_STREAM_TYPE |
||
216 | #define HAVE_ENUM_MAVLINK_DATA_STREAM_TYPE |
||
217 | enum MAVLINK_DATA_STREAM_TYPE |
||
218 | { |
||
219 | MAVLINK_DATA_STREAM_IMG_JPEG=1, /* | */ |
||
220 | MAVLINK_DATA_STREAM_IMG_BMP=2, /* | */ |
||
221 | MAVLINK_DATA_STREAM_IMG_RAW8U=3, /* | */ |
||
222 | MAVLINK_DATA_STREAM_IMG_RAW32U=4, /* | */ |
||
223 | MAVLINK_DATA_STREAM_IMG_PGM=5, /* | */ |
||
224 | MAVLINK_DATA_STREAM_IMG_PNG=6, /* | */ |
||
225 | MAVLINK_DATA_STREAM_TYPE_ENUM_END=7, /* | */ |
||
226 | }; |
||
227 | #endif |
||
228 | |||
229 | /** @brief Data stream IDs. A data stream is not a fixed set of messages, but rather a |
||
230 | recommendation to the autopilot software. Individual autopilots may or may not obey |
||
231 | the recommended messages. */ |
||
232 | #ifndef HAVE_ENUM_MAV_DATA_STREAM |
||
233 | #define HAVE_ENUM_MAV_DATA_STREAM |
||
234 | enum MAV_DATA_STREAM |
||
235 | { |
||
236 | MAV_DATA_STREAM_ALL=0, /* Enable all data streams | */ |
||
237 | MAV_DATA_STREAM_RAW_SENSORS=1, /* Enable IMU_RAW, GPS_RAW, GPS_STATUS packets. | */ |
||
238 | MAV_DATA_STREAM_EXTENDED_STATUS=2, /* Enable GPS_STATUS, CONTROL_STATUS, AUX_STATUS | */ |
||
239 | MAV_DATA_STREAM_RC_CHANNELS=3, /* Enable RC_CHANNELS_SCALED, RC_CHANNELS_RAW, SERVO_OUTPUT_RAW | */ |
||
240 | MAV_DATA_STREAM_RAW_CONTROLLER=4, /* Enable ATTITUDE_CONTROLLER_OUTPUT, POSITION_CONTROLLER_OUTPUT, NAV_CONTROLLER_OUTPUT. | */ |
||
241 | MAV_DATA_STREAM_POSITION=6, /* Enable LOCAL_POSITION, GLOBAL_POSITION/GLOBAL_POSITION_INT messages. | */ |
||
242 | MAV_DATA_STREAM_EXTRA1=10, /* Dependent on the autopilot | */ |
||
243 | MAV_DATA_STREAM_EXTRA2=11, /* Dependent on the autopilot | */ |
||
244 | MAV_DATA_STREAM_EXTRA3=12, /* Dependent on the autopilot | */ |
||
245 | MAV_DATA_STREAM_ENUM_END=13, /* | */ |
||
246 | }; |
||
247 | #endif |
||
248 | |||
249 | /** @brief The ROI (region of interest) for the vehicle. This can be |
||
250 | be used by the vehicle for camera/vehicle attitude alignment (see |
||
251 | MAV_CMD_NAV_ROI). */ |
||
252 | #ifndef HAVE_ENUM_MAV_ROI |
||
253 | #define HAVE_ENUM_MAV_ROI |
||
254 | enum MAV_ROI |
||
255 | { |
||
256 | MAV_ROI_NONE=0, /* No region of interest. | */ |
||
257 | MAV_ROI_WPNEXT=1, /* Point toward next MISSION. | */ |
||
258 | MAV_ROI_WPINDEX=2, /* Point toward given MISSION. | */ |
||
259 | MAV_ROI_LOCATION=3, /* Point toward fixed location. | */ |
||
260 | MAV_ROI_TARGET=4, /* Point toward of given id. | */ |
||
261 | MAV_ROI_ENUM_END=5, /* | */ |
||
262 | }; |
||
263 | #endif |
||
264 | |||
265 | /** @brief ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. */ |
||
266 | #ifndef HAVE_ENUM_MAV_CMD_ACK |
||
267 | #define HAVE_ENUM_MAV_CMD_ACK |
||
268 | enum MAV_CMD_ACK |
||
269 | { |
||
270 | MAV_CMD_ACK_OK=1, /* Command / mission item is ok. | */ |
||
271 | MAV_CMD_ACK_ERR_FAIL=2, /* Generic error message if none of the other reasons fails or if no detailed error reporting is implemented. | */ |
||
272 | MAV_CMD_ACK_ERR_ACCESS_DENIED=3, /* The system is refusing to accept this command from this source / communication partner. | */ |
||
273 | MAV_CMD_ACK_ERR_NOT_SUPPORTED=4, /* Command or mission item is not supported, other commands would be accepted. | */ |
||
274 | MAV_CMD_ACK_ERR_COORDINATE_FRAME_NOT_SUPPORTED=5, /* The coordinate frame of this command / mission item is not supported. | */ |
||
275 | 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. | */ |
||
276 | MAV_CMD_ACK_ERR_X_LAT_OUT_OF_RANGE=7, /* The X or latitude value is out of range. | */ |
||
277 | MAV_CMD_ACK_ERR_Y_LON_OUT_OF_RANGE=8, /* The Y or longitude value is out of range. | */ |
||
278 | MAV_CMD_ACK_ERR_Z_ALT_OUT_OF_RANGE=9, /* The Z or altitude value is out of range. | */ |
||
279 | MAV_CMD_ACK_ENUM_END=10, /* | */ |
||
280 | }; |
||
281 | #endif |
||
282 | |||
283 | /** @brief type of a mavlink parameter */ |
||
284 | #ifndef HAVE_ENUM_MAV_VAR |
||
285 | #define HAVE_ENUM_MAV_VAR |
||
286 | enum MAV_VAR |
||
287 | { |
||
288 | MAV_VAR_FLOAT=0, /* 32 bit float | */ |
||
289 | MAV_VAR_UINT8=1, /* 8 bit unsigned integer | */ |
||
290 | MAV_VAR_INT8=2, /* 8 bit signed integer | */ |
||
291 | MAV_VAR_UINT16=3, /* 16 bit unsigned integer | */ |
||
292 | MAV_VAR_INT16=4, /* 16 bit signed integer | */ |
||
293 | MAV_VAR_UINT32=5, /* 32 bit unsigned integer | */ |
||
294 | MAV_VAR_INT32=6, /* 32 bit signed integer | */ |
||
295 | MAV_VAR_ENUM_END=7, /* | */ |
||
296 | }; |
||
297 | #endif |
||
298 | |||
299 | /** @brief result from a mavlink command */ |
||
300 | #ifndef HAVE_ENUM_MAV_RESULT |
||
301 | #define HAVE_ENUM_MAV_RESULT |
||
302 | enum MAV_RESULT |
||
303 | { |
||
304 | MAV_RESULT_ACCEPTED=0, /* Command ACCEPTED and EXECUTED | */ |
||
305 | MAV_RESULT_TEMPORARILY_REJECTED=1, /* Command TEMPORARY REJECTED/DENIED | */ |
||
306 | MAV_RESULT_DENIED=2, /* Command PERMANENTLY DENIED | */ |
||
307 | MAV_RESULT_UNSUPPORTED=3, /* Command UNKNOWN/UNSUPPORTED | */ |
||
308 | MAV_RESULT_FAILED=4, /* Command executed, but failed | */ |
||
309 | MAV_RESULT_ENUM_END=5, /* | */ |
||
310 | }; |
||
311 | #endif |
||
312 | |||
313 | /** @brief result in a mavlink mission ack */ |
||
314 | #ifndef HAVE_ENUM_MAV_MISSION_RESULT |
||
315 | #define HAVE_ENUM_MAV_MISSION_RESULT |
||
316 | enum MAV_MISSION_RESULT |
||
317 | { |
||
318 | MAV_MISSION_ACCEPTED=0, /* mission accepted OK | */ |
||
319 | MAV_MISSION_ERROR=1, /* generic error / not accepting mission commands at all right now | */ |
||
320 | MAV_MISSION_UNSUPPORTED_FRAME=2, /* coordinate frame is not supported | */ |
||
321 | MAV_MISSION_UNSUPPORTED=3, /* command is not supported | */ |
||
322 | MAV_MISSION_NO_SPACE=4, /* mission item exceeds storage space | */ |
||
323 | MAV_MISSION_INVALID=5, /* one of the parameters has an invalid value | */ |
||
324 | MAV_MISSION_INVALID_PARAM1=6, /* param1 has an invalid value | */ |
||
325 | MAV_MISSION_INVALID_PARAM2=7, /* param2 has an invalid value | */ |
||
326 | MAV_MISSION_INVALID_PARAM3=8, /* param3 has an invalid value | */ |
||
327 | MAV_MISSION_INVALID_PARAM4=9, /* param4 has an invalid value | */ |
||
328 | MAV_MISSION_INVALID_PARAM5_X=10, /* x/param5 has an invalid value | */ |
||
329 | MAV_MISSION_INVALID_PARAM6_Y=11, /* y/param6 has an invalid value | */ |
||
330 | MAV_MISSION_INVALID_PARAM7=12, /* param7 has an invalid value | */ |
||
331 | MAV_MISSION_INVALID_SEQUENCE=13, /* received waypoint out of sequence | */ |
||
332 | MAV_MISSION_DENIED=14, /* not accepting any mission commands from this communication partner | */ |
||
333 | MAV_MISSION_RESULT_ENUM_END=15, /* | */ |
||
334 | }; |
||
335 | #endif |
||
336 | |||
337 | /** @brief Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. */ |
||
338 | #ifndef HAVE_ENUM_MAV_SEVERITY |
||
339 | #define HAVE_ENUM_MAV_SEVERITY |
||
340 | enum MAV_SEVERITY |
||
341 | { |
||
342 | MAV_SEVERITY_EMERGENCY=0, /* System is unusable. This is a "panic" condition. | */ |
||
343 | MAV_SEVERITY_ALERT=1, /* Action should be taken immediately. Indicates error in non-critical systems. | */ |
||
344 | MAV_SEVERITY_CRITICAL=2, /* Action must be taken immediately. Indicates failure in a primary system. | */ |
||
345 | MAV_SEVERITY_ERROR=3, /* Indicates an error in secondary/redundant systems. | */ |
||
346 | 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. | */ |
||
347 | MAV_SEVERITY_NOTICE=5, /* An unusual event has occured, though not an error condition. This should be investigated for the root cause. | */ |
||
348 | MAV_SEVERITY_INFO=6, /* Normal operational messages. Useful for logging. No action is required for these messages. | */ |
||
349 | MAV_SEVERITY_DEBUG=7, /* Useful non-operational messages that can assist in debugging. These should not occur during normal operation. | */ |
||
350 | MAV_SEVERITY_ENUM_END=8, /* | */ |
||
351 | }; |
||
352 | #endif |
||
353 | |||
354 | |||
355 | |||
356 | // MAVLINK VERSION |
||
357 | |||
358 | #ifndef MAVLINK_VERSION |
||
359 | #define MAVLINK_VERSION 3 |
||
360 | #endif |
||
361 | |||
362 | #if (MAVLINK_VERSION == 0) |
||
363 | #undef MAVLINK_VERSION |
||
364 | #define MAVLINK_VERSION 3 |
||
365 | #endif |
||
366 | |||
367 | // MESSAGE DEFINITIONS |
||
368 | #include "./mavlink_msg_heartbeat.h" |
||
369 | #include "./mavlink_msg_sys_status.h" |
||
370 | #include "./mavlink_msg_system_time.h" |
||
371 | #include "./mavlink_msg_ping.h" |
||
372 | #include "./mavlink_msg_change_operator_control.h" |
||
373 | #include "./mavlink_msg_change_operator_control_ack.h" |
||
374 | #include "./mavlink_msg_auth_key.h" |
||
375 | #include "./mavlink_msg_set_mode.h" |
||
376 | #include "./mavlink_msg_param_request_read.h" |
||
377 | #include "./mavlink_msg_param_request_list.h" |
||
378 | #include "./mavlink_msg_param_value.h" |
||
379 | #include "./mavlink_msg_param_set.h" |
||
380 | #include "./mavlink_msg_gps_raw_int.h" |
||
381 | #include "./mavlink_msg_gps_status.h" |
||
382 | #include "./mavlink_msg_scaled_imu.h" |
||
383 | #include "./mavlink_msg_raw_imu.h" |
||
384 | #include "./mavlink_msg_raw_pressure.h" |
||
385 | #include "./mavlink_msg_scaled_pressure.h" |
||
386 | #include "./mavlink_msg_attitude.h" |
||
387 | #include "./mavlink_msg_attitude_quaternion.h" |
||
388 | #include "./mavlink_msg_local_position_ned.h" |
||
389 | #include "./mavlink_msg_global_position_int.h" |
||
390 | #include "./mavlink_msg_rc_channels_scaled.h" |
||
391 | #include "./mavlink_msg_rc_channels_raw.h" |
||
392 | #include "./mavlink_msg_servo_output_raw.h" |
||
393 | #include "./mavlink_msg_mission_request_partial_list.h" |
||
394 | #include "./mavlink_msg_mission_write_partial_list.h" |
||
395 | #include "./mavlink_msg_mission_item.h" |
||
396 | #include "./mavlink_msg_mission_request.h" |
||
397 | #include "./mavlink_msg_mission_set_current.h" |
||
398 | #include "./mavlink_msg_mission_current.h" |
||
399 | #include "./mavlink_msg_mission_request_list.h" |
||
400 | #include "./mavlink_msg_mission_count.h" |
||
401 | #include "./mavlink_msg_mission_clear_all.h" |
||
402 | #include "./mavlink_msg_mission_item_reached.h" |
||
403 | #include "./mavlink_msg_mission_ack.h" |
||
404 | #include "./mavlink_msg_set_gps_global_origin.h" |
||
405 | #include "./mavlink_msg_gps_global_origin.h" |
||
406 | #include "./mavlink_msg_set_local_position_setpoint.h" |
||
407 | #include "./mavlink_msg_local_position_setpoint.h" |
||
408 | #include "./mavlink_msg_global_position_setpoint_int.h" |
||
409 | #include "./mavlink_msg_set_global_position_setpoint_int.h" |
||
410 | #include "./mavlink_msg_safety_set_allowed_area.h" |
||
411 | #include "./mavlink_msg_safety_allowed_area.h" |
||
412 | #include "./mavlink_msg_set_roll_pitch_yaw_thrust.h" |
||
413 | #include "./mavlink_msg_set_roll_pitch_yaw_speed_thrust.h" |
||
414 | #include "./mavlink_msg_roll_pitch_yaw_thrust_setpoint.h" |
||
415 | #include "./mavlink_msg_roll_pitch_yaw_speed_thrust_setpoint.h" |
||
416 | #include "./mavlink_msg_set_quad_motors_setpoint.h" |
||
417 | #include "./mavlink_msg_set_quad_swarm_roll_pitch_yaw_thrust.h" |
||
418 | #include "./mavlink_msg_nav_controller_output.h" |
||
419 | #include "./mavlink_msg_state_correction.h" |
||
420 | #include "./mavlink_msg_request_data_stream.h" |
||
421 | #include "./mavlink_msg_data_stream.h" |
||
422 | #include "./mavlink_msg_manual_control.h" |
||
423 | #include "./mavlink_msg_rc_channels_override.h" |
||
424 | #include "./mavlink_msg_vfr_hud.h" |
||
425 | #include "./mavlink_msg_command_long.h" |
||
426 | #include "./mavlink_msg_command_ack.h" |
||
427 | #include "./mavlink_msg_local_position_ned_system_global_offset.h" |
||
428 | #include "./mavlink_msg_hil_state.h" |
||
429 | #include "./mavlink_msg_hil_controls.h" |
||
430 | #include "./mavlink_msg_hil_rc_inputs_raw.h" |
||
431 | #include "./mavlink_msg_optical_flow.h" |
||
432 | #include "./mavlink_msg_global_vision_position_estimate.h" |
||
433 | #include "./mavlink_msg_vision_position_estimate.h" |
||
434 | #include "./mavlink_msg_vision_speed_estimate.h" |
||
435 | #include "./mavlink_msg_vicon_position_estimate.h" |
||
436 | #include "./mavlink_msg_memory_vect.h" |
||
437 | #include "./mavlink_msg_debug_vect.h" |
||
438 | #include "./mavlink_msg_named_value_float.h" |
||
439 | #include "./mavlink_msg_named_value_int.h" |
||
440 | #include "./mavlink_msg_statustext.h" |
||
441 | #include "./mavlink_msg_debug.h" |
||
442 | |||
443 | #ifdef __cplusplus |
||
444 | } |
||
445 | #endif // __cplusplus |
||
446 | #endif // COMMON_H |