350 lines
30 KiB
C
350 lines
30 KiB
C
/** @file
|
|
* @brief MAVLink comm protocol generated from minimal.xml
|
|
* @see http://mavlink.org
|
|
*/
|
|
#pragma once
|
|
#ifndef MAVLINK_MINIMAL_H
|
|
#define MAVLINK_MINIMAL_H
|
|
|
|
#ifndef MAVLINK_H
|
|
#error Wrong include order: MAVLINK_MINIMAL.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.
|
|
#endif
|
|
|
|
#define MAVLINK_MINIMAL_XML_HASH -7515409103726116647
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// MESSAGE LENGTHS AND CRCS
|
|
|
|
#ifndef MAVLINK_MESSAGE_LENGTHS
|
|
#define MAVLINK_MESSAGE_LENGTHS {}
|
|
#endif
|
|
|
|
#ifndef MAVLINK_MESSAGE_CRCS
|
|
#define MAVLINK_MESSAGE_CRCS {{0, 50, 9, 9, 0, 0, 0}, {300, 217, 22, 22, 0, 0, 0}}
|
|
#endif
|
|
|
|
#include "../protocol.h"
|
|
|
|
#define MAVLINK_ENABLED_MINIMAL
|
|
|
|
// ENUM DEFINITIONS
|
|
|
|
|
|
/** @brief Micro air vehicle / autopilot classes. This identifies the individual model. */
|
|
#ifndef HAVE_ENUM_MAV_AUTOPILOT
|
|
#define HAVE_ENUM_MAV_AUTOPILOT
|
|
typedef enum MAV_AUTOPILOT
|
|
{
|
|
MAV_AUTOPILOT_GENERIC=0, /* Generic autopilot, full support for everything | */
|
|
MAV_AUTOPILOT_RESERVED=1, /* Reserved for future use. | */
|
|
MAV_AUTOPILOT_SLUGS=2, /* SLUGS autopilot, http://slugsuav.soe.ucsc.edu | */
|
|
MAV_AUTOPILOT_ARDUPILOTMEGA=3, /* ArduPilot - Plane/Copter/Rover/Sub/Tracker, https://ardupilot.org | */
|
|
MAV_AUTOPILOT_OPENPILOT=4, /* OpenPilot, http://openpilot.org | */
|
|
MAV_AUTOPILOT_GENERIC_WAYPOINTS_ONLY=5, /* Generic autopilot only supporting simple waypoints | */
|
|
MAV_AUTOPILOT_GENERIC_WAYPOINTS_AND_SIMPLE_NAVIGATION_ONLY=6, /* Generic autopilot supporting waypoints and other simple navigation commands | */
|
|
MAV_AUTOPILOT_GENERIC_MISSION_FULL=7, /* Generic autopilot supporting the full mission command set | */
|
|
MAV_AUTOPILOT_INVALID=8, /* No valid autopilot, e.g. a GCS or other MAVLink component | */
|
|
MAV_AUTOPILOT_PPZ=9, /* PPZ UAV - http://nongnu.org/paparazzi | */
|
|
MAV_AUTOPILOT_UDB=10, /* UAV Dev Board | */
|
|
MAV_AUTOPILOT_FP=11, /* FlexiPilot | */
|
|
MAV_AUTOPILOT_PX4=12, /* PX4 Autopilot - http://px4.io/ | */
|
|
MAV_AUTOPILOT_SMACCMPILOT=13, /* SMACCMPilot - http://smaccmpilot.org | */
|
|
MAV_AUTOPILOT_AUTOQUAD=14, /* AutoQuad -- http://autoquad.org | */
|
|
MAV_AUTOPILOT_ARMAZILA=15, /* Armazila -- http://armazila.com | */
|
|
MAV_AUTOPILOT_AEROB=16, /* Aerob -- http://aerob.ru | */
|
|
MAV_AUTOPILOT_ASLUAV=17, /* ASLUAV autopilot -- http://www.asl.ethz.ch | */
|
|
MAV_AUTOPILOT_SMARTAP=18, /* SmartAP Autopilot - http://sky-drones.com | */
|
|
MAV_AUTOPILOT_AIRRAILS=19, /* AirRails - http://uaventure.com | */
|
|
MAV_AUTOPILOT_REFLEX=20, /* Fusion Reflex - https://fusion.engineering | */
|
|
MAV_AUTOPILOT_ENUM_END=21, /* | */
|
|
} MAV_AUTOPILOT;
|
|
#endif
|
|
|
|
/** @brief MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). */
|
|
#ifndef HAVE_ENUM_MAV_TYPE
|
|
#define HAVE_ENUM_MAV_TYPE
|
|
typedef enum MAV_TYPE
|
|
{
|
|
MAV_TYPE_GENERIC=0, /* Generic micro air vehicle | */
|
|
MAV_TYPE_FIXED_WING=1, /* Fixed wing aircraft. | */
|
|
MAV_TYPE_QUADROTOR=2, /* Quadrotor | */
|
|
MAV_TYPE_COAXIAL=3, /* Coaxial helicopter | */
|
|
MAV_TYPE_HELICOPTER=4, /* Normal helicopter with tail rotor. | */
|
|
MAV_TYPE_ANTENNA_TRACKER=5, /* Ground installation | */
|
|
MAV_TYPE_GCS=6, /* Operator control unit / ground control station | */
|
|
MAV_TYPE_AIRSHIP=7, /* Airship, controlled | */
|
|
MAV_TYPE_FREE_BALLOON=8, /* Free balloon, uncontrolled | */
|
|
MAV_TYPE_ROCKET=9, /* Rocket | */
|
|
MAV_TYPE_GROUND_ROVER=10, /* Ground rover | */
|
|
MAV_TYPE_SURFACE_BOAT=11, /* Surface vessel, boat, ship | */
|
|
MAV_TYPE_SUBMARINE=12, /* Submarine | */
|
|
MAV_TYPE_HEXAROTOR=13, /* Hexarotor | */
|
|
MAV_TYPE_OCTOROTOR=14, /* Octorotor | */
|
|
MAV_TYPE_TRICOPTER=15, /* Tricopter | */
|
|
MAV_TYPE_FLAPPING_WING=16, /* Flapping wing | */
|
|
MAV_TYPE_KITE=17, /* Kite | */
|
|
MAV_TYPE_ONBOARD_CONTROLLER=18, /* Onboard companion controller | */
|
|
MAV_TYPE_VTOL_TAILSITTER_DUOROTOR=19, /* Two-rotor Tailsitter VTOL that additionally uses control surfaces in vertical operation. Note, value previously named MAV_TYPE_VTOL_DUOROTOR. | */
|
|
MAV_TYPE_VTOL_TAILSITTER_QUADROTOR=20, /* Quad-rotor Tailsitter VTOL using a V-shaped quad config in vertical operation. Note: value previously named MAV_TYPE_VTOL_QUADROTOR. | */
|
|
MAV_TYPE_VTOL_TILTROTOR=21, /* Tiltrotor VTOL. Fuselage and wings stay (nominally) horizontal in all flight phases. It able to tilt (some) rotors to provide thrust in cruise flight. | */
|
|
MAV_TYPE_VTOL_FIXEDROTOR=22, /* VTOL with separate fixed rotors for hover and cruise flight. Fuselage and wings stay (nominally) horizontal in all flight phases. | */
|
|
MAV_TYPE_VTOL_TAILSITTER=23, /* Tailsitter VTOL. Fuselage and wings orientation changes depending on flight phase: vertical for hover, horizontal for cruise. Use more specific VTOL MAV_TYPE_VTOL_TAILSITTER_DUOROTOR or MAV_TYPE_VTOL_TAILSITTER_QUADROTOR if appropriate. | */
|
|
MAV_TYPE_VTOL_TILTWING=24, /* Tiltwing VTOL. Fuselage stays horizontal in all flight phases. The whole wing, along with any attached engine, can tilt between vertical and horizontal mode. | */
|
|
MAV_TYPE_VTOL_RESERVED5=25, /* VTOL reserved 5 | */
|
|
MAV_TYPE_GIMBAL=26, /* Gimbal | */
|
|
MAV_TYPE_ADSB=27, /* ADSB system | */
|
|
MAV_TYPE_PARAFOIL=28, /* Steerable, nonrigid airfoil | */
|
|
MAV_TYPE_DODECAROTOR=29, /* Dodecarotor | */
|
|
MAV_TYPE_CAMERA=30, /* Camera | */
|
|
MAV_TYPE_CHARGING_STATION=31, /* Charging station | */
|
|
MAV_TYPE_FLARM=32, /* FLARM collision avoidance system | */
|
|
MAV_TYPE_SERVO=33, /* Servo | */
|
|
MAV_TYPE_ODID=34, /* Open Drone ID. See https://mavlink.io/en/services/opendroneid.html. | */
|
|
MAV_TYPE_DECAROTOR=35, /* Decarotor | */
|
|
MAV_TYPE_BATTERY=36, /* Battery | */
|
|
MAV_TYPE_PARACHUTE=37, /* Parachute | */
|
|
MAV_TYPE_LOG=38, /* Log | */
|
|
MAV_TYPE_OSD=39, /* OSD | */
|
|
MAV_TYPE_IMU=40, /* IMU | */
|
|
MAV_TYPE_GPS=41, /* GPS | */
|
|
MAV_TYPE_WINCH=42, /* Winch | */
|
|
MAV_TYPE_GENERIC_MULTIROTOR=43, /* Generic multirotor that does not fit into a specific type or whose type is unknown | */
|
|
MAV_TYPE_ILLUMINATOR=44, /* Illuminator. An illuminator is a light source that is used for lighting up dark areas external to the sytstem: e.g. a torch or searchlight (as opposed to a light source for illuminating the system itself, e.g. an indicator light). | */
|
|
MAV_TYPE_ENUM_END=45, /* | */
|
|
} MAV_TYPE;
|
|
#endif
|
|
|
|
/** @brief These flags encode the MAV mode. */
|
|
#ifndef HAVE_ENUM_MAV_MODE_FLAG
|
|
#define HAVE_ENUM_MAV_MODE_FLAG
|
|
typedef enum MAV_MODE_FLAG
|
|
{
|
|
MAV_MODE_FLAG_CUSTOM_MODE_ENABLED=1, /* 0b00000001 Reserved for future use. | */
|
|
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. | */
|
|
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. | */
|
|
MAV_MODE_FLAG_GUIDED_ENABLED=8, /* 0b00001000 guided mode enabled, system flies waypoints / mission items. | */
|
|
MAV_MODE_FLAG_STABILIZE_ENABLED=16, /* 0b00010000 system stabilizes electronically its attitude (and optionally position). It needs however further control inputs to move around. | */
|
|
MAV_MODE_FLAG_HIL_ENABLED=32, /* 0b00100000 hardware in the loop simulation. All motors / actuators are blocked, but internal software is full operational. | */
|
|
MAV_MODE_FLAG_MANUAL_INPUT_ENABLED=64, /* 0b01000000 remote control input is enabled. | */
|
|
MAV_MODE_FLAG_SAFETY_ARMED=128, /* 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. | */
|
|
MAV_MODE_FLAG_ENUM_END=129, /* | */
|
|
} MAV_MODE_FLAG;
|
|
#endif
|
|
|
|
/** @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. */
|
|
#ifndef HAVE_ENUM_MAV_MODE_FLAG_DECODE_POSITION
|
|
#define HAVE_ENUM_MAV_MODE_FLAG_DECODE_POSITION
|
|
typedef enum MAV_MODE_FLAG_DECODE_POSITION
|
|
{
|
|
MAV_MODE_FLAG_DECODE_POSITION_CUSTOM_MODE=1, /* Eighth bit: 00000001 | */
|
|
MAV_MODE_FLAG_DECODE_POSITION_TEST=2, /* Seventh bit: 00000010 | */
|
|
MAV_MODE_FLAG_DECODE_POSITION_AUTO=4, /* Sixth bit: 00000100 | */
|
|
MAV_MODE_FLAG_DECODE_POSITION_GUIDED=8, /* Fifth bit: 00001000 | */
|
|
MAV_MODE_FLAG_DECODE_POSITION_STABILIZE=16, /* Fourth bit: 00010000 | */
|
|
MAV_MODE_FLAG_DECODE_POSITION_HIL=32, /* Third bit: 00100000 | */
|
|
MAV_MODE_FLAG_DECODE_POSITION_MANUAL=64, /* Second bit: 01000000 | */
|
|
MAV_MODE_FLAG_DECODE_POSITION_SAFETY=128, /* First bit: 10000000 | */
|
|
MAV_MODE_FLAG_DECODE_POSITION_ENUM_END=129, /* | */
|
|
} MAV_MODE_FLAG_DECODE_POSITION;
|
|
#endif
|
|
|
|
/** @brief */
|
|
#ifndef HAVE_ENUM_MAV_STATE
|
|
#define HAVE_ENUM_MAV_STATE
|
|
typedef enum MAV_STATE
|
|
{
|
|
MAV_STATE_UNINIT=0, /* Uninitialized system, state is unknown. | */
|
|
MAV_STATE_BOOT=1, /* System is booting up. | */
|
|
MAV_STATE_CALIBRATING=2, /* System is calibrating and not flight-ready. | */
|
|
MAV_STATE_STANDBY=3, /* System is grounded and on standby. It can be launched any time. | */
|
|
MAV_STATE_ACTIVE=4, /* System is active and might be already airborne. Motors are engaged. | */
|
|
MAV_STATE_CRITICAL=5, /* System is in a non-normal flight mode (failsafe). It can however still navigate. | */
|
|
MAV_STATE_EMERGENCY=6, /* System is in a non-normal flight mode (failsafe). It lost control over parts or over the whole airframe. It is in mayday and going down. | */
|
|
MAV_STATE_POWEROFF=7, /* System just initialized its power-down sequence, will shut down now. | */
|
|
MAV_STATE_FLIGHT_TERMINATION=8, /* System is terminating itself (failsafe or commanded). | */
|
|
MAV_STATE_ENUM_END=9, /* | */
|
|
} MAV_STATE;
|
|
#endif
|
|
|
|
/** @brief Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.).
|
|
Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components.
|
|
When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. */
|
|
#ifndef HAVE_ENUM_MAV_COMPONENT
|
|
#define HAVE_ENUM_MAV_COMPONENT
|
|
typedef enum MAV_COMPONENT
|
|
{
|
|
MAV_COMP_ID_ALL=0, /* Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. | */
|
|
MAV_COMP_ID_AUTOPILOT1=1, /* System flight controller component ("autopilot"). Only one autopilot is expected in a particular system. | */
|
|
MAV_COMP_ID_USER1=25, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER2=26, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER3=27, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER4=28, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER5=29, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER6=30, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER7=31, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER8=32, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER9=33, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER10=34, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER11=35, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER12=36, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER13=37, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER14=38, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER15=39, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER16=40, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER17=41, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER18=42, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER19=43, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER20=44, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER21=45, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER22=46, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER23=47, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER24=48, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER25=49, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER26=50, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER27=51, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER28=52, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER29=53, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER30=54, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER31=55, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER32=56, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER33=57, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER34=58, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER35=59, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER36=60, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER37=61, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER38=62, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER39=63, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER40=64, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER41=65, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER42=66, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER43=67, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_TELEMETRY_RADIO=68, /* Telemetry radio (e.g. SiK radio, or other component that emits RADIO_STATUS messages). | */
|
|
MAV_COMP_ID_USER45=69, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER46=70, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER47=71, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER48=72, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER49=73, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER50=74, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER51=75, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER52=76, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER53=77, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER54=78, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER55=79, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER56=80, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER57=81, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER58=82, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER59=83, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER60=84, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER61=85, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER62=86, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER63=87, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER64=88, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER65=89, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER66=90, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER67=91, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER68=92, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER69=93, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER70=94, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER71=95, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER72=96, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER73=97, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER74=98, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_USER75=99, /* Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network. | */
|
|
MAV_COMP_ID_CAMERA=100, /* Camera #1. | */
|
|
MAV_COMP_ID_CAMERA2=101, /* Camera #2. | */
|
|
MAV_COMP_ID_CAMERA3=102, /* Camera #3. | */
|
|
MAV_COMP_ID_CAMERA4=103, /* Camera #4. | */
|
|
MAV_COMP_ID_CAMERA5=104, /* Camera #5. | */
|
|
MAV_COMP_ID_CAMERA6=105, /* Camera #6. | */
|
|
MAV_COMP_ID_SERVO1=140, /* Servo #1. | */
|
|
MAV_COMP_ID_SERVO2=141, /* Servo #2. | */
|
|
MAV_COMP_ID_SERVO3=142, /* Servo #3. | */
|
|
MAV_COMP_ID_SERVO4=143, /* Servo #4. | */
|
|
MAV_COMP_ID_SERVO5=144, /* Servo #5. | */
|
|
MAV_COMP_ID_SERVO6=145, /* Servo #6. | */
|
|
MAV_COMP_ID_SERVO7=146, /* Servo #7. | */
|
|
MAV_COMP_ID_SERVO8=147, /* Servo #8. | */
|
|
MAV_COMP_ID_SERVO9=148, /* Servo #9. | */
|
|
MAV_COMP_ID_SERVO10=149, /* Servo #10. | */
|
|
MAV_COMP_ID_SERVO11=150, /* Servo #11. | */
|
|
MAV_COMP_ID_SERVO12=151, /* Servo #12. | */
|
|
MAV_COMP_ID_SERVO13=152, /* Servo #13. | */
|
|
MAV_COMP_ID_SERVO14=153, /* Servo #14. | */
|
|
MAV_COMP_ID_GIMBAL=154, /* Gimbal #1. | */
|
|
MAV_COMP_ID_LOG=155, /* Logging component. | */
|
|
MAV_COMP_ID_ADSB=156, /* Automatic Dependent Surveillance-Broadcast (ADS-B) component. | */
|
|
MAV_COMP_ID_OSD=157, /* On Screen Display (OSD) devices for video links. | */
|
|
MAV_COMP_ID_PERIPHERAL=158, /* Generic autopilot peripheral component ID. Meant for devices that do not implement the parameter microservice. | */
|
|
MAV_COMP_ID_QX1_GIMBAL=159, /* Gimbal ID for QX1. | */
|
|
MAV_COMP_ID_FLARM=160, /* FLARM collision alert component. | */
|
|
MAV_COMP_ID_PARACHUTE=161, /* Parachute component. | */
|
|
MAV_COMP_ID_WINCH=169, /* Winch component. | */
|
|
MAV_COMP_ID_GIMBAL2=171, /* Gimbal #2. | */
|
|
MAV_COMP_ID_GIMBAL3=172, /* Gimbal #3. | */
|
|
MAV_COMP_ID_GIMBAL4=173, /* Gimbal #4 | */
|
|
MAV_COMP_ID_GIMBAL5=174, /* Gimbal #5. | */
|
|
MAV_COMP_ID_GIMBAL6=175, /* Gimbal #6. | */
|
|
MAV_COMP_ID_BATTERY=180, /* Battery #1. | */
|
|
MAV_COMP_ID_BATTERY2=181, /* Battery #2. | */
|
|
MAV_COMP_ID_MAVCAN=189, /* CAN over MAVLink client. | */
|
|
MAV_COMP_ID_MISSIONPLANNER=190, /* Component that can generate/supply a mission flight plan (e.g. GCS or developer API). | */
|
|
MAV_COMP_ID_ONBOARD_COMPUTER=191, /* Component that lives on the onboard computer (companion computer) and has some generic functionalities, such as settings system parameters and monitoring the status of some processes that don't directly speak mavlink and so on. | */
|
|
MAV_COMP_ID_ONBOARD_COMPUTER2=192, /* Component that lives on the onboard computer (companion computer) and has some generic functionalities, such as settings system parameters and monitoring the status of some processes that don't directly speak mavlink and so on. | */
|
|
MAV_COMP_ID_ONBOARD_COMPUTER3=193, /* Component that lives on the onboard computer (companion computer) and has some generic functionalities, such as settings system parameters and monitoring the status of some processes that don't directly speak mavlink and so on. | */
|
|
MAV_COMP_ID_ONBOARD_COMPUTER4=194, /* Component that lives on the onboard computer (companion computer) and has some generic functionalities, such as settings system parameters and monitoring the status of some processes that don't directly speak mavlink and so on. | */
|
|
MAV_COMP_ID_PATHPLANNER=195, /* Component that finds an optimal path between points based on a certain constraint (e.g. minimum snap, shortest path, cost, etc.). | */
|
|
MAV_COMP_ID_OBSTACLE_AVOIDANCE=196, /* Component that plans a collision free path between two points. | */
|
|
MAV_COMP_ID_VISUAL_INERTIAL_ODOMETRY=197, /* Component that provides position estimates using VIO techniques. | */
|
|
MAV_COMP_ID_PAIRING_MANAGER=198, /* Component that manages pairing of vehicle and GCS. | */
|
|
MAV_COMP_ID_IMU=200, /* Inertial Measurement Unit (IMU) #1. | */
|
|
MAV_COMP_ID_IMU_2=201, /* Inertial Measurement Unit (IMU) #2. | */
|
|
MAV_COMP_ID_IMU_3=202, /* Inertial Measurement Unit (IMU) #3. | */
|
|
MAV_COMP_ID_GPS=220, /* GPS #1. | */
|
|
MAV_COMP_ID_GPS2=221, /* GPS #2. | */
|
|
MAV_COMP_ID_ODID_TXRX_1=236, /* Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet). | */
|
|
MAV_COMP_ID_ODID_TXRX_2=237, /* Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet). | */
|
|
MAV_COMP_ID_ODID_TXRX_3=238, /* Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet). | */
|
|
MAV_COMP_ID_UDP_BRIDGE=240, /* Component to bridge MAVLink to UDP (i.e. from a UART). | */
|
|
MAV_COMP_ID_UART_BRIDGE=241, /* Component to bridge to UART (i.e. from UDP). | */
|
|
MAV_COMP_ID_TUNNEL_NODE=242, /* Component handling TUNNEL messages (e.g. vendor specific GUI of a component). | */
|
|
MAV_COMP_ID_ILLUMINATOR=243, /* Illuminator | */
|
|
MAV_COMP_ID_SYSTEM_CONTROL=250, /* Deprecated, don't use. Component for handling system messages (e.g. to ARM, takeoff, etc.). | */
|
|
MAV_COMPONENT_ENUM_END=251, /* | */
|
|
} MAV_COMPONENT;
|
|
#endif
|
|
|
|
// MAVLINK VERSION
|
|
|
|
#ifndef MAVLINK_VERSION
|
|
#define MAVLINK_VERSION 3
|
|
#endif
|
|
|
|
#if (MAVLINK_VERSION == 0)
|
|
#undef MAVLINK_VERSION
|
|
#define MAVLINK_VERSION 3
|
|
#endif
|
|
|
|
// MESSAGE DEFINITIONS
|
|
#include "./mavlink_msg_heartbeat.h"
|
|
#include "./mavlink_msg_protocol_version.h"
|
|
|
|
// base include
|
|
|
|
|
|
|
|
#if MAVLINK_MINIMAL_XML_HASH == MAVLINK_PRIMARY_XML_HASH
|
|
# define MAVLINK_MESSAGE_INFO {MAVLINK_MESSAGE_INFO_HEARTBEAT, MAVLINK_MESSAGE_INFO_PROTOCOL_VERSION}
|
|
# define MAVLINK_MESSAGE_NAMES {{ "HEARTBEAT", 0 }, { "PROTOCOL_VERSION", 300 }}
|
|
# if MAVLINK_COMMAND_24BIT
|
|
# include "../mavlink_get_info.h"
|
|
# endif
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif // __cplusplus
|
|
#endif // MAVLINK_MINIMAL_H
|