2019-03-09 06:12:13 +08:00
/** @file
* @brief MAVLink comm protocol generated from XYK.xml
* @see http://mavlink.org
*/
# pragma once
# ifndef MAVLINK_XYK_H
# define MAVLINK_XYK_H
# ifndef MAVLINK_H
# error Wrong include order: MAVLINK_XYK.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
# undef MAVLINK_THIS_XML_IDX
# define MAVLINK_THIS_XML_IDX 4
# ifdef __cplusplus
extern " C " {
# endif
// MESSAGE LENGTHS AND CRCS
# ifndef MAVLINK_MESSAGE_LENGTHS
# define MAVLINK_MESSAGE_LENGTHS {}
# endif
# ifndef MAVLINK_MESSAGE_CRCS
2019-03-10 09:29:13 +08:00
# define MAVLINK_MESSAGE_CRCS {{30001, 210, 23, 0, 0, 0}, {30002, 99, 21, 0, 0, 0}, {30003, 13, 25, 0, 0, 0}, {30004, 69, 13, 0, 0, 0}, {30005, 93, 15, 0, 0, 0}, {30006, 91, 11, 0, 0, 0}, {30007, 180, 9, 0, 0, 0}, {30010, 74, 2, 0, 0, 0}, {30011, 8, 3, 0, 0, 0}, {30012, 165, 22, 0, 0, 0}, {30013, 138, 5, 0, 0, 0}, {30021, 197, 16, 3, 8, 9}, {30033, 36, 25, 0, 0, 0}, {30034, 146, 3, 0, 0, 0}, {30051, 85, 4, 0, 0, 0}, {30052, 160, 7, 0, 0, 0}, {30054, 128, 44, 0, 0, 0}}
2019-03-09 06:12:13 +08:00
# endif
# include "../protocol.h"
# define MAVLINK_ENABLED_XYK
// ENUM DEFINITIONS
/** @brief */
# ifndef HAVE_ENUM_XYK_GOTOLINE
# define HAVE_ENUM_XYK_GOTOLINE
typedef enum XYK_GOTOLINE
{
XYK_GOTOLINE_line_point1 = 0 , /* line + line1(point 1),with the seted climbing rate | */
XYK_GOTOLINE_loiter_point1 = 1 , /* loiter + line1(point 1),with the seted climbing rate | */
XYK_GOTOLINE_loiter = 2 , /* just loiter ,at the current height | */
XYK_GOTOLINE_ENUM_END = 3 , /* | */
} XYK_GOTOLINE ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_AIRPNT_SWITCH_MOD
# define HAVE_ENUM_XYK_AIRPNT_SWITCH_MOD
typedef enum XYK_AIRPNT_SWITCH_MOD
{
XYK_AIRPNT_SWITCH_MOD_DEFAULT = 0 , /* Normal mode,default | */
XYK_AIRPNT_SWITCH_MOD_LOITER = 1 , /* LOITER | */
XYK_AIRPNT_SWITCH_MOD_AUTOLAND = 2 , /* Automatic LANDING | */
XYK_AIRPNT_SWITCH_MOD_HOVERING = 3 , /* HOVERING | */
XYK_AIRPNT_SWITCH_MOD_DELIVER = 4 , /* DELIVER,NOT Used FOR NOW | */
XYK_AIRPNT_SWITCH_MOD_GOHOME = 5 , /* gohome from this point | */
XYK_AIRPNT_SWITCH_MOD_ENUM_END = 6 , /* | */
} XYK_AIRPNT_SWITCH_MOD ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_AIRPNT_VERTIC_MOD
# define HAVE_ENUM_XYK_AIRPNT_VERTIC_MOD
typedef enum XYK_AIRPNT_VERTIC_MOD
{
XYK_AIRPNT_VERTIC_MOD_DEFAULT = 0 , /* Normal mode,default,climbing with a preset rate | */
XYK_AIRPNT_PRE_LOITER = 1 , /* climbing with LOITER First,then go | */
XYK_AIRPNT_AFTER_LOITER = 2 , /* go first then climbing with loiter | */
XYK_AIRPNT_VERTIC_MOD_ENUM_END = 3 , /* | */
} XYK_AIRPNT_VERTIC_MOD ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_AIRPOINT_ACTION
# define HAVE_ENUM_XYK_AIRPOINT_ACTION
typedef enum XYK_AIRPOINT_ACTION
{
XYK_AIRPOINT_ACTION_0 = 0 , /* tobe defineded | */
XYK_AIRPOINT_ACTION_1 = 1 , /* tobe defineded | */
XYK_AIRPOINT_ACTION_2 = 2 , /* tobe defineded | */
XYK_AIRPOINT_ACTION_3 = 3 , /* tobe defineded | */
XYK_AIRPOINT_ACTION_5 = 4 , /* tobe defineded | */
XYK_AIRPOINT_ACTION_4 = 5 , /* tobe defineded | */
XYK_AIRPOINT_ACTION_ENUM_END = 6 , /* | */
} XYK_AIRPOINT_ACTION ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_AIRPNT_MOD_LOITER
# define HAVE_ENUM_XYK_AIRPNT_MOD_LOITER
typedef enum XYK_AIRPNT_MOD_LOITER
{
XYK_AIRPNT_MOD_LOITER_ALWAYS = 0 , /* LOITER ALWAYS default | */
XYK_AIRPNT_MOD_LOITER_BYTIME = 1 , /* loiter by time | */
XYK_AIRPNT_MOD_LOITER_BYTUNS = 2 , /* loiter by turns | */
XYK_AIRPNT_MOD_LOITER_ENUM_END = 3 , /* | */
} XYK_AIRPNT_MOD_LOITER ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_AIRLINE_TYPE
# define HAVE_ENUM_XYK_AIRLINE_TYPE
typedef enum XYK_AIRLINE_TYPE
{
XYK_AIRLINE_TYPE_ID0 = 0 , /* | */
XYK_AIRLINE_TYPE_ID1 = 1 , /* | */
XYK_AIRLINE_TYPE_ID2 = 2 , /* | */
XYK_AIRLINE_TYPE_ID3 = 3 , /* | */
XYK_AIRLINE_TYPE_ID4 = 4 , /* | */
XYK_AIRLINE_TYPE_ID5 = 5 , /* | */
XYK_AIRLINE_TYPE_ID6 = 6 , /* | */
XYK_AIRLINE_TYPE_ID7 = 7 , /* | */
XYK_AIRLINE_TYPE_ID8 = 8 , /* | */
XYK_AIRLINE_TYPE_ID9 = 9 , /* | */
XYK_AIRLINE_TYPE_ID10 = 10 , /* | */
XYK_AIRLINE_TYPE_ID11 = 11 , /* | */
XYK_AIRLINE_TYPE_ENUM_END = 12 , /* | */
} XYK_AIRLINE_TYPE ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_AIRPNT_MISSION_GRAP_MOD
# define HAVE_ENUM_XYK_AIRPNT_MISSION_GRAP_MOD
typedef enum XYK_AIRPNT_MISSION_GRAP_MOD
{
XYK_AIRPNT_MISSION_GRAP_TIME = 0 , /* DELTA TIME | */
XYK_AIRPNT_MISSION_GRAP_DIS = 1 , /* DELTA DISTANCE | */
XYK_AIRPNT_MISSION_GRAP_MOD_ENUM_END = 2 , /* | */
} XYK_AIRPNT_MISSION_GRAP_MOD ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_COMMAND_ID
# define HAVE_ENUM_XYK_COMMAND_ID
typedef enum XYK_COMMAND_ID
{
XYK_CMD_CRUISE = 0 , /* Takeoff from ground ,auto / manual |Empty| Empty| Empty| Empty | Empty| Empty| Empty| */
XYK_CMD_LANDING = 1 , /* Land using VTOL mode |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
XYK_CMD_SHUTDWON = 2 , /* Terminate flight immediately |state| Empty| Empty| Empty| Empty| Empty| Empty| */
XYK_CMD_HOMING = 3 , /* return home . |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
XYK_CMD_CIRCLE = 4 , /* circle at current location or specified location |rotation| style| TT| radius| Latitude| Longitude| Altitude| */
XYK_CMD_HOVER = 5 , /* | */
XYK_CMD_UPTO_30M = 6 , /* current altitude+30m.keeping until next piont |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
XYK_CMD_DWNTO_30M = 7 , /* current altitude-30m.keeping until next piont |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
XYK_CMD_SETSPD = 8 , /* Change speed and/or throttle set points. |Speed| Empty| Empty| Empty| Empty| Empty| Empty| */
XYK_CMD_SET_DELTH = 9 , /* Change altitude by adding delta h.keeping until next piont |delta_h in meters| Empty| Empty| Empty| Empty| Empty| Empty| */
XYK_CMD_SET_DTHPSTV = 10 , /* Change current throtle keeping until next piont ,no use for now |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
XYK_CMD_SET_DTHNGTV = 11 , /* Change current throtle keeping until next piont ,no use for now |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
XYK_CMD_GOTO_POINT = 12 , /* go to specified airpoint. |point_id| line_id| Empty| Empty| Empty| Empty| Empty| */
XYK_CMD_CHANGE_NAV = 13 , /* | */
XYK_CMD_SENDAS_BACKPNT = 14 , /* Set the specified point as backing home point. |Empty| Empty| Empty| via_point| Latitude| Longitude| altitude| */
XYK_CMD_SENDAS_LANDING = 15 , /* Set the specified point as landing point. |Empty| Empty| Empty| Empty| Latitude| Longitude| altitude| */
XYK_CMD_EMGC_LANDING = 16 , /* | */
XYK_CMD_FORCED_GYRO = 17 , /* change the mode as gyro mode,dangerous,tobe discussted |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
XYK_CMD_FOLLOW = 18 , /* Vehicle following, i.e. this waypoint represents the position of a moving vehicle |Following logic to use (e.g. loitering or sinusoidal following) - depends on specific autopilot implementation| Ground speed of vehicle to be followed| Radius around waypoint, in meters. If positive loiter clockwise, else counter-clockwise| Desired yaw angle.| Latitude| Longitude| Altitude| */
XYK_COMMAND_ID_ENUM_END = 19 , /* | */
} XYK_COMMAND_ID ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_PARAM_GROUP_ID
# define HAVE_ENUM_XYK_PARAM_GROUP_ID
typedef enum XYK_PARAM_GROUP_ID
{
XYK_PRESET_PARAM_ID1 = 1 , /* G Matt:is this ok if I want the 1th enum element points to the struct XYK_PRESET_PARAM??? | */
XYK_LIMIT_PARAM_ID2 = 2 , /* grouping parameers of XYK_LIMIT_PARAM,called by _REQ | */
XYK_PROTECTION_PARAM_ID3 = 3 , /* grouping parameers of XYK_PROTECTION_PARAM,called by _REQ | */
XYK_PARAM_GROUP_ID_ENUM_END = 4 , /* | */
} XYK_PARAM_GROUP_ID ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_GRD_TEST
# define HAVE_ENUM_XYK_GRD_TEST
typedef enum XYK_GRD_TEST
{
2019-03-09 18:16:52 +08:00
XYK_auto = 0 , /* | */
XYK_manual = 1 , /* | */
2019-03-09 06:12:13 +08:00
XYK_GRD_TEST_ENUM_END = 2 , /* | */
} XYK_GRD_TEST ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_MOTOR_ID
# define HAVE_ENUM_XYK_MOTOR_ID
typedef enum XYK_MOTOR_ID
{
XYK_MOTOR_FL = 1 , /* | */
XYK_MOTOR_FR = 2 , /* | */
XYK_MOTOR_BR = 3 , /* | */
XYK_MOTOR_BL = 4 , /* | */
XYK_MOTOR_ID_ENUM_END = 5 , /* | */
} XYK_MOTOR_ID ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_SEVO_ID
# define HAVE_ENUM_XYK_SEVO_ID
typedef enum XYK_SEVO_ID
{
XYK_CS_AIL = 5 , /* | */
XYK_CS_ELE = 6 , /* | */
XYK_CS_RUD = 7 , /* | */
XYK_SEVO_ID_ENUM_END = 8 , /* | */
} XYK_SEVO_ID ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_GRD_TEST_CMD_ID
# define HAVE_ENUM_XYK_GRD_TEST_CMD_ID
typedef enum XYK_GRD_TEST_CMD_ID
{
XYK_GOIN_CS_CHECKIN = 1 , /* | */
XYK_GOIN_MOTO_CHECKIN = 2 , /* | */
XYK_COMMAND_GRD_CSCHECK = 3 , /* | */
XYK_COMMAND_GRD_MOTORCHECK = 4 , /* | */
XYK_GRD_TEST_CMD_ID_ENUM_END = 5 , /* | */
} XYK_GRD_TEST_CMD_ID ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_AP_EO_CMD_SWV
# define HAVE_ENUM_XYK_AP_EO_CMD_SWV
typedef enum XYK_AP_EO_CMD_SWV
{
XYK_AP_EO_D1H = 1 , /* EO OK | */
XYK_AP_EO_D2H = 2 , /* | */
XYK_AP_EO_33H = 3 , /* | */
XYK_AP_EO_31H = 4 , /* | */
XYK_AP_EO_87H = 5 , /* + | */
XYK_AP_EO_88H = 6 , /* | */
XYK_AP_EO_4DH = 7 , /* | */
XYK_AP_EO_4EH = 8 , /* | */
XYK_AP_EO_4CH = 9 , /* | */
XYK_AP_EO_73H = 10 , /* | */
XYK_AP_EO_75H = 11 , /* | */
XYK_AP_EO_77H = 12 , /* | */
XYK_AP_EO_79H = 13 , /* | */
XYK_AP_EO_7BH = 14 , /* | */
XYK_AP_EO_7DH = 15 , /* | */
XYK_AP_EO_18H = 16 , /* | */
XYK_AP_EO_22H = 17 , /* | */
XYK_AP_EO_B1H = 18 , /* | */
XYK_AP_EO_C9H = 19 , /* | */
XYK_AP_EO_55H = 20 , /* | */
XYK_AP_EO_ABH = 21 , /* | */
XYK_AP_EO_AAH = 22 , /* | */
XYK_AP_EO_45H = 23 , /* | */
XYK_AP_EO_25H = 24 , /* | */
XYK_AP_EO_60H = 25 , /* | */
XYK_AP_EO_72H = 26 , /* | */
XYK_AP_EO_15H = 27 , /* | */
XYK_AP_EO_19H = 28 , /* | */
XYK_AP_EO_1DH = 29 , /* | */
XYK_AP_EO_1FH = 30 , /* | */
XYK_AP_EO_21H = 31 , /* | */
XYK_AP_EO_23H = 32 , /* | */
XYK_AP_EO_91H = 33 , /* | */
XYK_AP_EO_93H = 34 , /* | */
XYK_AP_EO_94H = 35 , /* | */
XYK_AP_EO_98H = 36 , /* | */
XYK_AP_EO_99H = 37 , /* | */
XYK_AP_EO_27H = 38 , /* | */
XYK_AP_EO_24H = 39 , /* | */
XYK_AP_EO_81H = 40 , /* | */
XYK_AP_EO_89H = 41 , /* | */
XYK_AP_EO_DCH = 42 , /* | */
XYK_AP_EO_8AH = 43 , /* | */
XYK_AP_EO_8BH = 44 , /* | */
XYK_AP_EO_CMD_SWV_ENUM_END = 45 , /* | */
} XYK_AP_EO_CMD_SWV ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_AP_EO_CMD_SQN
# define HAVE_ENUM_XYK_AP_EO_CMD_SQN
typedef enum XYK_AP_EO_CMD_SQN
{
XYK_AP_EO_CMD_SQN_MANUAL = 1 , /* | */
XYK_AP_EO_CMD_SQN_AUTO = 2 , /* | */
XYK_AP_EO_CMD_SQN_FOCUS = 3 , /* | */
XYK_AP_EO_CMD_SQN_DGUIDE = 4 , /* | */
XYK_AP_EO_CMD_SQN_PHOTOGUIDE = 5 , /* | */
XYK_AP_EO_CMD_SQN_SCAN = 6 , /* | */
XYK_AP_EO_CMD_SQN_ENUM_END = 7 , /* | */
} XYK_AP_EO_CMD_SQN ;
# endif
/** @brief */
# ifndef HAVE_ENUM_XYK_AIRPOINT_MISSION_GRAP
# define HAVE_ENUM_XYK_AIRPOINT_MISSION_GRAP
typedef enum XYK_AIRPOINT_MISSION_GRAP
{
XYK_AIRPOINT_MISSION_GRAP_TIME = 1 , /* | */
XYK_AIRPOINT_MISSION_GRAP_DISTENCE = 2 , /* | */
XYK_AIRPOINT_MISSION_GRAP_ENUM_END = 3 , /* | */
} XYK_AIRPOINT_MISSION_GRAP ;
# 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_xyk_frame1_ap_to_gcs.h"
# include "./mavlink_msg_xyk_frame2_ap_to_gcs.h"
# include "./mavlink_msg_xyk_frame3_ap_to_gcs.h"
# include "./mavlink_msg_xyk_frame4_eo_ap_to_gcs.h"
# include "./mavlink_msg_xyk_preset_param.h"
# include "./mavlink_msg_xyk_limit_param.h"
# include "./mavlink_msg_xyk_protection_param.h"
# include "./mavlink_msg_xyk_surface_neutral_set.h"
# include "./mavlink_msg_xyk_param_group_req.h"
# include "./mavlink_msg_xyk_command_ack.h"
# include "./mavlink_msg_xyk_command_long.h"
# include "./mavlink_msg_xyk_command_grd_check.h"
# include "./mavlink_msg_xyk_cmd_rc_channels.h"
# include "./mavlink_msg_xyk_airpoint_command.h"
2019-03-09 18:16:52 +08:00
# include "./mavlink_msg_xyk_airpoint_req.h"
2019-03-09 06:12:13 +08:00
# include "./mavlink_msg_xyk_swv_cmd_ap_eo_transpond.h"
# include "./mavlink_msg_xyk_sqn_cmd_ap_eo_transpond.h"
// base include
# undef MAVLINK_THIS_XML_IDX
# define MAVLINK_THIS_XML_IDX 4
# if MAVLINK_THIS_XML_IDX == MAVLINK_PRIMARY_XML_IDX
2019-03-09 18:16:52 +08:00
# define MAVLINK_MESSAGE_INFO {MAVLINK_MESSAGE_INFO_XYK_FRAME1_AP_TO_GCS, MAVLINK_MESSAGE_INFO_XYK_FRAME2_AP_TO_GCS, MAVLINK_MESSAGE_INFO_XYK_FRAME3_AP_TO_GCS, MAVLINK_MESSAGE_INFO_XYK_PRESET_PARAM, MAVLINK_MESSAGE_INFO_XYK_LIMIT_PARAM, MAVLINK_MESSAGE_INFO_XYK_PROTECTION_PARAM, MAVLINK_MESSAGE_INFO_XYK_SURFACE_NEUTRAL_SET, MAVLINK_MESSAGE_INFO_XYK_PARAM_GROUP_REQ, MAVLINK_MESSAGE_INFO_XYK_COMMAND_ACK, MAVLINK_MESSAGE_INFO_XYK_COMMAND_LONG, MAVLINK_MESSAGE_INFO_XYK_COMMAND_GRD_CHECK, MAVLINK_MESSAGE_INFO_XYK_CMD_RC_CHANNELS, MAVLINK_MESSAGE_INFO_XYK_AIRPOINT_COMMAND, MAVLINK_MESSAGE_INFO_XYK_AIRPOINT_REQ, MAVLINK_MESSAGE_INFO_XYK_SWV_CMD_AP_EO_TRANSPOND, MAVLINK_MESSAGE_INFO_XYK_SQN_CMD_AP_EO_TRANSPOND, MAVLINK_MESSAGE_INFO_XYK_FRAME4_EO_AP_TO_GCS}
# define MAVLINK_MESSAGE_NAMES {{ "XYK_AIRPOINT_COMMAND", 30033 }, { "XYK_AIRPOINT_REQ", 30034 }, { "XYK_CMD_RC_CHANNELS", 30021 }, { "XYK_COMMAND_ACK", 30011 }, { "XYK_COMMAND_GRD_CHECK", 30013 }, { "XYK_COMMAND_LONG", 30012 }, { "XYK_FRAME1_AP_TO_GCS", 30001 }, { "XYK_FRAME2_AP_TO_GCS", 30002 }, { "XYK_FRAME3_AP_TO_GCS", 30003 }, { "XYK_FRAME4_EO_AP_TO_GCS", 30054 }, { "XYK_LIMIT_PARAM", 30005 }, { "XYK_PARAM_GROUP_REQ", 30010 }, { "XYK_PRESET_PARAM", 30004 }, { "XYK_PROTECTION_PARAM", 30006 }, { "XYK_SQN_CMD_AP_EO_TRANSPOND", 30052 }, { "XYK_SURFACE_NEUTRAL_SET", 30007 }, { "XYK_SWV_CMD_AP_EO_TRANSPOND", 30051 }}
2019-03-09 06:12:13 +08:00
# if MAVLINK_COMMAND_24BIT
# include ".. / mavlink_get_info.h"
# endif
# endif
# ifdef __cplusplus
}
# endif // __cplusplus
# endif // MAVLINK_XYK_H