update XYK
This commit is contained in:
@@ -5,24 +5,24 @@
|
||||
|
||||
MAVPACKED(
|
||||
typedef struct __mavlink_xyk_limit_param_t {
|
||||
uint16_t XYK_LIMIT_MIN_RPM; /*< fixed wing mininum rpm.[0,1000]*/
|
||||
int16_t XYK_LIMIT_HORIZ; /*< horizontal limit along the line 1m,[-1000,1000]*/
|
||||
int16_t XYK_LIMIT_VERTC; /*< vertical limit along the line.1m,[-1000,1000]*/
|
||||
uint16_t XYK_LIMIT_LOST_CONTACT; /*< time that lost connect with gcs.1sec,[0,65535]*/
|
||||
uint16_t XYK_LIMIT_TRANS_HEIGHT; /*< height that transform to fixed wing 1m[0,65535]*/
|
||||
uint16_t XYK_LIMIT_MAX_HEIGHT; /*< height limit,[0,65535]*/
|
||||
uint16_t XYK_LIMIT_MAX_HEIGHT; /*< height limit,1m [0,65535]*/
|
||||
uint8_t XYK_PLANE_ID; /*< plane id.*/
|
||||
uint8_t XYK_LIMIT_TURNBAC_VOLT; /*< turn back voltage.1V [0,256]*/
|
||||
uint8_t XYK_LIMIT_EMGLAND_VOLT; /*< emergence landing voltage,1V*/
|
||||
uint8_t XYK_LIMIT_MIN_RPM; /*< fixed wing mininum rpm.[0,1000]*/
|
||||
uint8_t XYK_LIMIT_HORIZ; /*< horizontal limit along the line 1m,[-1000,1000]*/
|
||||
uint8_t XYK_LIMIT_VERTC; /*< vertical limit along the line.1m,[-1000,1000]*/
|
||||
}) mavlink_xyk_limit_param_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN 12
|
||||
#define MAVLINK_MSG_ID_XYK_LIMIT_PARAM_MIN_LEN 12
|
||||
#define MAVLINK_MSG_ID_30005_LEN 12
|
||||
#define MAVLINK_MSG_ID_30005_MIN_LEN 12
|
||||
#define MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN 15
|
||||
#define MAVLINK_MSG_ID_XYK_LIMIT_PARAM_MIN_LEN 15
|
||||
#define MAVLINK_MSG_ID_30005_LEN 15
|
||||
#define MAVLINK_MSG_ID_30005_MIN_LEN 15
|
||||
|
||||
#define MAVLINK_MSG_ID_XYK_LIMIT_PARAM_CRC 117
|
||||
#define MAVLINK_MSG_ID_30005_CRC 117
|
||||
#define MAVLINK_MSG_ID_XYK_LIMIT_PARAM_CRC 93
|
||||
#define MAVLINK_MSG_ID_30005_CRC 93
|
||||
|
||||
|
||||
|
||||
@@ -31,30 +31,30 @@ typedef struct __mavlink_xyk_limit_param_t {
|
||||
30005, \
|
||||
"XYK_LIMIT_PARAM", \
|
||||
9, \
|
||||
{ { "XYK_PLANE_ID", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_xyk_limit_param_t, XYK_PLANE_ID) }, \
|
||||
{ "XYK_LIMIT_TURNBAC_VOLT", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_TURNBAC_VOLT) }, \
|
||||
{ "XYK_LIMIT_EMGLAND_VOLT", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_EMGLAND_VOLT) }, \
|
||||
{ "XYK_LIMIT_MIN_RPM", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_MIN_RPM) }, \
|
||||
{ "XYK_LIMIT_HORIZ", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_HORIZ) }, \
|
||||
{ "XYK_LIMIT_VERTC", NULL, MAVLINK_TYPE_UINT8_T, 0, 11, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_VERTC) }, \
|
||||
{ "XYK_LIMIT_LOST_CONTACT", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_LOST_CONTACT) }, \
|
||||
{ "XYK_LIMIT_TRANS_HEIGHT", NULL, MAVLINK_TYPE_UINT16_T, 0, 2, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_TRANS_HEIGHT) }, \
|
||||
{ "XYK_LIMIT_MAX_HEIGHT", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_MAX_HEIGHT) }, \
|
||||
{ { "XYK_PLANE_ID", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_xyk_limit_param_t, XYK_PLANE_ID) }, \
|
||||
{ "XYK_LIMIT_TURNBAC_VOLT", NULL, MAVLINK_TYPE_UINT8_T, 0, 13, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_TURNBAC_VOLT) }, \
|
||||
{ "XYK_LIMIT_EMGLAND_VOLT", NULL, MAVLINK_TYPE_UINT8_T, 0, 14, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_EMGLAND_VOLT) }, \
|
||||
{ "XYK_LIMIT_MIN_RPM", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_MIN_RPM) }, \
|
||||
{ "XYK_LIMIT_HORIZ", NULL, MAVLINK_TYPE_INT16_T, 0, 2, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_HORIZ) }, \
|
||||
{ "XYK_LIMIT_VERTC", NULL, MAVLINK_TYPE_INT16_T, 0, 4, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_VERTC) }, \
|
||||
{ "XYK_LIMIT_LOST_CONTACT", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_LOST_CONTACT) }, \
|
||||
{ "XYK_LIMIT_TRANS_HEIGHT", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_TRANS_HEIGHT) }, \
|
||||
{ "XYK_LIMIT_MAX_HEIGHT", NULL, MAVLINK_TYPE_UINT16_T, 0, 10, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_MAX_HEIGHT) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_XYK_LIMIT_PARAM { \
|
||||
"XYK_LIMIT_PARAM", \
|
||||
9, \
|
||||
{ { "XYK_PLANE_ID", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_xyk_limit_param_t, XYK_PLANE_ID) }, \
|
||||
{ "XYK_LIMIT_TURNBAC_VOLT", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_TURNBAC_VOLT) }, \
|
||||
{ "XYK_LIMIT_EMGLAND_VOLT", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_EMGLAND_VOLT) }, \
|
||||
{ "XYK_LIMIT_MIN_RPM", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_MIN_RPM) }, \
|
||||
{ "XYK_LIMIT_HORIZ", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_HORIZ) }, \
|
||||
{ "XYK_LIMIT_VERTC", NULL, MAVLINK_TYPE_UINT8_T, 0, 11, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_VERTC) }, \
|
||||
{ "XYK_LIMIT_LOST_CONTACT", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_LOST_CONTACT) }, \
|
||||
{ "XYK_LIMIT_TRANS_HEIGHT", NULL, MAVLINK_TYPE_UINT16_T, 0, 2, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_TRANS_HEIGHT) }, \
|
||||
{ "XYK_LIMIT_MAX_HEIGHT", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_MAX_HEIGHT) }, \
|
||||
{ { "XYK_PLANE_ID", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_xyk_limit_param_t, XYK_PLANE_ID) }, \
|
||||
{ "XYK_LIMIT_TURNBAC_VOLT", NULL, MAVLINK_TYPE_UINT8_T, 0, 13, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_TURNBAC_VOLT) }, \
|
||||
{ "XYK_LIMIT_EMGLAND_VOLT", NULL, MAVLINK_TYPE_UINT8_T, 0, 14, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_EMGLAND_VOLT) }, \
|
||||
{ "XYK_LIMIT_MIN_RPM", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_MIN_RPM) }, \
|
||||
{ "XYK_LIMIT_HORIZ", NULL, MAVLINK_TYPE_INT16_T, 0, 2, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_HORIZ) }, \
|
||||
{ "XYK_LIMIT_VERTC", NULL, MAVLINK_TYPE_INT16_T, 0, 4, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_VERTC) }, \
|
||||
{ "XYK_LIMIT_LOST_CONTACT", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_LOST_CONTACT) }, \
|
||||
{ "XYK_LIMIT_TRANS_HEIGHT", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_TRANS_HEIGHT) }, \
|
||||
{ "XYK_LIMIT_MAX_HEIGHT", NULL, MAVLINK_TYPE_UINT16_T, 0, 10, offsetof(mavlink_xyk_limit_param_t, XYK_LIMIT_MAX_HEIGHT) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
@@ -73,36 +73,36 @@ typedef struct __mavlink_xyk_limit_param_t {
|
||||
* @param XYK_LIMIT_VERTC vertical limit along the line.1m,[-1000,1000]
|
||||
* @param XYK_LIMIT_LOST_CONTACT time that lost connect with gcs.1sec,[0,65535]
|
||||
* @param XYK_LIMIT_TRANS_HEIGHT height that transform to fixed wing 1m[0,65535]
|
||||
* @param XYK_LIMIT_MAX_HEIGHT height limit,[0,65535]
|
||||
* @param XYK_LIMIT_MAX_HEIGHT height limit,1m [0,65535]
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_xyk_limit_param_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t XYK_PLANE_ID, uint8_t XYK_LIMIT_TURNBAC_VOLT, uint8_t XYK_LIMIT_EMGLAND_VOLT, uint8_t XYK_LIMIT_MIN_RPM, uint8_t XYK_LIMIT_HORIZ, uint8_t XYK_LIMIT_VERTC, uint16_t XYK_LIMIT_LOST_CONTACT, uint16_t XYK_LIMIT_TRANS_HEIGHT, uint16_t XYK_LIMIT_MAX_HEIGHT)
|
||||
uint8_t XYK_PLANE_ID, uint8_t XYK_LIMIT_TURNBAC_VOLT, uint8_t XYK_LIMIT_EMGLAND_VOLT, uint16_t XYK_LIMIT_MIN_RPM, int16_t XYK_LIMIT_HORIZ, int16_t XYK_LIMIT_VERTC, uint16_t XYK_LIMIT_LOST_CONTACT, uint16_t XYK_LIMIT_TRANS_HEIGHT, uint16_t XYK_LIMIT_MAX_HEIGHT)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN];
|
||||
_mav_put_uint16_t(buf, 0, XYK_LIMIT_LOST_CONTACT);
|
||||
_mav_put_uint16_t(buf, 2, XYK_LIMIT_TRANS_HEIGHT);
|
||||
_mav_put_uint16_t(buf, 4, XYK_LIMIT_MAX_HEIGHT);
|
||||
_mav_put_uint8_t(buf, 6, XYK_PLANE_ID);
|
||||
_mav_put_uint8_t(buf, 7, XYK_LIMIT_TURNBAC_VOLT);
|
||||
_mav_put_uint8_t(buf, 8, XYK_LIMIT_EMGLAND_VOLT);
|
||||
_mav_put_uint8_t(buf, 9, XYK_LIMIT_MIN_RPM);
|
||||
_mav_put_uint8_t(buf, 10, XYK_LIMIT_HORIZ);
|
||||
_mav_put_uint8_t(buf, 11, XYK_LIMIT_VERTC);
|
||||
_mav_put_uint16_t(buf, 0, XYK_LIMIT_MIN_RPM);
|
||||
_mav_put_int16_t(buf, 2, XYK_LIMIT_HORIZ);
|
||||
_mav_put_int16_t(buf, 4, XYK_LIMIT_VERTC);
|
||||
_mav_put_uint16_t(buf, 6, XYK_LIMIT_LOST_CONTACT);
|
||||
_mav_put_uint16_t(buf, 8, XYK_LIMIT_TRANS_HEIGHT);
|
||||
_mav_put_uint16_t(buf, 10, XYK_LIMIT_MAX_HEIGHT);
|
||||
_mav_put_uint8_t(buf, 12, XYK_PLANE_ID);
|
||||
_mav_put_uint8_t(buf, 13, XYK_LIMIT_TURNBAC_VOLT);
|
||||
_mav_put_uint8_t(buf, 14, XYK_LIMIT_EMGLAND_VOLT);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN);
|
||||
#else
|
||||
mavlink_xyk_limit_param_t packet;
|
||||
packet.XYK_LIMIT_MIN_RPM = XYK_LIMIT_MIN_RPM;
|
||||
packet.XYK_LIMIT_HORIZ = XYK_LIMIT_HORIZ;
|
||||
packet.XYK_LIMIT_VERTC = XYK_LIMIT_VERTC;
|
||||
packet.XYK_LIMIT_LOST_CONTACT = XYK_LIMIT_LOST_CONTACT;
|
||||
packet.XYK_LIMIT_TRANS_HEIGHT = XYK_LIMIT_TRANS_HEIGHT;
|
||||
packet.XYK_LIMIT_MAX_HEIGHT = XYK_LIMIT_MAX_HEIGHT;
|
||||
packet.XYK_PLANE_ID = XYK_PLANE_ID;
|
||||
packet.XYK_LIMIT_TURNBAC_VOLT = XYK_LIMIT_TURNBAC_VOLT;
|
||||
packet.XYK_LIMIT_EMGLAND_VOLT = XYK_LIMIT_EMGLAND_VOLT;
|
||||
packet.XYK_LIMIT_MIN_RPM = XYK_LIMIT_MIN_RPM;
|
||||
packet.XYK_LIMIT_HORIZ = XYK_LIMIT_HORIZ;
|
||||
packet.XYK_LIMIT_VERTC = XYK_LIMIT_VERTC;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN);
|
||||
#endif
|
||||
@@ -125,37 +125,37 @@ static inline uint16_t mavlink_msg_xyk_limit_param_pack(uint8_t system_id, uint8
|
||||
* @param XYK_LIMIT_VERTC vertical limit along the line.1m,[-1000,1000]
|
||||
* @param XYK_LIMIT_LOST_CONTACT time that lost connect with gcs.1sec,[0,65535]
|
||||
* @param XYK_LIMIT_TRANS_HEIGHT height that transform to fixed wing 1m[0,65535]
|
||||
* @param XYK_LIMIT_MAX_HEIGHT height limit,[0,65535]
|
||||
* @param XYK_LIMIT_MAX_HEIGHT height limit,1m [0,65535]
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_xyk_limit_param_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t XYK_PLANE_ID,uint8_t XYK_LIMIT_TURNBAC_VOLT,uint8_t XYK_LIMIT_EMGLAND_VOLT,uint8_t XYK_LIMIT_MIN_RPM,uint8_t XYK_LIMIT_HORIZ,uint8_t XYK_LIMIT_VERTC,uint16_t XYK_LIMIT_LOST_CONTACT,uint16_t XYK_LIMIT_TRANS_HEIGHT,uint16_t XYK_LIMIT_MAX_HEIGHT)
|
||||
uint8_t XYK_PLANE_ID,uint8_t XYK_LIMIT_TURNBAC_VOLT,uint8_t XYK_LIMIT_EMGLAND_VOLT,uint16_t XYK_LIMIT_MIN_RPM,int16_t XYK_LIMIT_HORIZ,int16_t XYK_LIMIT_VERTC,uint16_t XYK_LIMIT_LOST_CONTACT,uint16_t XYK_LIMIT_TRANS_HEIGHT,uint16_t XYK_LIMIT_MAX_HEIGHT)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN];
|
||||
_mav_put_uint16_t(buf, 0, XYK_LIMIT_LOST_CONTACT);
|
||||
_mav_put_uint16_t(buf, 2, XYK_LIMIT_TRANS_HEIGHT);
|
||||
_mav_put_uint16_t(buf, 4, XYK_LIMIT_MAX_HEIGHT);
|
||||
_mav_put_uint8_t(buf, 6, XYK_PLANE_ID);
|
||||
_mav_put_uint8_t(buf, 7, XYK_LIMIT_TURNBAC_VOLT);
|
||||
_mav_put_uint8_t(buf, 8, XYK_LIMIT_EMGLAND_VOLT);
|
||||
_mav_put_uint8_t(buf, 9, XYK_LIMIT_MIN_RPM);
|
||||
_mav_put_uint8_t(buf, 10, XYK_LIMIT_HORIZ);
|
||||
_mav_put_uint8_t(buf, 11, XYK_LIMIT_VERTC);
|
||||
_mav_put_uint16_t(buf, 0, XYK_LIMIT_MIN_RPM);
|
||||
_mav_put_int16_t(buf, 2, XYK_LIMIT_HORIZ);
|
||||
_mav_put_int16_t(buf, 4, XYK_LIMIT_VERTC);
|
||||
_mav_put_uint16_t(buf, 6, XYK_LIMIT_LOST_CONTACT);
|
||||
_mav_put_uint16_t(buf, 8, XYK_LIMIT_TRANS_HEIGHT);
|
||||
_mav_put_uint16_t(buf, 10, XYK_LIMIT_MAX_HEIGHT);
|
||||
_mav_put_uint8_t(buf, 12, XYK_PLANE_ID);
|
||||
_mav_put_uint8_t(buf, 13, XYK_LIMIT_TURNBAC_VOLT);
|
||||
_mav_put_uint8_t(buf, 14, XYK_LIMIT_EMGLAND_VOLT);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN);
|
||||
#else
|
||||
mavlink_xyk_limit_param_t packet;
|
||||
packet.XYK_LIMIT_MIN_RPM = XYK_LIMIT_MIN_RPM;
|
||||
packet.XYK_LIMIT_HORIZ = XYK_LIMIT_HORIZ;
|
||||
packet.XYK_LIMIT_VERTC = XYK_LIMIT_VERTC;
|
||||
packet.XYK_LIMIT_LOST_CONTACT = XYK_LIMIT_LOST_CONTACT;
|
||||
packet.XYK_LIMIT_TRANS_HEIGHT = XYK_LIMIT_TRANS_HEIGHT;
|
||||
packet.XYK_LIMIT_MAX_HEIGHT = XYK_LIMIT_MAX_HEIGHT;
|
||||
packet.XYK_PLANE_ID = XYK_PLANE_ID;
|
||||
packet.XYK_LIMIT_TURNBAC_VOLT = XYK_LIMIT_TURNBAC_VOLT;
|
||||
packet.XYK_LIMIT_EMGLAND_VOLT = XYK_LIMIT_EMGLAND_VOLT;
|
||||
packet.XYK_LIMIT_MIN_RPM = XYK_LIMIT_MIN_RPM;
|
||||
packet.XYK_LIMIT_HORIZ = XYK_LIMIT_HORIZ;
|
||||
packet.XYK_LIMIT_VERTC = XYK_LIMIT_VERTC;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN);
|
||||
#endif
|
||||
@@ -203,36 +203,36 @@ static inline uint16_t mavlink_msg_xyk_limit_param_encode_chan(uint8_t system_id
|
||||
* @param XYK_LIMIT_VERTC vertical limit along the line.1m,[-1000,1000]
|
||||
* @param XYK_LIMIT_LOST_CONTACT time that lost connect with gcs.1sec,[0,65535]
|
||||
* @param XYK_LIMIT_TRANS_HEIGHT height that transform to fixed wing 1m[0,65535]
|
||||
* @param XYK_LIMIT_MAX_HEIGHT height limit,[0,65535]
|
||||
* @param XYK_LIMIT_MAX_HEIGHT height limit,1m [0,65535]
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_xyk_limit_param_send(mavlink_channel_t chan, uint8_t XYK_PLANE_ID, uint8_t XYK_LIMIT_TURNBAC_VOLT, uint8_t XYK_LIMIT_EMGLAND_VOLT, uint8_t XYK_LIMIT_MIN_RPM, uint8_t XYK_LIMIT_HORIZ, uint8_t XYK_LIMIT_VERTC, uint16_t XYK_LIMIT_LOST_CONTACT, uint16_t XYK_LIMIT_TRANS_HEIGHT, uint16_t XYK_LIMIT_MAX_HEIGHT)
|
||||
static inline void mavlink_msg_xyk_limit_param_send(mavlink_channel_t chan, uint8_t XYK_PLANE_ID, uint8_t XYK_LIMIT_TURNBAC_VOLT, uint8_t XYK_LIMIT_EMGLAND_VOLT, uint16_t XYK_LIMIT_MIN_RPM, int16_t XYK_LIMIT_HORIZ, int16_t XYK_LIMIT_VERTC, uint16_t XYK_LIMIT_LOST_CONTACT, uint16_t XYK_LIMIT_TRANS_HEIGHT, uint16_t XYK_LIMIT_MAX_HEIGHT)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN];
|
||||
_mav_put_uint16_t(buf, 0, XYK_LIMIT_LOST_CONTACT);
|
||||
_mav_put_uint16_t(buf, 2, XYK_LIMIT_TRANS_HEIGHT);
|
||||
_mav_put_uint16_t(buf, 4, XYK_LIMIT_MAX_HEIGHT);
|
||||
_mav_put_uint8_t(buf, 6, XYK_PLANE_ID);
|
||||
_mav_put_uint8_t(buf, 7, XYK_LIMIT_TURNBAC_VOLT);
|
||||
_mav_put_uint8_t(buf, 8, XYK_LIMIT_EMGLAND_VOLT);
|
||||
_mav_put_uint8_t(buf, 9, XYK_LIMIT_MIN_RPM);
|
||||
_mav_put_uint8_t(buf, 10, XYK_LIMIT_HORIZ);
|
||||
_mav_put_uint8_t(buf, 11, XYK_LIMIT_VERTC);
|
||||
_mav_put_uint16_t(buf, 0, XYK_LIMIT_MIN_RPM);
|
||||
_mav_put_int16_t(buf, 2, XYK_LIMIT_HORIZ);
|
||||
_mav_put_int16_t(buf, 4, XYK_LIMIT_VERTC);
|
||||
_mav_put_uint16_t(buf, 6, XYK_LIMIT_LOST_CONTACT);
|
||||
_mav_put_uint16_t(buf, 8, XYK_LIMIT_TRANS_HEIGHT);
|
||||
_mav_put_uint16_t(buf, 10, XYK_LIMIT_MAX_HEIGHT);
|
||||
_mav_put_uint8_t(buf, 12, XYK_PLANE_ID);
|
||||
_mav_put_uint8_t(buf, 13, XYK_LIMIT_TURNBAC_VOLT);
|
||||
_mav_put_uint8_t(buf, 14, XYK_LIMIT_EMGLAND_VOLT);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_XYK_LIMIT_PARAM, buf, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_MIN_LEN, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_CRC);
|
||||
#else
|
||||
mavlink_xyk_limit_param_t packet;
|
||||
packet.XYK_LIMIT_MIN_RPM = XYK_LIMIT_MIN_RPM;
|
||||
packet.XYK_LIMIT_HORIZ = XYK_LIMIT_HORIZ;
|
||||
packet.XYK_LIMIT_VERTC = XYK_LIMIT_VERTC;
|
||||
packet.XYK_LIMIT_LOST_CONTACT = XYK_LIMIT_LOST_CONTACT;
|
||||
packet.XYK_LIMIT_TRANS_HEIGHT = XYK_LIMIT_TRANS_HEIGHT;
|
||||
packet.XYK_LIMIT_MAX_HEIGHT = XYK_LIMIT_MAX_HEIGHT;
|
||||
packet.XYK_PLANE_ID = XYK_PLANE_ID;
|
||||
packet.XYK_LIMIT_TURNBAC_VOLT = XYK_LIMIT_TURNBAC_VOLT;
|
||||
packet.XYK_LIMIT_EMGLAND_VOLT = XYK_LIMIT_EMGLAND_VOLT;
|
||||
packet.XYK_LIMIT_MIN_RPM = XYK_LIMIT_MIN_RPM;
|
||||
packet.XYK_LIMIT_HORIZ = XYK_LIMIT_HORIZ;
|
||||
packet.XYK_LIMIT_VERTC = XYK_LIMIT_VERTC;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_XYK_LIMIT_PARAM, (const char *)&packet, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_MIN_LEN, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_CRC);
|
||||
#endif
|
||||
@@ -260,32 +260,32 @@ static inline void mavlink_msg_xyk_limit_param_send_struct(mavlink_channel_t cha
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_xyk_limit_param_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t XYK_PLANE_ID, uint8_t XYK_LIMIT_TURNBAC_VOLT, uint8_t XYK_LIMIT_EMGLAND_VOLT, uint8_t XYK_LIMIT_MIN_RPM, uint8_t XYK_LIMIT_HORIZ, uint8_t XYK_LIMIT_VERTC, uint16_t XYK_LIMIT_LOST_CONTACT, uint16_t XYK_LIMIT_TRANS_HEIGHT, uint16_t XYK_LIMIT_MAX_HEIGHT)
|
||||
static inline void mavlink_msg_xyk_limit_param_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t XYK_PLANE_ID, uint8_t XYK_LIMIT_TURNBAC_VOLT, uint8_t XYK_LIMIT_EMGLAND_VOLT, uint16_t XYK_LIMIT_MIN_RPM, int16_t XYK_LIMIT_HORIZ, int16_t XYK_LIMIT_VERTC, uint16_t XYK_LIMIT_LOST_CONTACT, uint16_t XYK_LIMIT_TRANS_HEIGHT, uint16_t XYK_LIMIT_MAX_HEIGHT)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint16_t(buf, 0, XYK_LIMIT_LOST_CONTACT);
|
||||
_mav_put_uint16_t(buf, 2, XYK_LIMIT_TRANS_HEIGHT);
|
||||
_mav_put_uint16_t(buf, 4, XYK_LIMIT_MAX_HEIGHT);
|
||||
_mav_put_uint8_t(buf, 6, XYK_PLANE_ID);
|
||||
_mav_put_uint8_t(buf, 7, XYK_LIMIT_TURNBAC_VOLT);
|
||||
_mav_put_uint8_t(buf, 8, XYK_LIMIT_EMGLAND_VOLT);
|
||||
_mav_put_uint8_t(buf, 9, XYK_LIMIT_MIN_RPM);
|
||||
_mav_put_uint8_t(buf, 10, XYK_LIMIT_HORIZ);
|
||||
_mav_put_uint8_t(buf, 11, XYK_LIMIT_VERTC);
|
||||
_mav_put_uint16_t(buf, 0, XYK_LIMIT_MIN_RPM);
|
||||
_mav_put_int16_t(buf, 2, XYK_LIMIT_HORIZ);
|
||||
_mav_put_int16_t(buf, 4, XYK_LIMIT_VERTC);
|
||||
_mav_put_uint16_t(buf, 6, XYK_LIMIT_LOST_CONTACT);
|
||||
_mav_put_uint16_t(buf, 8, XYK_LIMIT_TRANS_HEIGHT);
|
||||
_mav_put_uint16_t(buf, 10, XYK_LIMIT_MAX_HEIGHT);
|
||||
_mav_put_uint8_t(buf, 12, XYK_PLANE_ID);
|
||||
_mav_put_uint8_t(buf, 13, XYK_LIMIT_TURNBAC_VOLT);
|
||||
_mav_put_uint8_t(buf, 14, XYK_LIMIT_EMGLAND_VOLT);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_XYK_LIMIT_PARAM, buf, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_MIN_LEN, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_CRC);
|
||||
#else
|
||||
mavlink_xyk_limit_param_t *packet = (mavlink_xyk_limit_param_t *)msgbuf;
|
||||
packet->XYK_LIMIT_MIN_RPM = XYK_LIMIT_MIN_RPM;
|
||||
packet->XYK_LIMIT_HORIZ = XYK_LIMIT_HORIZ;
|
||||
packet->XYK_LIMIT_VERTC = XYK_LIMIT_VERTC;
|
||||
packet->XYK_LIMIT_LOST_CONTACT = XYK_LIMIT_LOST_CONTACT;
|
||||
packet->XYK_LIMIT_TRANS_HEIGHT = XYK_LIMIT_TRANS_HEIGHT;
|
||||
packet->XYK_LIMIT_MAX_HEIGHT = XYK_LIMIT_MAX_HEIGHT;
|
||||
packet->XYK_PLANE_ID = XYK_PLANE_ID;
|
||||
packet->XYK_LIMIT_TURNBAC_VOLT = XYK_LIMIT_TURNBAC_VOLT;
|
||||
packet->XYK_LIMIT_EMGLAND_VOLT = XYK_LIMIT_EMGLAND_VOLT;
|
||||
packet->XYK_LIMIT_MIN_RPM = XYK_LIMIT_MIN_RPM;
|
||||
packet->XYK_LIMIT_HORIZ = XYK_LIMIT_HORIZ;
|
||||
packet->XYK_LIMIT_VERTC = XYK_LIMIT_VERTC;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_XYK_LIMIT_PARAM, (const char *)packet, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_MIN_LEN, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_CRC);
|
||||
#endif
|
||||
@@ -304,7 +304,7 @@ static inline void mavlink_msg_xyk_limit_param_send_buf(mavlink_message_t *msgbu
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_xyk_limit_param_get_XYK_PLANE_ID(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 6);
|
||||
return _MAV_RETURN_uint8_t(msg, 12);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -314,7 +314,7 @@ static inline uint8_t mavlink_msg_xyk_limit_param_get_XYK_PLANE_ID(const mavlink
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_TURNBAC_VOLT(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 7);
|
||||
return _MAV_RETURN_uint8_t(msg, 13);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -324,7 +324,7 @@ static inline uint8_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_TURNBAC_VOLT(con
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_EMGLAND_VOLT(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 8);
|
||||
return _MAV_RETURN_uint8_t(msg, 14);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -332,9 +332,9 @@ static inline uint8_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_EMGLAND_VOLT(con
|
||||
*
|
||||
* @return fixed wing mininum rpm.[0,1000]
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_MIN_RPM(const mavlink_message_t* msg)
|
||||
static inline uint16_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_MIN_RPM(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 9);
|
||||
return _MAV_RETURN_uint16_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -342,9 +342,9 @@ static inline uint8_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_MIN_RPM(const ma
|
||||
*
|
||||
* @return horizontal limit along the line 1m,[-1000,1000]
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_HORIZ(const mavlink_message_t* msg)
|
||||
static inline int16_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_HORIZ(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 10);
|
||||
return _MAV_RETURN_int16_t(msg, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -352,9 +352,9 @@ static inline uint8_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_HORIZ(const mavl
|
||||
*
|
||||
* @return vertical limit along the line.1m,[-1000,1000]
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_VERTC(const mavlink_message_t* msg)
|
||||
static inline int16_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_VERTC(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 11);
|
||||
return _MAV_RETURN_int16_t(msg, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -364,7 +364,7 @@ static inline uint8_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_VERTC(const mavl
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_LOST_CONTACT(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 0);
|
||||
return _MAV_RETURN_uint16_t(msg, 6);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -374,17 +374,17 @@ static inline uint16_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_LOST_CONTACT(co
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_TRANS_HEIGHT(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 2);
|
||||
return _MAV_RETURN_uint16_t(msg, 8);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field XYK_LIMIT_MAX_HEIGHT from xyk_limit_param message
|
||||
*
|
||||
* @return height limit,[0,65535]
|
||||
* @return height limit,1m [0,65535]
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_MAX_HEIGHT(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 4);
|
||||
return _MAV_RETURN_uint16_t(msg, 10);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -396,15 +396,15 @@ static inline uint16_t mavlink_msg_xyk_limit_param_get_XYK_LIMIT_MAX_HEIGHT(cons
|
||||
static inline void mavlink_msg_xyk_limit_param_decode(const mavlink_message_t* msg, mavlink_xyk_limit_param_t* xyk_limit_param)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
xyk_limit_param->XYK_LIMIT_MIN_RPM = mavlink_msg_xyk_limit_param_get_XYK_LIMIT_MIN_RPM(msg);
|
||||
xyk_limit_param->XYK_LIMIT_HORIZ = mavlink_msg_xyk_limit_param_get_XYK_LIMIT_HORIZ(msg);
|
||||
xyk_limit_param->XYK_LIMIT_VERTC = mavlink_msg_xyk_limit_param_get_XYK_LIMIT_VERTC(msg);
|
||||
xyk_limit_param->XYK_LIMIT_LOST_CONTACT = mavlink_msg_xyk_limit_param_get_XYK_LIMIT_LOST_CONTACT(msg);
|
||||
xyk_limit_param->XYK_LIMIT_TRANS_HEIGHT = mavlink_msg_xyk_limit_param_get_XYK_LIMIT_TRANS_HEIGHT(msg);
|
||||
xyk_limit_param->XYK_LIMIT_MAX_HEIGHT = mavlink_msg_xyk_limit_param_get_XYK_LIMIT_MAX_HEIGHT(msg);
|
||||
xyk_limit_param->XYK_PLANE_ID = mavlink_msg_xyk_limit_param_get_XYK_PLANE_ID(msg);
|
||||
xyk_limit_param->XYK_LIMIT_TURNBAC_VOLT = mavlink_msg_xyk_limit_param_get_XYK_LIMIT_TURNBAC_VOLT(msg);
|
||||
xyk_limit_param->XYK_LIMIT_EMGLAND_VOLT = mavlink_msg_xyk_limit_param_get_XYK_LIMIT_EMGLAND_VOLT(msg);
|
||||
xyk_limit_param->XYK_LIMIT_MIN_RPM = mavlink_msg_xyk_limit_param_get_XYK_LIMIT_MIN_RPM(msg);
|
||||
xyk_limit_param->XYK_LIMIT_HORIZ = mavlink_msg_xyk_limit_param_get_XYK_LIMIT_HORIZ(msg);
|
||||
xyk_limit_param->XYK_LIMIT_VERTC = mavlink_msg_xyk_limit_param_get_XYK_LIMIT_VERTC(msg);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN? msg->len : MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN;
|
||||
memset(xyk_limit_param, 0, MAVLINK_MSG_ID_XYK_LIMIT_PARAM_LEN);
|
||||
|
||||
Reference in New Issue
Block a user