* @brief MAVLink comm protocol generated from common.xml
* @see http://mavlink.org
*/
#pragma once
#ifndef MAVLINK_COMMON_H
#define MAVLINK_COMMON_H
#ifndef MAVLINK_H
#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.
/** @brief These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. */
#ifndef HAVE_ENUM_FIRMWARE_VERSION_TYPE
#define HAVE_ENUM_FIRMWARE_VERSION_TYPE
typedefenumFIRMWARE_VERSION_TYPE
{
FIRMWARE_VERSION_TYPE_DEV=0,/* development release | */
/** @brief Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. */
#ifndef HAVE_ENUM_MAV_GOTO
#define HAVE_ENUM_MAV_GOTO
typedefenumMAV_GOTO
{
MAV_GOTO_DO_HOLD=0,/* Hold at the current position. | */
MAV_GOTO_DO_CONTINUE=1,/* Continue with the next item in mission execution. | */
MAV_GOTO_HOLD_AT_CURRENT_POSITION=2,/* Hold at the current position of the system | */
MAV_GOTO_HOLD_AT_SPECIFIED_POSITION=3,/* Hold at the position specified in the parameters of the DO_HOLD action | */
MAV_GOTO_ENUM_END=4,/* | */
}MAV_GOTO;
#endif
/** @brief These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it
simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. */
#ifndef HAVE_ENUM_MAV_MODE
#define HAVE_ENUM_MAV_MODE
typedefenumMAV_MODE
{
MAV_MODE_PREFLIGHT=0,/* System is not ready to fly, booting, calibrating, etc. No flag is set. | */
MAV_MODE_MANUAL_DISARMED=64,/* System is allowed to be active, under manual (RC) control, no stabilization | */
MAV_MODE_TEST_DISARMED=66,/* UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only. | */
MAV_MODE_STABILIZE_DISARMED=80,/* System is allowed to be active, under assisted RC control. | */
MAV_MODE_GUIDED_DISARMED=88,/* System is allowed to be active, under autonomous control, manual setpoint | */
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 waypoints) | */
MAV_MODE_MANUAL_ARMED=192,/* System is allowed to be active, under manual (RC) control, no stabilization | */
MAV_MODE_TEST_ARMED=194,/* UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only. | */
MAV_MODE_STABILIZE_ARMED=208,/* System is allowed to be active, under assisted RC control. | */
MAV_MODE_GUIDED_ARMED=216,/* System is allowed to be active, under autonomous control, manual setpoint | */
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 waypoints) | */
MAV_MODE_ENUM_END=221,/* | */
}MAV_MODE;
#endif
/** @brief These encode the sensors whose status is sent as part of the SYS_STATUS message. */
#ifndef HAVE_ENUM_MAV_SYS_STATUS_SENSOR
#define HAVE_ENUM_MAV_SYS_STATUS_SENSOR
typedefenumMAV_SYS_STATUS_SENSOR
{
MAV_SYS_STATUS_SENSOR_3D_GYRO=1,/* 0x01 3D gyro | */
MAV_SYS_STATUS_SENSOR_3D_ACCEL=2,/* 0x02 3D accelerometer | */
MAV_SYS_STATUS_SENSOR_3D_MAG=4,/* 0x04 3D magnetometer | */
MAV_FRAME_GLOBAL=0,/* Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). | */
MAV_FRAME_MISSION=2,/* NOT a coordinate frame, indicates a mission command. | */
MAV_FRAME_GLOBAL_RELATIVE_ALT=3,/* Global (WGS84) coordinate frame + altitude relative 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. | */
MAV_FRAME_GLOBAL_INT=5,/* Global (WGS84) coordinate frame (scaled) + MSL altitude. 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). | */
MAV_FRAME_GLOBAL_RELATIVE_ALT_INT=6,/* Global (WGS84) coordinate frame (scaled) + altitude relative 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. | */
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. | */
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. | */
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. | */
MAV_FRAME_GLOBAL_TERRAIN_ALT=10,/* Global (WGS84) coordinate frame with AGL altitude (at 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. | */
MAV_FRAME_GLOBAL_TERRAIN_ALT_INT=11,/* Global (WGS84) coordinate frame (scaled) with AGL altitude (at 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. | */
MAV_FRAME_BODY_FRD=12,/* Body fixed frame of reference, Z-down (x: Forward, y: Right, z: Down). | */
MAV_FRAME_RESERVED_13=13,/* MAV_FRAME_BODY_FLU - Body fixed frame of reference, Z-up (x: Forward, y: Left, z: Up). | */
MAV_FRAME_RESERVED_14=14,/* MAV_FRAME_MOCAP_NED - Odometry local coordinate frame of data given by a motion capture system, Z-down (x: North, y: East, z: Down). | */
MAV_FRAME_RESERVED_15=15,/* MAV_FRAME_MOCAP_ENU - Odometry local coordinate frame of data given by a motion capture system, Z-up (x: East, y: North, z: Up). | */
MAV_FRAME_RESERVED_16=16,/* MAV_FRAME_VISION_NED - Odometry local coordinate frame of data given by a vision estimation system, Z-down (x: North, y: East, z: Down). | */
MAV_FRAME_RESERVED_17=17,/* MAV_FRAME_VISION_ENU - Odometry local coordinate frame of data given by a vision estimation system, Z-up (x: East, y: North, z: Up). | */
MAV_FRAME_RESERVED_18=18,/* MAV_FRAME_ESTIM_NED - Odometry local coordinate frame of data given by an estimator running onboard the vehicle, Z-down (x: North, y: East, z: Down). | */
MAV_FRAME_RESERVED_19=19,/* MAV_FRAME_ESTIM_ENU - Odometry local coordinate frame of data given by an estimator running onboard the vehicle, Z-up (x: East, y: North, z: Up). | */
MAV_FRAME_LOCAL_FRD=20,/* Forward, Right, Down coordinate frame. This is a local frame with Z-down and arbitrary F/R alignment (i.e. not aligned with NED/earth frame). | */
MAV_FRAME_LOCAL_FLU=21,/* Forward, Left, Up coordinate frame. This is a local frame with Z-up and arbitrary F/L alignment (i.e. not aligned with ENU/earth frame). | */
MAV_FRAME_ENUM_END=22,/* | */
}MAV_FRAME;
#endif
/** @brief */
#ifndef HAVE_ENUM_MAVLINK_DATA_STREAM_TYPE
#define HAVE_ENUM_MAVLINK_DATA_STREAM_TYPE
typedefenumMAVLINK_DATA_STREAM_TYPE
{
MAVLINK_DATA_STREAM_IMG_JPEG=1,/* | */
MAVLINK_DATA_STREAM_IMG_BMP=2,/* | */
MAVLINK_DATA_STREAM_IMG_RAW8U=3,/* | */
MAVLINK_DATA_STREAM_IMG_RAW32U=4,/* | */
MAVLINK_DATA_STREAM_IMG_PGM=5,/* | */
MAVLINK_DATA_STREAM_IMG_PNG=6,/* | */
MAVLINK_DATA_STREAM_TYPE_ENUM_END=7,/* | */
}MAVLINK_DATA_STREAM_TYPE;
#endif
/** @brief */
#ifndef HAVE_ENUM_FENCE_ACTION
#define HAVE_ENUM_FENCE_ACTION
typedefenumFENCE_ACTION
{
FENCE_ACTION_NONE=0,/* Disable fenced mode | */
FENCE_ACTION_GUIDED=1,/* Switched to guided mode to return point (fence point 0) | */
FENCE_ACTION_REPORT=2,/* Report fence breach, but don't take action | */
FENCE_ACTION_GUIDED_THR_PASS=3,/* Switched to guided mode to return point (fence point 0) with manual throttle control | */
FENCE_ACTION_RTL=4,/* Switch to RTL (return to launch) mode and head for the return point. | */
GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS=4,/* Gimbal device supports rotating around roll axis. | */
GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_FOLLOW=8,/* Gimbal device supports to follow a roll angle relative to the vehicle | */
GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_LOCK=16,/* Gimbal device supports locking to an roll angle (generally that's the default with roll stabilized) | */
GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS=32,/* Gimbal device supports rotating around pitch axis. | */
GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_FOLLOW=64,/* Gimbal device supports to follow a pitch angle relative to the vehicle | */
GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_LOCK=128,/* Gimbal device supports locking to an pitch angle (generally that's the default with pitch stabilized) | */
GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS=256,/* Gimbal device supports rotating around yaw axis. | */
GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_FOLLOW=512,/* Gimbal device supports to follow a yaw angle relative to the vehicle (generally that's the default) | */
GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_LOCK=1024,/* Gimbal device supports locking to an absolute heading (often this is an option available) | */
/** @brief Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS which are identical with GIMBAL_DEVICE_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. */
#ifndef HAVE_ENUM_GIMBAL_MANAGER_CAP_FLAGS
#define HAVE_ENUM_GIMBAL_MANAGER_CAP_FLAGS
typedefenumGIMBAL_MANAGER_CAP_FLAGS
{
GIMBAL_MANAGER_CAP_FLAGS_HAS_RETRACT=1,/* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. | */
GIMBAL_MANAGER_CAP_FLAGS_HAS_NEUTRAL=2,/* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_NEUTRAL. | */
GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_AXIS=4,/* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS. | */
GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_FOLLOW=8,/* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_FOLLOW. | */
GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_LOCK=16,/* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_LOCK. | */
GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_AXIS=32,/* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS. | */
GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_FOLLOW=64,/* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_FOLLOW. | */
GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_LOCK=128,/* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_LOCK. | */
GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_AXIS=256,/* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS. | */
GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_FOLLOW=512,/* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_FOLLOW. | */
GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_LOCK=1024,/* Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_LOCK. | */
GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_INFINITE_YAW=2048,/* Based on GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_INFINITE_YAW. | */
GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_LOCAL=65536,/* Gimbal manager supports to point to a local position. | */
GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_GLOBAL=131072,/* Gimbal manager supports to point to a global latitude, longitude, altitude position. | */
GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_FOCAL_LENGTH_SCALE=1048576,/* Gimbal manager supports pitching and yawing at an angular velocity scaled by focal length (the more zoomed in, the slower the movement). | */
GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_NUDGING=2097152,/* Gimbal manager supports nudging when pointing to a location or tracking. | */
GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_OVERRIDE=4194304,/* Gimbal manager supports overriding when pointing to a location or tracking. | */
GIMBAL_MANAGER_CAP_FLAGS_ENUM_END=4194305,/* | */
}GIMBAL_MANAGER_CAP_FLAGS;
#endif
/** @brief Flags for gimbal device (lower level) operation. */
#ifndef HAVE_ENUM_GIMBAL_DEVICE_FLAGS
#define HAVE_ENUM_GIMBAL_DEVICE_FLAGS
typedefenumGIMBAL_DEVICE_FLAGS
{
GIMBAL_DEVICE_FLAGS_RETRACT=1,/* Set to retracted safe position (no stabilization), takes presedence over all other flags. | */
GIMBAL_DEVICE_FLAGS_NEUTRAL=2,/* Set to neutral position (horizontal, forward looking, with stabiliziation), takes presedence over all other flags except RETRACT. | */
GIMBAL_DEVICE_FLAGS_ROLL_LOCK=4,/* Lock roll angle to absolute angle relative to horizon (not relative to drone). This is generally the default with a stabilizing gimbal. | */
GIMBAL_DEVICE_FLAGS_PITCH_LOCK=8,/* Lock pitch angle to absolute angle relative to horizon (not relative to drone). This is generally the default. | */
GIMBAL_DEVICE_FLAGS_YAW_LOCK=16,/* Lock yaw angle to absolute angle relative to North (not relative to drone). If this flag is set, the quaternion is in the Earth frame with the x-axis pointing North (yaw absolute). If this flag is not set, the quaternion frame is in the Earth frame rotated so that the x-axis is pointing forward (yaw relative to vehicle). | */
GIMBAL_DEVICE_FLAGS_ENUM_END=17,/* | */
}GIMBAL_DEVICE_FLAGS;
#endif
/** @brief Flags for high level gimbal manager operation The first 16 bytes are identical to the GIMBAL_DEVICE_FLAGS. */
#ifndef HAVE_ENUM_GIMBAL_MANAGER_FLAGS
#define HAVE_ENUM_GIMBAL_MANAGER_FLAGS
typedefenumGIMBAL_MANAGER_FLAGS
{
GIMBAL_MANAGER_FLAGS_RETRACT=1,/* Based on GIMBAL_DEVICE_FLAGS_RETRACT | */
GIMBAL_MANAGER_FLAGS_NEUTRAL=2,/* Based on GIMBAL_DEVICE_FLAGS_NEUTRAL | */
GIMBAL_MANAGER_FLAGS_ROLL_LOCK=4,/* Based on GIMBAL_DEVICE_FLAGS_ROLL_LOCK | */
GIMBAL_MANAGER_FLAGS_PITCH_LOCK=8,/* Based on GIMBAL_DEVICE_FLAGS_PITCH_LOCK | */
GIMBAL_MANAGER_FLAGS_YAW_LOCK=16,/* Based on GIMBAL_DEVICE_FLAGS_YAW_LOCK | */
GIMBAL_MANAGER_FLAGS_ANGULAR_VELOCITY_RELATIVE_TO_FOCAL_LENGTH=1048576,/* Scale angular velocity relative to focal length. This means the gimbal moves slower if it is zoomed in. | */
GIMBAL_MANAGER_FLAGS_NUDGE=2097152,/* Interpret attitude control on top of pointing to a location or tracking. If this flag is set, the quaternion is relative to the existing tracking angle. | */
GIMBAL_MANAGER_FLAGS_OVERRIDE=4194304,/* Completely override pointing to a location or tracking. If this flag is set, the quaternion is (as usual) according to GIMBAL_MANAGER_FLAGS_YAW_LOCK. | */
GIMBAL_MANAGER_FLAGS_NONE=8388608,/* This flag can be set to give up control previously set using MAV_CMD_DO_GIMBAL_MANAGER_ATTITUDE. This flag must not be combined with other flags. | */
GIMBAL_MANAGER_FLAGS_ENUM_END=8388609,/* | */
}GIMBAL_MANAGER_FLAGS;
#endif
/** @brief Gimbal device (low level) error flags (bitmap, 0 means no error) */
#ifndef HAVE_ENUM_GIMBAL_DEVICE_ERROR_FLAGS
#define HAVE_ENUM_GIMBAL_DEVICE_ERROR_FLAGS
typedefenumGIMBAL_DEVICE_ERROR_FLAGS
{
GIMBAL_DEVICE_ERROR_FLAGS_AT_ROLL_LIMIT=1,/* Gimbal device is limited by hardware roll limit. | */
GIMBAL_DEVICE_ERROR_FLAGS_AT_PITCH_LIMIT=2,/* Gimbal device is limited by hardware pitch limit. | */
GIMBAL_DEVICE_ERROR_FLAGS_AT_YAW_LIMIT=4,/* Gimbal device is limited by hardware yaw limit. | */
GIMBAL_DEVICE_ERROR_FLAGS_ENCODER_ERROR=8,/* There is an error with the gimbal encoders. | */
GIMBAL_DEVICE_ERROR_FLAGS_POWER_ERROR=16,/* There is an error with the gimbal power source. | */
GIMBAL_DEVICE_ERROR_FLAGS_MOTOR_ERROR=32,/* There is an error with the gimbal motor's. | */
GIMBAL_DEVICE_ERROR_FLAGS_SOFTWARE_ERROR=64,/* There is an error with the gimbal's software. | */
GIMBAL_DEVICE_ERROR_FLAGS_COMMS_ERROR=128,/* There is an error with the gimbal's communication. | */
GIMBAL_DEVICE_ERROR_FLAGS_CALIBRATION_RUNNING=256,/* Gimbal is currently calibrating. | */
/** @brief Flags to indicate the status of camera storage. */
#ifndef HAVE_ENUM_STORAGE_STATUS
#define HAVE_ENUM_STORAGE_STATUS
typedefenumSTORAGE_STATUS
{
STORAGE_STATUS_EMPTY=0,/* Storage is missing (no microSD card loaded for example.) | */
STORAGE_STATUS_UNFORMATTED=1,/* Storage present but unformatted. | */
STORAGE_STATUS_READY=2,/* Storage present and ready. | */
STORAGE_STATUS_NOT_SUPPORTED=3,/* Camera does not supply storage status information. Capacity information in STORAGE_INFORMATION fields will be ignored. | */
STORAGE_STATUS_ENUM_END=4,/* | */
}STORAGE_STATUS;
#endif
/** @brief Yaw behaviour during orbit flight. */
#ifndef HAVE_ENUM_ORBIT_YAW_BEHAVIOUR
#define HAVE_ENUM_ORBIT_YAW_BEHAVIOUR
typedefenumORBIT_YAW_BEHAVIOUR
{
ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TO_CIRCLE_CENTER=0,/* Vehicle front points to the center (default). | */
ORBIT_YAW_BEHAVIOUR_HOLD_INITIAL_HEADING=1,/* Vehicle front holds heading when message received. | */
/** @brief Possible values for COMPONENT_INFORMATION.comp_metadata_type. */
#ifndef HAVE_ENUM_COMP_METADATA_TYPE
#define HAVE_ENUM_COMP_METADATA_TYPE
typedefenumCOMP_METADATA_TYPE
{
COMP_METADATA_TYPE_VERSION=0,/* Version information which also includes information on other optional supported COMP_METADATA_TYPE's. Must be supported. Only downloadable from vehicle. | */
COMP_METADATA_TYPE_PARAMETER=1,/* Parameter meta data. | */
COMP_METADATA_TYPE_COMMANDS=2,/* Meta data which specifies the commands the vehicle supports. (WIP) | */
COMP_METADATA_TYPE_ENUM_END=3,/* | */
}COMP_METADATA_TYPE;
#endif
/** @brief Possible transport layers to set and get parameters via mavlink during a parameter transaction. */
#ifndef HAVE_ENUM_PARAM_TRANSACTION_TRANSPORT
#define HAVE_ENUM_PARAM_TRANSACTION_TRANSPORT
typedefenumPARAM_TRANSACTION_TRANSPORT
{
PARAM_TRANSACTION_TRANSPORT_PARAM=0,/* Transaction over param transport. | */
PARAM_TRANSACTION_TRANSPORT_PARAM_EXT=1,/* Transaction over param_ext transport. | */
PARAM_TRANSACTION_TRANSPORT_ENUM_END=2,/* | */
}PARAM_TRANSACTION_TRANSPORT;
#endif
/** @brief Possible parameter transaction actions. */
#ifndef HAVE_ENUM_PARAM_TRANSACTION_ACTION
#define HAVE_ENUM_PARAM_TRANSACTION_ACTION
typedefenumPARAM_TRANSACTION_ACTION
{
PARAM_TRANSACTION_ACTION_START=0,/* Commit the current parameter transaction. | */
PARAM_TRANSACTION_ACTION_COMMIT=1,/* Commit the current parameter transaction. | */
PARAM_TRANSACTION_ACTION_CANCEL=2,/* Cancel the current parameter transaction. | */
PARAM_TRANSACTION_ACTION_ENUM_END=3,/* | */
}PARAM_TRANSACTION_ACTION;
#endif
/** @brief A data stream is not a fixed set of messages, but rather a
recommendation to the autopilot software. Individual autopilots may or may not obey
the recommended messages. */
#ifndef HAVE_ENUM_MAV_DATA_STREAM
#define HAVE_ENUM_MAV_DATA_STREAM
typedefenumMAV_DATA_STREAM
{
MAV_DATA_STREAM_ALL=0,/* Enable all data streams | */
MAV_CMD_ACK_ERR_FAIL=2,/* Generic error message if none of the other reasons fails or if no detailed error reporting is implemented. |Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| */
MAV_CMD_ACK_ERR_ACCESS_DENIED=3,/* The system is refusing to accept this command from this source / communication partner. |Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| */
MAV_CMD_ACK_ERR_NOT_SUPPORTED=4,/* Command or mission item is not supported, other commands would be accepted. |Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| */
MAV_CMD_ACK_ERR_COORDINATE_FRAME_NOT_SUPPORTED=5,/* The coordinate frame of this command / mission item is not supported. |Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| */
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. |Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| */
MAV_CMD_ACK_ERR_X_LAT_OUT_OF_RANGE=7,/* The X or latitude value is out of range. |Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| */
MAV_CMD_ACK_ERR_Y_LON_OUT_OF_RANGE=8,/* The Y or longitude value is out of range. |Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| */
MAV_CMD_ACK_ERR_Z_ALT_OUT_OF_RANGE=9,/* The Z or altitude value is out of range. |Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| Reserved (default:0)| */
MAV_CMD_ACK_ENUM_END=10,/* | */
}MAV_CMD_ACK;
#endif
/** @brief Specifies the datatype of a MAVLink parameter. */
/** @brief Result from a MAVLink command (MAV_CMD) */
#ifndef HAVE_ENUM_MAV_RESULT
#define HAVE_ENUM_MAV_RESULT
typedefenumMAV_RESULT
{
MAV_RESULT_ACCEPTED=0,/* Command is valid (is supported and has valid parameters), and was executed. | */
MAV_RESULT_TEMPORARILY_REJECTED=1,/* Command is valid, but cannot be executed at this time. This is used to indicate a problem that should be fixed just by waiting (e.g. a state machine is busy, can't arm because have not got GPS lock, etc.). Retrying later should work. | */
MAV_RESULT_DENIED=2,/* Command is invalid (is supported but has invalid parameters). Retrying same command and parameters will not work. | */
MAV_RESULT_UNSUPPORTED=3,/* Command is not supported (unknown). | */
MAV_RESULT_FAILED=4,/* Command is valid, but execution has failed. This is used to indicate any non-temporary or unexpected problem, i.e. any problem that must be fixed before the command can succeed/be retried. For example, attempting to write a file when out of memory, attempting to arm when sensors are not calibrated, etc. | */
MAV_RESULT_IN_PROGRESS=5,/* Command is valid and is being executed. This will be followed by further progress updates, i.e. the component may send further COMMAND_ACK messages with result MAV_RESULT_IN_PROGRESS (at a rate decided by the implementation), and must terminate by sending a COMMAND_ACK message with final result of the operation. The COMMAND_ACK.progress field can be used to indicate the progress of the operation. | */
MAV_RESULT_CANCELLED=6,/* Command has been cancelled (as a result of receiving a COMMAND_CANCEL message). | */
MAV_RESULT_ENUM_END=7,/* | */
}MAV_RESULT;
#endif
/** @brief Result of mission operation (in a MISSION_ACK message). */
#ifndef HAVE_ENUM_MAV_MISSION_RESULT
#define HAVE_ENUM_MAV_MISSION_RESULT
typedefenumMAV_MISSION_RESULT
{
MAV_MISSION_ACCEPTED=0,/* mission accepted OK | */
MAV_MISSION_ERROR=1,/* Generic error / not accepting mission commands at all right now. | */
MAV_MISSION_UNSUPPORTED_FRAME=2,/* Coordinate frame is not supported. | */
MAV_MISSION_UNSUPPORTED=3,/* Command is not supported. | */
/** @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/. */
#ifndef HAVE_ENUM_MAV_SEVERITY
#define HAVE_ENUM_MAV_SEVERITY
typedefenumMAV_SEVERITY
{
MAV_SEVERITY_EMERGENCY=0,/* System is unusable. This is a "panic" condition. | */
MAV_SEVERITY_ALERT=1,/* Action should be taken immediately. Indicates error in non-critical systems. | */
MAV_SEVERITY_CRITICAL=2,/* Action must be taken immediately. Indicates failure in a primary system. | */
MAV_SEVERITY_ERROR=3,/* Indicates an error in secondary/redundant systems. | */
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. | */
MAV_SEVERITY_NOTICE=5,/* An unusual event has occurred, though not an error condition. This should be investigated for the root cause. | */
MAV_SEVERITY_INFO=6,/* Normal operational messages. Useful for logging. No action is required for these messages. | */
MAV_SEVERITY_DEBUG=7,/* Useful non-operational messages that can assist in debugging. These should not occur during normal operation. | */
MAV_SEVERITY_ENUM_END=8,/* | */
}MAV_SEVERITY;
#endif
/** @brief Power supply status flags (bitmask) */
#ifndef HAVE_ENUM_MAV_POWER_STATUS
#define HAVE_ENUM_MAV_POWER_STATUS
typedefenumMAV_POWER_STATUS
{
MAV_POWER_STATUS_BRICK_VALID=1,/* main brick power supply valid | */
MAV_POWER_STATUS_SERVO_VALID=2,/* main servo power supply valid for FMU | */
MAV_POWER_STATUS_USB_CONNECTED=4,/* USB power is connected | */
MAV_POWER_STATUS_PERIPH_OVERCURRENT=8,/* peripheral supply is in over-current state | */
MAV_POWER_STATUS_PERIPH_HIPOWER_OVERCURRENT=16,/* hi-power peripheral supply is in over-current state | */
MAV_POWER_STATUS_CHANGED=32,/* Power status has changed since boot | */
MAV_POWER_STATUS_ENUM_END=33,/* | */
}MAV_POWER_STATUS;
#endif
/** @brief SERIAL_CONTROL device types */
#ifndef HAVE_ENUM_SERIAL_CONTROL_DEV
#define HAVE_ENUM_SERIAL_CONTROL_DEV
typedefenumSERIAL_CONTROL_DEV
{
SERIAL_CONTROL_DEV_TELEM1=0,/* First telemetry port | */
SERIAL_CONTROL_DEV_TELEM2=1,/* Second telemetry port | */
SERIAL_CONTROL_DEV_GPS1=2,/* First GPS port | */
SERIAL_CONTROL_DEV_GPS2=3,/* Second GPS port | */
SERIAL_CONTROL_DEV_SHELL=10,/* system shell | */
SERIAL_CONTROL_SERIAL0=100,/* SERIAL0 | */
SERIAL_CONTROL_SERIAL1=101,/* SERIAL1 | */
SERIAL_CONTROL_SERIAL2=102,/* SERIAL2 | */
SERIAL_CONTROL_SERIAL3=103,/* SERIAL3 | */
SERIAL_CONTROL_SERIAL4=104,/* SERIAL4 | */
SERIAL_CONTROL_SERIAL5=105,/* SERIAL5 | */
SERIAL_CONTROL_SERIAL6=106,/* SERIAL6 | */
SERIAL_CONTROL_SERIAL7=107,/* SERIAL7 | */
SERIAL_CONTROL_SERIAL8=108,/* SERIAL8 | */
SERIAL_CONTROL_SERIAL9=109,/* SERIAL9 | */
SERIAL_CONTROL_DEV_ENUM_END=110,/* | */
}SERIAL_CONTROL_DEV;
#endif
/** @brief SERIAL_CONTROL flags (bitmask) */
#ifndef HAVE_ENUM_SERIAL_CONTROL_FLAG
#define HAVE_ENUM_SERIAL_CONTROL_FLAG
typedefenumSERIAL_CONTROL_FLAG
{
SERIAL_CONTROL_FLAG_REPLY=1,/* Set if this is a reply | */
SERIAL_CONTROL_FLAG_RESPOND=2,/* Set if the sender wants the receiver to send a response as another SERIAL_CONTROL message | */
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 | */
SERIAL_CONTROL_FLAG_BLOCKING=8,/* Block on writes to the serial port | */
SERIAL_CONTROL_FLAG_MULTI=16,/* Send multiple replies until port is drained | */
SERIAL_CONTROL_FLAG_ENUM_END=17,/* | */
}SERIAL_CONTROL_FLAG;
#endif
/** @brief Enumeration of distance sensor types */
#ifndef HAVE_ENUM_MAV_DISTANCE_SENSOR
#define HAVE_ENUM_MAV_DISTANCE_SENSOR
typedefenumMAV_DISTANCE_SENSOR
{
MAV_DISTANCE_SENSOR_LASER=0,/* Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units | */
MAV_DISTANCE_SENSOR_ULTRASOUND=1,/* Ultrasound rangefinder, e.g. MaxBotix units | */
MAV_DISTANCE_SENSOR_INFRARED=2,/* Infrared rangefinder, e.g. Sharp units | */
MAV_DISTANCE_SENSOR_RADAR=3,/* Radar type, e.g. uLanding units | */
MAV_DISTANCE_SENSOR_UNKNOWN=4,/* Broken or unknown type, e.g. analog units | */
MAV_DISTANCE_SENSOR_ENUM_END=5,/* | */
}MAV_DISTANCE_SENSOR;
#endif
/** @brief Enumeration of sensor orientation, according to its rotations */
MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED=128,/* Autopilot supports commanding position and velocity targets in local NED frame. | */
MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT=256,/* Autopilot supports commanding position and velocity targets in global scaled integers. | */
MAV_PROTOCOL_CAPABILITY_TERRAIN=512,/* Autopilot supports terrain protocol / data handling. | */
MAV_PROTOCOL_CAPABILITY_SET_ACTUATOR_TARGET=1024,/* Autopilot supports direct actuator control. | */
MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION=2048,/* Autopilot supports the flight termination command. | */
MAV_MISSION_TYPE_RALLY=2,/* Specifies the rally points for the vehicle. Rally points are alternative RTL points. Items are MAV_CMD_NAV_RALLY_POINT rally point items. | */
MAV_MISSION_TYPE_ALL=255,/* Only used in MISSION_CLEAR_ALL to clear all mission types. | */
MAV_MISSION_TYPE_ENUM_END=256,/* | */
}MAV_MISSION_TYPE;
#endif
/** @brief Enumeration of estimator types */
#ifndef HAVE_ENUM_MAV_ESTIMATOR_TYPE
#define HAVE_ENUM_MAV_ESTIMATOR_TYPE
typedefenumMAV_ESTIMATOR_TYPE
{
MAV_ESTIMATOR_TYPE_UNKNOWN=0,/* Unknown type of the estimator. | */
MAV_ESTIMATOR_TYPE_NAIVE=1,/* This is a naive estimator without any real covariance feedback. | */
MAV_ESTIMATOR_TYPE_VISION=2,/* Computer vision based estimate. Might be up to scale. | */
/** @brief Enumeration for battery charge states. */
#ifndef HAVE_ENUM_MAV_BATTERY_CHARGE_STATE
#define HAVE_ENUM_MAV_BATTERY_CHARGE_STATE
typedefenumMAV_BATTERY_CHARGE_STATE
{
MAV_BATTERY_CHARGE_STATE_UNDEFINED=0,/* Low battery state is not provided | */
MAV_BATTERY_CHARGE_STATE_OK=1,/* Battery is not in low state. Normal operation. | */
MAV_BATTERY_CHARGE_STATE_LOW=2,/* Battery state is low, warn and monitor close. | */
MAV_BATTERY_CHARGE_STATE_CRITICAL=3,/* Battery state is critical, return or abort immediately. | */
MAV_BATTERY_CHARGE_STATE_EMERGENCY=4,/* Battery state is too low for ordinary abort sequence. Perform fastest possible emergency stop to prevent damage. | */
/** @brief Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). */
#ifndef HAVE_ENUM_MAV_GENERATOR_STATUS_FLAG
#define HAVE_ENUM_MAV_GENERATOR_STATUS_FLAG
typedefenumMAV_GENERATOR_STATUS_FLAG
{
MAV_GENERATOR_STATUS_FLAG_OFF=1,/* Generator is off. | */
MAV_GENERATOR_STATUS_FLAG_READY=2,/* Generator is ready to start generating power. | */
MAV_GENERATOR_STATUS_FLAG_GENERATING=4,/* Generator is generating power. | */
MAV_GENERATOR_STATUS_FLAG_CHARGING=8,/* Generator is charging the batteries (generating enough power to charge and provide the load). | */
MAV_GENERATOR_STATUS_FLAG_REDUCED_POWER=16,/* Generator is operating at a reduced maximum power. | */
MAV_GENERATOR_STATUS_FLAG_MAXPOWER=32,/* Generator is providing the maximum output. | */
MAV_GENERATOR_STATUS_FLAG_OVERTEMP_WARNING=64,/* Generator is near the maximum operating temperature, cooling is insufficient. | */
MAV_GENERATOR_STATUS_FLAG_OVERTEMP_FAULT=128,/* Generator hit the maximum operating temperature and shutdown. | */
MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_WARNING=256,/* Power electronics are near the maximum operating temperature, cooling is insufficient. | */
MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_FAULT=512,/* Power electronics hit the maximum operating temperature and shutdown. | */
MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_FAULT=1024,/* Power electronics experienced a fault and shutdown. | */
MAV_GENERATOR_STATUS_FLAG_POWERSOURCE_FAULT=2048,/* The power source supplying the generator failed e.g. mechanical generator stopped, tether is no longer providing power, solar cell is in shade, hydrogen reaction no longer happening. | */
MAV_GENERATOR_STATUS_FLAG_COMMUNICATION_WARNING=4096,/* Generator controller having communication problems. | */
MAV_GENERATOR_STATUS_FLAG_COOLING_WARNING=8192,/* Power electronic or generator cooling system error. | */
MAV_GENERATOR_STATUS_FLAG_POWER_RAIL_FAULT=16384,/* Generator controller power rail experienced a fault. | */
MAV_GENERATOR_STATUS_FLAG_OVERCURRENT_FAULT=32768,/* Generator controller exceeded the overcurrent threshold and shutdown to prevent damage. | */
MAV_GENERATOR_STATUS_FLAG_BATTERY_OVERCHARGE_CURRENT_FAULT=65536,/* Generator controller detected a high current going into the batteries and shutdown to prevent battery damage. | */
MAV_GENERATOR_STATUS_FLAG_OVERVOLTAGE_FAULT=131072,/* Generator controller exceeded it's overvoltage threshold and shutdown to prevent it exceeding the voltage rating. | */
MAV_GENERATOR_STATUS_FLAG_BATTERY_UNDERVOLT_FAULT=262144,/* Batteries are under voltage (generator will not start). | */
MAV_GENERATOR_STATUS_FLAG_START_INHIBITED=524288,/* Generator start is inhibited by e.g. a safety switch. | */
/** @brief Enumeration of landed detector states */
#ifndef HAVE_ENUM_MAV_LANDED_STATE
#define HAVE_ENUM_MAV_LANDED_STATE
typedefenumMAV_LANDED_STATE
{
MAV_LANDED_STATE_UNDEFINED=0,/* MAV landed state is unknown | */
MAV_LANDED_STATE_ON_GROUND=1,/* MAV is landed (on ground) | */
MAV_LANDED_STATE_IN_AIR=2,/* MAV is in air | */
MAV_LANDED_STATE_TAKEOFF=3,/* MAV currently taking off | */
MAV_LANDED_STATE_LANDING=4,/* MAV currently landing | */
MAV_LANDED_STATE_ENUM_END=5,/* | */
}MAV_LANDED_STATE;
#endif
/** @brief Enumeration of the ADSB altimeter types */
#ifndef HAVE_ENUM_ADSB_ALTITUDE_TYPE
#define HAVE_ENUM_ADSB_ALTITUDE_TYPE
typedefenumADSB_ALTITUDE_TYPE
{
ADSB_ALTITUDE_TYPE_PRESSURE_QNH=0,/* Altitude reported from a Baro source using QNH reference | */
ADSB_ALTITUDE_TYPE_GEOMETRIC=1,/* Altitude reported from a GNSS source | */
ADSB_ALTITUDE_TYPE_ENUM_END=2,/* | */
}ADSB_ALTITUDE_TYPE;
#endif
/** @brief ADSB classification for the type of vehicle emitting the transponder signal */
#ifndef HAVE_ENUM_ADSB_EMITTER_TYPE
#define HAVE_ENUM_ADSB_EMITTER_TYPE
typedefenumADSB_EMITTER_TYPE
{
ADSB_EMITTER_TYPE_NO_INFO=0,/* | */
ADSB_EMITTER_TYPE_LIGHT=1,/* | */
ADSB_EMITTER_TYPE_SMALL=2,/* | */
ADSB_EMITTER_TYPE_LARGE=3,/* | */
ADSB_EMITTER_TYPE_HIGH_VORTEX_LARGE=4,/* | */
ADSB_EMITTER_TYPE_HEAVY=5,/* | */
ADSB_EMITTER_TYPE_HIGHLY_MANUV=6,/* | */
ADSB_EMITTER_TYPE_ROTOCRAFT=7,/* | */
ADSB_EMITTER_TYPE_UNASSIGNED=8,/* | */
ADSB_EMITTER_TYPE_GLIDER=9,/* | */
ADSB_EMITTER_TYPE_LIGHTER_AIR=10,/* | */
ADSB_EMITTER_TYPE_PARACHUTE=11,/* | */
ADSB_EMITTER_TYPE_ULTRA_LIGHT=12,/* | */
ADSB_EMITTER_TYPE_UNASSIGNED2=13,/* | */
ADSB_EMITTER_TYPE_UAV=14,/* | */
ADSB_EMITTER_TYPE_SPACE=15,/* | */
ADSB_EMITTER_TYPE_UNASSGINED3=16,/* | */
ADSB_EMITTER_TYPE_EMERGENCY_SURFACE=17,/* | */
ADSB_EMITTER_TYPE_SERVICE_SURFACE=18,/* | */
ADSB_EMITTER_TYPE_POINT_OBSTACLE=19,/* | */
ADSB_EMITTER_TYPE_ENUM_END=20,/* | */
}ADSB_EMITTER_TYPE;
#endif
/** @brief These flags indicate status such as data validity of each data source. Set = data valid */
#ifndef HAVE_ENUM_ADSB_FLAGS
#define HAVE_ENUM_ADSB_FLAGS
typedefenumADSB_FLAGS
{
ADSB_FLAGS_VALID_COORDS=1,/* | */
ADSB_FLAGS_VALID_ALTITUDE=2,/* | */
ADSB_FLAGS_VALID_HEADING=4,/* | */
ADSB_FLAGS_VALID_VELOCITY=8,/* | */
ADSB_FLAGS_VALID_CALLSIGN=16,/* | */
ADSB_FLAGS_VALID_SQUAWK=32,/* | */
ADSB_FLAGS_SIMULATED=64,/* | */
ADSB_FLAGS_VERTICAL_VELOCITY_VALID=128,/* | */
ADSB_FLAGS_BARO_VALID=256,/* | */
ADSB_FLAGS_SOURCE_UAT=32768,/* | */
ADSB_FLAGS_ENUM_END=32769,/* | */
}ADSB_FLAGS;
#endif
/** @brief Bitmap of options for the MAV_CMD_DO_REPOSITION */
#ifndef HAVE_ENUM_MAV_DO_REPOSITION_FLAGS
#define HAVE_ENUM_MAV_DO_REPOSITION_FLAGS
typedefenumMAV_DO_REPOSITION_FLAGS
{
MAV_DO_REPOSITION_FLAGS_CHANGE_MODE=1,/* The aircraft should immediately transition into guided. This should not be set for follow me applications | */
MAV_DO_REPOSITION_FLAGS_ENUM_END=2,/* | */
}MAV_DO_REPOSITION_FLAGS;
#endif
/** @brief Flags in ESTIMATOR_STATUS message */
#ifndef HAVE_ENUM_ESTIMATOR_STATUS_FLAGS
#define HAVE_ENUM_ESTIMATOR_STATUS_FLAGS
typedefenumESTIMATOR_STATUS_FLAGS
{
ESTIMATOR_ATTITUDE=1,/* True if the attitude estimate is good | */
ESTIMATOR_VELOCITY_HORIZ=2,/* True if the horizontal velocity estimate is good | */
ESTIMATOR_VELOCITY_VERT=4,/* True if the vertical velocity estimate is good | */
ESTIMATOR_POS_HORIZ_REL=8,/* True if the horizontal position (relative) estimate is good | */
ESTIMATOR_POS_HORIZ_ABS=16,/* True if the horizontal position (absolute) estimate is good | */
ESTIMATOR_POS_VERT_ABS=32,/* True if the vertical position (absolute) estimate is good | */
ESTIMATOR_POS_VERT_AGL=64,/* True if the vertical position (above ground) estimate is good | */
ESTIMATOR_CONST_POS_MODE=128,/* True if the EKF is in a constant position mode and is not using external measurements (eg GPS or optical flow) | */
ESTIMATOR_PRED_POS_HORIZ_REL=256,/* True if the EKF has sufficient data to enter a mode that will provide a (relative) position estimate | */
ESTIMATOR_PRED_POS_HORIZ_ABS=512,/* True if the EKF has sufficient data to enter a mode that will provide a (absolute) position estimate | */
ESTIMATOR_GPS_GLITCH=1024,/* True if the EKF has detected a GPS glitch | */
ESTIMATOR_ACCEL_ERROR=2048,/* True if the EKF has detected bad accelerometer data | */
ESTIMATOR_STATUS_FLAGS_ENUM_END=2049,/* | */
}ESTIMATOR_STATUS_FLAGS;
#endif
/** @brief */
#ifndef HAVE_ENUM_MOTOR_TEST_ORDER
#define HAVE_ENUM_MOTOR_TEST_ORDER
typedefenumMOTOR_TEST_ORDER
{
MOTOR_TEST_ORDER_DEFAULT=0,/* default autopilot motor test method | */
MOTOR_TEST_ORDER_SEQUENCE=1,/* motor numbers are specified as their index in a predefined vehicle-specific sequence | */
MOTOR_TEST_ORDER_BOARD=2,/* motor numbers are specified as the output as labeled on the board | */
MOTOR_TEST_ORDER_ENUM_END=3,/* | */
}MOTOR_TEST_ORDER;
#endif
/** @brief */
#ifndef HAVE_ENUM_MOTOR_TEST_THROTTLE_TYPE
#define HAVE_ENUM_MOTOR_TEST_THROTTLE_TYPE
typedefenumMOTOR_TEST_THROTTLE_TYPE
{
MOTOR_TEST_THROTTLE_PERCENT=0,/* throttle as a percentage from 0 ~ 100 | */
MOTOR_TEST_THROTTLE_PWM=1,/* throttle as an absolute PWM value (normally in range of 1000~2000) | */
MOTOR_TEST_THROTTLE_PILOT=2,/* throttle pass-through from pilot's transmitter | */
MOTOR_TEST_COMPASS_CAL=3,/* per-motor compass calibration test | */
MOTOR_TEST_THROTTLE_TYPE_ENUM_END=4,/* | */
}MOTOR_TEST_THROTTLE_TYPE;
#endif
/** @brief */
#ifndef HAVE_ENUM_GPS_INPUT_IGNORE_FLAGS
#define HAVE_ENUM_GPS_INPUT_IGNORE_FLAGS
typedefenumGPS_INPUT_IGNORE_FLAGS
{
GPS_INPUT_IGNORE_FLAG_ALT=1,/* ignore altitude field | */
GPS_INPUT_IGNORE_FLAG_HDOP=2,/* ignore hdop field | */
GPS_INPUT_IGNORE_FLAG_VDOP=4,/* ignore vdop field | */
GPS_INPUT_IGNORE_FLAG_VEL_HORIZ=8,/* ignore horizontal velocity field (vn and ve) | */
GPS_INPUT_IGNORE_FLAG_VEL_VERT=16,/* ignore vertical velocity field (vd) | */
GPS_INPUT_IGNORE_FLAG_SPEED_ACCURACY=32,/* ignore speed accuracy field | */
GPS_INPUT_IGNORE_FLAG_HORIZONTAL_ACCURACY=64,/* ignore horizontal accuracy field | */
GPS_INPUT_IGNORE_FLAG_VERTICAL_ACCURACY=128,/* ignore vertical accuracy field | */
GPS_INPUT_IGNORE_FLAGS_ENUM_END=129,/* | */
}GPS_INPUT_IGNORE_FLAGS;
#endif
/** @brief Possible actions an aircraft can take to avoid a collision. */
#ifndef HAVE_ENUM_MAV_COLLISION_ACTION
#define HAVE_ENUM_MAV_COLLISION_ACTION
typedefenumMAV_COLLISION_ACTION
{
MAV_COLLISION_ACTION_NONE=0,/* Ignore any potential collisions | */
LANDING_TARGET_TYPE_RADIO_BEACON=1,/* Landing target signaled by radio beacon (ex: ILS, NDB) | */
LANDING_TARGET_TYPE_VISION_FIDUCIAL=2,/* Landing target represented by a fiducial marker (ex: ARTag) | */
LANDING_TARGET_TYPE_VISION_OTHER=3,/* Landing target represented by a pre-defined visual shape/feature (ex: X-marker, H-marker, square) | */
LANDING_TARGET_TYPE_ENUM_END=4,/* | */
}LANDING_TARGET_TYPE;
#endif
/** @brief Direction of VTOL transition */
#ifndef HAVE_ENUM_VTOL_TRANSITION_HEADING
#define HAVE_ENUM_VTOL_TRANSITION_HEADING
typedefenumVTOL_TRANSITION_HEADING
{
VTOL_TRANSITION_HEADING_VEHICLE_DEFAULT=0,/* Respect the heading configuration of the vehicle. | */
VTOL_TRANSITION_HEADING_NEXT_WAYPOINT=1,/* Use the heading pointing towards the next waypoint. | */
VTOL_TRANSITION_HEADING_TAKEOFF=2,/* Use the heading on takeoff (while sitting on the ground). | */
VTOL_TRANSITION_HEADING_SPECIFIED=3,/* Use the specified heading in parameter 4. | */
VTOL_TRANSITION_HEADING_ANY=4,/* Use the current heading when reaching takeoff altitude (potentially facing the wind when weather-vaning is active). | */
VTOL_TRANSITION_HEADING_ENUM_END=5,/* | */
}VTOL_TRANSITION_HEADING;
#endif
/** @brief Camera capability flags (Bitmap) */
#ifndef HAVE_ENUM_CAMERA_CAP_FLAGS
#define HAVE_ENUM_CAMERA_CAP_FLAGS
typedefenumCAMERA_CAP_FLAGS
{
CAMERA_CAP_FLAGS_CAPTURE_VIDEO=1,/* Camera is able to record video | */
CAMERA_CAP_FLAGS_CAPTURE_IMAGE=2,/* Camera is able to capture images | */
CAMERA_CAP_FLAGS_HAS_MODES=4,/* Camera has separate Video and Image/Photo modes (MAV_CMD_SET_CAMERA_MODE) | */
CAMERA_CAP_FLAGS_CAN_CAPTURE_IMAGE_IN_VIDEO_MODE=8,/* Camera can capture images while in video mode | */
CAMERA_CAP_FLAGS_CAN_CAPTURE_VIDEO_IN_IMAGE_MODE=16,/* Camera can capture videos while in Photo/Image mode | */
CAMERA_CAP_FLAGS_HAS_IMAGE_SURVEY_MODE=32,/* Camera has image survey mode (MAV_CMD_SET_CAMERA_MODE) | */
CAMERA_CAP_FLAGS_HAS_BASIC_ZOOM=64,/* Camera has basic zoom control (MAV_CMD_SET_CAMERA_ZOOM) | */
CAMERA_CAP_FLAGS_HAS_BASIC_FOCUS=128,/* Camera has basic focus control (MAV_CMD_SET_CAMERA_FOCUS) | */
CAMERA_CAP_FLAGS_HAS_VIDEO_STREAM=256,/* Camera has video streaming capabilities (request VIDEO_STREAM_INFORMATION with MAV_CMD_REQUEST_MESSAGE for video streaming info) | */
CAMERA_CAP_FLAGS_HAS_TRACKING_POINT=512,/* Camera supports tracking of a point on the camera view. | */
CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE=1024,/* Camera supports tracking of a selection rectangle on the camera view. | */
CAMERA_CAP_FLAGS_HAS_TRACKING_GEO_STATUS=2048,/* Camera supports tracking geo status (CAMERA_TRACKING_GEO_STATUS). | */
CAMERA_CAP_FLAGS_ENUM_END=2049,/* | */
}CAMERA_CAP_FLAGS;
#endif
/** @brief Stream status flags (Bitmap) */
#ifndef HAVE_ENUM_VIDEO_STREAM_STATUS_FLAGS
#define HAVE_ENUM_VIDEO_STREAM_STATUS_FLAGS
typedefenumVIDEO_STREAM_STATUS_FLAGS
{
VIDEO_STREAM_STATUS_FLAGS_RUNNING=1,/* Stream is active (running) | */
VIDEO_STREAM_STATUS_FLAGS_THERMAL=2,/* Stream is thermal imaging | */
VIDEO_STREAM_STATUS_FLAGS_ENUM_END=3,/* | */
}VIDEO_STREAM_STATUS_FLAGS;
#endif
/** @brief Video stream types */
#ifndef HAVE_ENUM_VIDEO_STREAM_TYPE
#define HAVE_ENUM_VIDEO_STREAM_TYPE
typedefenumVIDEO_STREAM_TYPE
{
VIDEO_STREAM_TYPE_RTSP=0,/* Stream is RTSP | */
VIDEO_STREAM_TYPE_RTPUDP=1,/* Stream is RTP UDP (URI gives the port number) | */
VIDEO_STREAM_TYPE_TCP_MPEG=2,/* Stream is MPEG on TCP | */
VIDEO_STREAM_TYPE_MPEG_TS_H264=3,/* Stream is h.264 on MPEG TS (URI gives the port number) | */
VIDEO_STREAM_TYPE_ENUM_END=4,/* | */
}VIDEO_STREAM_TYPE;
#endif
/** @brief Camera tracking status flags */
#ifndef HAVE_ENUM_CAMERA_TRACKING_STATUS_FLAGS
#define HAVE_ENUM_CAMERA_TRACKING_STATUS_FLAGS
typedefenumCAMERA_TRACKING_STATUS_FLAGS
{
CAMERA_TRACKING_STATUS_FLAGS_IDLE=0,/* Camera is not tracking | */
CAMERA_TRACKING_STATUS_FLAGS_ACTIVE=1,/* Camera is tracking | */
CAMERA_TRACKING_STATUS_FLAGS_ERROR=2,/* Camera tracking in error state | */
CAMERA_TRACKING_STATUS_FLAGS_ENUM_END=3,/* | */
}CAMERA_TRACKING_STATUS_FLAGS;
#endif
/** @brief Camera tracking modes */
#ifndef HAVE_ENUM_CAMERA_TRACKING_MODE
#define HAVE_ENUM_CAMERA_TRACKING_MODE
typedefenumCAMERA_TRACKING_MODE
{
CAMERA_TRACKING_NONE=0,/* Not tracking | */
CAMERA_TRACKING_POINT=1,/* Target is a point | */
CAMERA_TRACKING_RECTANGLE=2,/* Target is a rectangle | */
CAMERA_TRACKING_MODE_ENUM_END=3,/* | */
}CAMERA_TRACKING_MODE;
#endif
/** @brief Camera tracking target data (shows where tracked target is within image) */
#ifndef HAVE_ENUM_CAMERA_TRACKING_TARGET_DATA
#define HAVE_ENUM_CAMERA_TRACKING_TARGET_DATA
typedefenumCAMERA_TRACKING_TARGET_DATA
{
CAMERA_TRACKING_TARGET_NONE=0,/* No target data | */
CAMERA_TRACKING_TARGET_EMBEDDED=1,/* Target data embedded in image data (proprietary) | */
CAMERA_TRACKING_TARGET_RENDERED=2,/* Target data rendered in image | */
CAMERA_TRACKING_TARGET_IN_STATUS=4,/* Target data within status message (Point or Rectangle) | */
CAMERA_TRACKING_TARGET_DATA_ENUM_END=5,/* | */
}CAMERA_TRACKING_TARGET_DATA;
#endif
/** @brief Zoom types for MAV_CMD_SET_CAMERA_ZOOM */
#ifndef HAVE_ENUM_CAMERA_ZOOM_TYPE
#define HAVE_ENUM_CAMERA_ZOOM_TYPE
typedefenumCAMERA_ZOOM_TYPE
{
ZOOM_TYPE_STEP=0,/* Zoom one step increment (-1 for wide, 1 for tele) | */
ZOOM_TYPE_CONTINUOUS=1,/* Continuous zoom up/down until stopped (-1 for wide, 1 for tele, 0 to stop zooming) | */
ZOOM_TYPE_RANGE=2,/* Zoom value as proportion of full camera range (a value between 0.0 and 100.0) | */
ZOOM_TYPE_FOCAL_LENGTH=3,/* Zoom value/variable focal length in milimetres. Note that there is no message to get the valid zoom range of the camera, so this can type can only be used for cameras where the zoom range is known (implying that this cannot reliably be used in a GCS for an arbitrary camera) | */
CAMERA_ZOOM_TYPE_ENUM_END=4,/* | */
}CAMERA_ZOOM_TYPE;
#endif
/** @brief Focus types for MAV_CMD_SET_CAMERA_FOCUS */
#ifndef HAVE_ENUM_SET_FOCUS_TYPE
#define HAVE_ENUM_SET_FOCUS_TYPE
typedefenumSET_FOCUS_TYPE
{
FOCUS_TYPE_STEP=0,/* Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). | */
FOCUS_TYPE_CONTINUOUS=1,/* Continuous focus up/down until stopped (-1 for focusing in, 1 for focusing out towards infinity, 0 to stop focusing) | */
FOCUS_TYPE_RANGE=2,/* Focus value as proportion of full camera focus range (a value between 0.0 and 100.0) | */
FOCUS_TYPE_METERS=3,/* Focus value in metres. Note that there is no message to get the valid focus range of the camera, so this can type can only be used for cameras where the range is known (implying that this cannot reliably be used in a GCS for an arbitrary camera). | */
SET_FOCUS_TYPE_ENUM_END=4,/* | */
}SET_FOCUS_TYPE;
#endif
/** @brief Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). */
#ifndef HAVE_ENUM_PARAM_ACK
#define HAVE_ENUM_PARAM_ACK
typedefenumPARAM_ACK
{
PARAM_ACK_ACCEPTED=0,/* Parameter value ACCEPTED and SET | */
PARAM_ACK_VALUE_UNSUPPORTED=1,/* Parameter value UNKNOWN/UNSUPPORTED | */
PARAM_ACK_FAILED=2,/* Parameter failed to set | */
PARAM_ACK_IN_PROGRESS=3,/* Parameter value received but not yet set/accepted. A subsequent PARAM_ACK_TRANSACTION or PARAM_EXT_ACK with the final result will follow once operation is completed. This is returned immediately for parameters that take longer to set, indicating taht the the parameter was recieved and does not need to be resent. | */
PARAM_ACK_ENUM_END=4,/* | */
}PARAM_ACK;
#endif
/** @brief Camera Modes. */
#ifndef HAVE_ENUM_CAMERA_MODE
#define HAVE_ENUM_CAMERA_MODE
typedefenumCAMERA_MODE
{
CAMERA_MODE_IMAGE=0,/* Camera is in image/photo capture mode. | */
CAMERA_MODE_VIDEO=1,/* Camera is in video capture mode. | */
CAMERA_MODE_IMAGE_SURVEY=2,/* Camera is in image survey capture mode. It allows for camera controller to do specific settings for surveys. | */
CAMERA_MODE_ENUM_END=3,/* | */
}CAMERA_MODE;
#endif
/** @brief */
#ifndef HAVE_ENUM_MAV_ARM_AUTH_DENIED_REASON
#define HAVE_ENUM_MAV_ARM_AUTH_DENIED_REASON
typedefenumMAV_ARM_AUTH_DENIED_REASON
{
MAV_ARM_AUTH_DENIED_REASON_GENERIC=0,/* Not a specific reason | */
MAV_ARM_AUTH_DENIED_REASON_NONE=1,/* Authorizer will send the error as string to GCS | */
MAV_ARM_AUTH_DENIED_REASON_INVALID_WAYPOINT=2,/* At least one waypoint have a invalid value | */
MAV_ARM_AUTH_DENIED_REASON_TIMEOUT=3,/* Timeout in the authorizer process(in case it depends on network) | */
MAV_ARM_AUTH_DENIED_REASON_AIRSPACE_IN_USE=4,/* Airspace of the mission in use by another vehicle, second result parameter can have the waypoint id that caused it to be denied. | */
MAV_ARM_AUTH_DENIED_REASON_BAD_WEATHER=5,/* Weather is not good to fly | */
MAV_ARM_AUTH_DENIED_REASON_ENUM_END=6,/* | */
}MAV_ARM_AUTH_DENIED_REASON;
#endif
/** @brief RC type */
#ifndef HAVE_ENUM_RC_TYPE
#define HAVE_ENUM_RC_TYPE
typedefenumRC_TYPE
{
RC_TYPE_SPEKTRUM_DSM2=0,/* Spektrum DSM2 | */
RC_TYPE_SPEKTRUM_DSMX=1,/* Spektrum DSMX | */
RC_TYPE_ENUM_END=2,/* | */
}RC_TYPE;
#endif
/** @brief Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. */
#ifndef HAVE_ENUM_POSITION_TARGET_TYPEMASK
#define HAVE_ENUM_POSITION_TARGET_TYPEMASK
typedefenumPOSITION_TARGET_TYPEMASK
{
POSITION_TARGET_TYPEMASK_X_IGNORE=1,/* Ignore position x | */
POSITION_TARGET_TYPEMASK_Y_IGNORE=2,/* Ignore position y | */
POSITION_TARGET_TYPEMASK_Z_IGNORE=4,/* Ignore position z | */
POSITION_TARGET_TYPEMASK_VX_IGNORE=8,/* Ignore velocity x | */
POSITION_TARGET_TYPEMASK_VY_IGNORE=16,/* Ignore velocity y | */
POSITION_TARGET_TYPEMASK_VZ_IGNORE=32,/* Ignore velocity z | */
POSITION_TARGET_TYPEMASK_AX_IGNORE=64,/* Ignore acceleration x | */
POSITION_TARGET_TYPEMASK_AY_IGNORE=128,/* Ignore acceleration y | */
POSITION_TARGET_TYPEMASK_AZ_IGNORE=256,/* Ignore acceleration z | */
POSITION_TARGET_TYPEMASK_FORCE_SET=512,/* Use force instead of acceleration | */
UTM_FLIGHT_STATE_UNKNOWN=1,/* The flight state can't be determined. | */
UTM_FLIGHT_STATE_GROUND=2,/* UAS on ground. | */
UTM_FLIGHT_STATE_AIRBORNE=3,/* UAS airborne. | */
UTM_FLIGHT_STATE_EMERGENCY=16,/* UAS is in an emergency flight state. | */
UTM_FLIGHT_STATE_NOCTRL=32,/* UAS has no active controls. | */
UTM_FLIGHT_STATE_ENUM_END=33,/* | */
}UTM_FLIGHT_STATE;
#endif
/** @brief Flags for the global position report. */
#ifndef HAVE_ENUM_UTM_DATA_AVAIL_FLAGS
#define HAVE_ENUM_UTM_DATA_AVAIL_FLAGS
typedefenumUTM_DATA_AVAIL_FLAGS
{
UTM_DATA_AVAIL_FLAGS_TIME_VALID=1,/* The field time contains valid data. | */
UTM_DATA_AVAIL_FLAGS_UAS_ID_AVAILABLE=2,/* The field uas_id contains valid data. | */
UTM_DATA_AVAIL_FLAGS_POSITION_AVAILABLE=4,/* The fields lat, lon and h_acc contain valid data. | */
UTM_DATA_AVAIL_FLAGS_ALTITUDE_AVAILABLE=8,/* The fields alt and v_acc contain valid data. | */
UTM_DATA_AVAIL_FLAGS_RELATIVE_ALTITUDE_AVAILABLE=16,/* The field relative_alt contains valid data. | */
UTM_DATA_AVAIL_FLAGS_HORIZONTAL_VELO_AVAILABLE=32,/* The fields vx and vy contain valid data. | */
UTM_DATA_AVAIL_FLAGS_VERTICAL_VELO_AVAILABLE=64,/* The field vz contains valid data. | */
UTM_DATA_AVAIL_FLAGS_NEXT_WAYPOINT_AVAILABLE=128,/* The fields next_lat, next_lon and next_alt contain valid data. | */
UTM_DATA_AVAIL_FLAGS_ENUM_END=129,/* | */
}UTM_DATA_AVAIL_FLAGS;
#endif
/** @brief Cellular network radio type */
#ifndef HAVE_ENUM_CELLULAR_NETWORK_RADIO_TYPE
#define HAVE_ENUM_CELLULAR_NETWORK_RADIO_TYPE
typedefenumCELLULAR_NETWORK_RADIO_TYPE
{
CELLULAR_NETWORK_RADIO_TYPE_NONE=0,/* | */
CELLULAR_NETWORK_RADIO_TYPE_GSM=1,/* | */
CELLULAR_NETWORK_RADIO_TYPE_CDMA=2,/* | */
CELLULAR_NETWORK_RADIO_TYPE_WCDMA=3,/* | */
CELLULAR_NETWORK_RADIO_TYPE_LTE=4,/* | */
CELLULAR_NETWORK_RADIO_TYPE_ENUM_END=5,/* | */
}CELLULAR_NETWORK_RADIO_TYPE;
#endif
/** @brief These flags encode the cellular network status */
#ifndef HAVE_ENUM_CELLULAR_STATUS_FLAG
#define HAVE_ENUM_CELLULAR_STATUS_FLAG
typedefenumCELLULAR_STATUS_FLAG
{
CELLULAR_STATUS_FLAG_UNKNOWN=0,/* State unknown or not reportable. | */
CELLULAR_STATUS_FLAG_FAILED=1,/* Modem is unusable | */
CELLULAR_STATUS_FLAG_INITIALIZING=2,/* Modem is being initialized | */
CELLULAR_STATUS_FLAG_LOCKED=3,/* Modem is locked | */
CELLULAR_STATUS_FLAG_DISABLED=4,/* Modem is not enabled and is powered down | */
CELLULAR_STATUS_FLAG_DISABLING=5,/* Modem is currently transitioning to the CELLULAR_STATUS_FLAG_DISABLED state | */
CELLULAR_STATUS_FLAG_ENABLING=6,/* Modem is currently transitioning to the CELLULAR_STATUS_FLAG_ENABLED state | */
CELLULAR_STATUS_FLAG_ENABLED=7,/* Modem is enabled and powered on but not registered with a network provider and not available for data connections | */
CELLULAR_STATUS_FLAG_SEARCHING=8,/* Modem is searching for a network provider to register | */
CELLULAR_STATUS_FLAG_REGISTERED=9,/* Modem is registered with a network provider, and data connections and messaging may be available for use | */
CELLULAR_STATUS_FLAG_DISCONNECTING=10,/* Modem is disconnecting and deactivating the last active packet data bearer. This state will not be entered if more than one packet data bearer is active and one of the active bearers is deactivated | */
CELLULAR_STATUS_FLAG_CONNECTING=11,/* Modem is activating and connecting the first packet data bearer. Subsequent bearer activations when another bearer is already active do not cause this state to be entered | */
CELLULAR_STATUS_FLAG_CONNECTED=12,/* One or more packet data bearers is active and connected | */
CELLULAR_STATUS_FLAG_ENUM_END=13,/* | */
}CELLULAR_STATUS_FLAG;
#endif
/** @brief These flags are used to diagnose the failure state of CELLULAR_STATUS */
#ifndef HAVE_ENUM_CELLULAR_NETWORK_FAILED_REASON
#define HAVE_ENUM_CELLULAR_NETWORK_FAILED_REASON
typedefenumCELLULAR_NETWORK_FAILED_REASON
{
CELLULAR_NETWORK_FAILED_REASON_NONE=0,/* No error | */
CELLULAR_NETWORK_FAILED_REASON_UNKNOWN=1,/* Error state is unknown | */
CELLULAR_NETWORK_FAILED_REASON_SIM_MISSING=2,/* SIM is required for the modem but missing | */
CELLULAR_NETWORK_FAILED_REASON_SIM_ERROR=3,/* SIM is available, but not usuable for connection | */
CELLULAR_NETWORK_FAILED_REASON_ENUM_END=4,/* | */
}CELLULAR_NETWORK_FAILED_REASON;
#endif
/** @brief Precision land modes (used in MAV_CMD_NAV_LAND). */
#ifndef HAVE_ENUM_PRECISION_LAND_MODE
#define HAVE_ENUM_PRECISION_LAND_MODE
typedefenumPRECISION_LAND_MODE
{
PRECISION_LAND_MODE_DISABLED=0,/* Normal (non-precision) landing. | */
PRECISION_LAND_MODE_OPPORTUNISTIC=1,/* Use precision landing if beacon detected when land command accepted, otherwise land normally. | */
PRECISION_LAND_MODE_REQUIRED=2,/* Use precision landing, searching for beacon if not found when land command accepted (land normally if beacon cannot be found). | */
PRECISION_LAND_MODE_ENUM_END=3,/* | */
}PRECISION_LAND_MODE;
#endif
/** @brief Parachute actions. Trigger release and enable/disable auto-release. */
#ifndef HAVE_ENUM_PARACHUTE_ACTION
#define HAVE_ENUM_PARACHUTE_ACTION
typedefenumPARACHUTE_ACTION
{
PARACHUTE_DISABLE=0,/* Disable auto-release of parachute (i.e. release triggered by crash detectors). | */
PARACHUTE_ENABLE=1,/* Enable auto-release of parachute. | */
PARACHUTE_RELEASE=2,/* Release parachute and kill motors. | */
PARACHUTE_ACTION_ENUM_END=3,/* | */
}PARACHUTE_ACTION;
#endif
/** @brief */
#ifndef HAVE_ENUM_MAV_TUNNEL_PAYLOAD_TYPE
#define HAVE_ENUM_MAV_TUNNEL_PAYLOAD_TYPE
typedefenumMAV_TUNNEL_PAYLOAD_TYPE
{
MAV_TUNNEL_PAYLOAD_TYPE_UNKNOWN=0,/* Encoding of payload unknown. | */
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED0=200,/* Registered for STorM32 gimbal controller. | */
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED1=201,/* Registered for STorM32 gimbal controller. | */
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED2=202,/* Registered for STorM32 gimbal controller. | */
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED3=203,/* Registered for STorM32 gimbal controller. | */
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED4=204,/* Registered for STorM32 gimbal controller. | */
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED5=205,/* Registered for STorM32 gimbal controller. | */
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED6=206,/* Registered for STorM32 gimbal controller. | */
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED7=207,/* Registered for STorM32 gimbal controller. | */
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED8=208,/* Registered for STorM32 gimbal controller. | */
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED9=209,/* Registered for STorM32 gimbal controller. | */
MAV_TUNNEL_PAYLOAD_TYPE_ENUM_END=210,/* | */
}MAV_TUNNEL_PAYLOAD_TYPE;
#endif
/** @brief */
#ifndef HAVE_ENUM_MAV_ODID_ID_TYPE
#define HAVE_ENUM_MAV_ODID_ID_TYPE
typedefenumMAV_ODID_ID_TYPE
{
MAV_ODID_ID_TYPE_NONE=0,/* No type defined. | */
MAV_ODID_ID_TYPE_SERIAL_NUMBER=1,/* Manufacturer Serial Number (ANSI/CTA-2063 format). | */
/** @brief Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html */
#ifndef HAVE_ENUM_AIS_NAV_STATUS
#define HAVE_ENUM_AIS_NAV_STATUS
typedefenumAIS_NAV_STATUS
{
UNDER_WAY=0,/* Under way using engine. | */
AIS_NAV_ANCHORED=1,/* | */
AIS_NAV_UN_COMMANDED=2,/* | */
AIS_NAV_RESTRICTED_MANOEUVERABILITY=3,/* | */
AIS_NAV_DRAUGHT_CONSTRAINED=4,/* | */
AIS_NAV_MOORED=5,/* | */
AIS_NAV_AGROUND=6,/* | */
AIS_NAV_FISHING=7,/* | */
AIS_NAV_SAILING=8,/* | */
AIS_NAV_RESERVED_HSC=9,/* | */
AIS_NAV_RESERVED_WIG=10,/* | */
AIS_NAV_RESERVED_1=11,/* | */
AIS_NAV_RESERVED_2=12,/* | */
AIS_NAV_RESERVED_3=13,/* | */
AIS_NAV_AIS_SART=14,/* Search And Rescue Transponder. | */
AIS_NAV_UNKNOWN=15,/* Not available (default). | */
AIS_NAV_STATUS_ENUM_END=16,/* | */
}AIS_NAV_STATUS;
#endif
/** @brief These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. */
#ifndef HAVE_ENUM_AIS_FLAGS
#define HAVE_ENUM_AIS_FLAGS
typedefenumAIS_FLAGS
{
AIS_FLAGS_POSITION_ACCURACY=1,/* 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. | */
AIS_FLAGS_VALID_COG=2,/* | */
AIS_FLAGS_VALID_VELOCITY=4,/* | */
AIS_FLAGS_HIGH_VELOCITY=8,/* 1 = Velocity over 52.5765m/s (102.2 knots) | */
AIS_FLAGS_VALID_TURN_RATE=16,/* | */
AIS_FLAGS_TURN_RATE_SIGN_ONLY=32,/* Only the sign of the returned turn rate value is valid, either greater than 5deg/30s or less than -5deg/30s | */
AIS_FLAGS_VALID_DIMENSIONS=64,/* | */
AIS_FLAGS_LARGE_BOW_DIMENSION=128,/* Distance to bow is larger than 511m | */
AIS_FLAGS_LARGE_STERN_DIMENSION=256,/* Distance to stern is larger than 511m | */
AIS_FLAGS_LARGE_PORT_DIMENSION=512,/* Distance to port side is larger than 63m | */
AIS_FLAGS_LARGE_STARBOARD_DIMENSION=1024,/* Distance to starboard side is larger than 63m | */
AIS_FLAGS_VALID_CALLSIGN=2048,/* | */
AIS_FLAGS_VALID_NAME=4096,/* | */
AIS_FLAGS_ENUM_END=4097,/* | */
}AIS_FLAGS;
#endif
/** @brief List of possible units where failures can be injected. */
#ifndef HAVE_ENUM_FAILURE_UNIT
#define HAVE_ENUM_FAILURE_UNIT
typedefenumFAILURE_UNIT
{
FAILURE_UNIT_SENSOR_GYRO=0,/* | */
FAILURE_UNIT_SENSOR_ACCEL=1,/* | */
FAILURE_UNIT_SENSOR_MAG=2,/* | */
FAILURE_UNIT_SENSOR_BARO=3,/* | */
FAILURE_UNIT_SENSOR_GPS=4,/* | */
FAILURE_UNIT_SENSOR_OPTICAL_FLOW=5,/* | */
FAILURE_UNIT_SENSOR_VIO=6,/* | */
FAILURE_UNIT_SENSOR_DISTANCE_SENSOR=7,/* | */
FAILURE_UNIT_SENSOR_AIRSPEED=8,/* | */
FAILURE_UNIT_SYSTEM_BATTERY=100,/* | */
FAILURE_UNIT_SYSTEM_MOTOR=101,/* | */
FAILURE_UNIT_SYSTEM_SERVO=102,/* | */
FAILURE_UNIT_SYSTEM_AVOIDANCE=103,/* | */
FAILURE_UNIT_SYSTEM_RC_SIGNAL=104,/* | */
FAILURE_UNIT_SYSTEM_MAVLINK_SIGNAL=105,/* | */
FAILURE_UNIT_ENUM_END=106,/* | */
}FAILURE_UNIT;
#endif
/** @brief List of possible failure type to inject. */
#ifndef HAVE_ENUM_FAILURE_TYPE
#define HAVE_ENUM_FAILURE_TYPE
typedefenumFAILURE_TYPE
{
FAILURE_TYPE_OK=0,/* No failure injected, used to reset a previous failure. | */
FAILURE_TYPE_OFF=1,/* Sets unit off, so completely non-responsive. | */
FAILURE_TYPE_STUCK=2,/* Unit is stuck e.g. keeps reporting the same value. | */
FAILURE_TYPE_GARBAGE=3,/* Unit is reporting complete garbage. | */
FAILURE_TYPE_WRONG=4,/* Unit is consistently wrong. | */
FAILURE_TYPE_SLOW=5,/* Unit is slow, so e.g. reporting at slower than expected rate. | */
FAILURE_TYPE_DELAYED=6,/* Data of unit is delayed in time. | */
FAILURE_TYPE_INTERMITTENT=7,/* Unit is sometimes working, sometimes not. | */
FAILURE_TYPE_ENUM_END=8,/* | */
}FAILURE_TYPE;
#endif
/** @brief Winch status flags used in WINCH_STATUS */
#ifndef HAVE_ENUM_MAV_WINCH_STATUS_FLAG
#define HAVE_ENUM_MAV_WINCH_STATUS_FLAG
typedefenumMAV_WINCH_STATUS_FLAG
{
MAV_WINCH_STATUS_HEALTHY=1,/* Winch is healthy | */
MAV_WINCH_STATUS_FULLY_RETRACTED=2,/* Winch thread is fully retracted | */
MAV_WINCH_STATUS_MOVING=4,/* Winch motor is moving | */
MAV_WINCH_STATUS_CLUTCH_ENGAGED=8,/* Winch clutch is engaged allowing motor to move freely | */