autogenerated headers for rev https://github.com/mavlink/mavlink/tree/9840105a275db1f48f9711d0fb861e8bf77a2245
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_ASLUAV.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_ASLUAV_XML_HASH -5864472689697216947
|
||||
#define MAVLINK_ASLUAV_XML_HASH 6087441405184234891
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -5864472689697216947
|
||||
#define MAVLINK_PRIMARY_XML_HASH 6087441405184234891
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_AVSSUAS.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_AVSSUAS_XML_HASH -3347697321579463162
|
||||
#define MAVLINK_AVSSUAS_XML_HASH 45282055904297250
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -3347697321579463162
|
||||
#define MAVLINK_PRIMARY_XML_HASH 45282055904297250
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -6913400170723351722
|
||||
#define MAVLINK_PRIMARY_XML_HASH -931073999192403249
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 1339475585092896498
|
||||
#define MAVLINK_PRIMARY_XML_HASH -189277157834347460
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#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.
|
||||
#endif
|
||||
|
||||
#define MAVLINK_COMMON_XML_HASH 797110155611978072
|
||||
#define MAVLINK_COMMON_XML_HASH 6210132856844804598
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 797110155611978072
|
||||
#define MAVLINK_PRIMARY_XML_HASH 6210132856844804598
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
+53
-4
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_CSAIRLINK.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_CSAIRLINK_XML_HASH -965040823287688154
|
||||
#define MAVLINK_CSAIRLINK_XML_HASH -5686112884452948951
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -23,7 +23,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef MAVLINK_MESSAGE_CRCS
|
||||
#define MAVLINK_MESSAGE_CRCS {{52000, 13, 100, 100, 0, 0, 0}, {52001, 239, 1, 1, 0, 0, 0}}
|
||||
#define MAVLINK_MESSAGE_CRCS {{52000, 13, 100, 100, 0, 0, 0}, {52001, 239, 1, 1, 0, 0, 0}, {52002, 24, 1, 1, 0, 0, 0}, {52003, 166, 26, 26, 0, 0, 0}, {52004, 39, 1, 1, 0, 0, 0}, {52005, 145, 1, 1, 0, 0, 0}}
|
||||
#endif
|
||||
|
||||
#include "../protocol.h"
|
||||
@@ -44,6 +44,51 @@ typedef enum AIRLINK_AUTH_RESPONSE_TYPE
|
||||
} AIRLINK_AUTH_RESPONSE_TYPE;
|
||||
#endif
|
||||
|
||||
/** @brief */
|
||||
#ifndef HAVE_ENUM_AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE
|
||||
#define HAVE_ENUM_AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE
|
||||
typedef enum AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE
|
||||
{
|
||||
AIRLINK_HPR_PARTNER_NOT_READY=0, /* | */
|
||||
AIRLINK_HPR_PARTNER_READY=1, /* | */
|
||||
AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE_ENUM_END=2, /* | */
|
||||
} AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE;
|
||||
#endif
|
||||
|
||||
/** @brief */
|
||||
#ifndef HAVE_ENUM_AIRLINK_EYE_IP_VERSION
|
||||
#define HAVE_ENUM_AIRLINK_EYE_IP_VERSION
|
||||
typedef enum AIRLINK_EYE_IP_VERSION
|
||||
{
|
||||
AIRLINK_IP_V4=0, /* | */
|
||||
AIRLINK_IP_V6=1, /* | */
|
||||
AIRLINK_EYE_IP_VERSION_ENUM_END=2, /* | */
|
||||
} AIRLINK_EYE_IP_VERSION;
|
||||
#endif
|
||||
|
||||
/** @brief */
|
||||
#ifndef HAVE_ENUM_AIRLINK_EYE_HOLE_PUSH_TYPE
|
||||
#define HAVE_ENUM_AIRLINK_EYE_HOLE_PUSH_TYPE
|
||||
typedef enum AIRLINK_EYE_HOLE_PUSH_TYPE
|
||||
{
|
||||
AIRLINK_HP_NOT_PENETRATED=0, /* | */
|
||||
AIRLINK_HP_BROKEN=1, /* | */
|
||||
AIRLINK_EYE_HOLE_PUSH_TYPE_ENUM_END=2, /* | */
|
||||
} AIRLINK_EYE_HOLE_PUSH_TYPE;
|
||||
#endif
|
||||
|
||||
/** @brief */
|
||||
#ifndef HAVE_ENUM_AIRLINK_EYE_TURN_INIT_TYPE
|
||||
#define HAVE_ENUM_AIRLINK_EYE_TURN_INIT_TYPE
|
||||
typedef enum AIRLINK_EYE_TURN_INIT_TYPE
|
||||
{
|
||||
AIRLINK_TURN_INIT_START=0, /* | */
|
||||
AIRLINK_TURN_INIT_OK=1, /* | */
|
||||
AIRLINK_TURN_INIT_BAD=2, /* | */
|
||||
AIRLINK_EYE_TURN_INIT_TYPE_ENUM_END=3, /* | */
|
||||
} AIRLINK_EYE_TURN_INIT_TYPE;
|
||||
#endif
|
||||
|
||||
// MAVLINK VERSION
|
||||
|
||||
#ifndef MAVLINK_VERSION
|
||||
@@ -58,14 +103,18 @@ typedef enum AIRLINK_AUTH_RESPONSE_TYPE
|
||||
// MESSAGE DEFINITIONS
|
||||
#include "./mavlink_msg_airlink_auth.h"
|
||||
#include "./mavlink_msg_airlink_auth_response.h"
|
||||
#include "./mavlink_msg_airlink_eye_gs_hole_push_request.h"
|
||||
#include "./mavlink_msg_airlink_eye_gs_hole_push_response.h"
|
||||
#include "./mavlink_msg_airlink_eye_hp.h"
|
||||
#include "./mavlink_msg_airlink_eye_turn_init.h"
|
||||
|
||||
// base include
|
||||
|
||||
|
||||
|
||||
#if MAVLINK_CSAIRLINK_XML_HASH == MAVLINK_PRIMARY_XML_HASH
|
||||
# define MAVLINK_MESSAGE_INFO {MAVLINK_MESSAGE_INFO_AIRLINK_AUTH, MAVLINK_MESSAGE_INFO_AIRLINK_AUTH_RESPONSE}
|
||||
# define MAVLINK_MESSAGE_NAMES {{ "AIRLINK_AUTH", 52000 }, { "AIRLINK_AUTH_RESPONSE", 52001 }}
|
||||
# define MAVLINK_MESSAGE_INFO {MAVLINK_MESSAGE_INFO_AIRLINK_AUTH, MAVLINK_MESSAGE_INFO_AIRLINK_AUTH_RESPONSE, MAVLINK_MESSAGE_INFO_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST, MAVLINK_MESSAGE_INFO_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE, MAVLINK_MESSAGE_INFO_AIRLINK_EYE_HP, MAVLINK_MESSAGE_INFO_AIRLINK_EYE_TURN_INIT}
|
||||
# define MAVLINK_MESSAGE_NAMES {{ "AIRLINK_AUTH", 52000 }, { "AIRLINK_AUTH_RESPONSE", 52001 }, { "AIRLINK_EYE_GS_HOLE_PUSH_REQUEST", 52002 }, { "AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE", 52003 }, { "AIRLINK_EYE_HP", 52004 }, { "AIRLINK_EYE_TURN_INIT", 52005 }}
|
||||
# if MAVLINK_COMMAND_24BIT
|
||||
# include "../mavlink_get_info.h"
|
||||
# endif
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -965040823287688154
|
||||
#define MAVLINK_PRIMARY_XML_HASH -5686112884452948951
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
@@ -0,0 +1,213 @@
|
||||
#pragma once
|
||||
// MESSAGE AIRLINK_EYE_GS_HOLE_PUSH_REQUEST PACKING
|
||||
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST 52002
|
||||
|
||||
|
||||
typedef struct __mavlink_airlink_eye_gs_hole_push_request_t {
|
||||
uint8_t resp_type; /*< Hole push response type*/
|
||||
} mavlink_airlink_eye_gs_hole_push_request_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN 1
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_MIN_LEN 1
|
||||
#define MAVLINK_MSG_ID_52002_LEN 1
|
||||
#define MAVLINK_MSG_ID_52002_MIN_LEN 1
|
||||
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_CRC 24
|
||||
#define MAVLINK_MSG_ID_52002_CRC 24
|
||||
|
||||
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST { \
|
||||
52002, \
|
||||
"AIRLINK_EYE_GS_HOLE_PUSH_REQUEST", \
|
||||
1, \
|
||||
{ { "resp_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_airlink_eye_gs_hole_push_request_t, resp_type) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST { \
|
||||
"AIRLINK_EYE_GS_HOLE_PUSH_REQUEST", \
|
||||
1, \
|
||||
{ { "resp_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_airlink_eye_gs_hole_push_request_t, resp_type) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Pack a airlink_eye_gs_hole_push_request message
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param resp_type Hole push response type
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_gs_hole_push_request_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t resp_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN];
|
||||
_mav_put_uint8_t(buf, 0, resp_type);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN);
|
||||
#else
|
||||
mavlink_airlink_eye_gs_hole_push_request_t packet;
|
||||
packet.resp_type = resp_type;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pack a airlink_eye_gs_hole_push_request message on a channel
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param resp_type Hole push response type
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_gs_hole_push_request_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t resp_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN];
|
||||
_mav_put_uint8_t(buf, 0, resp_type);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN);
|
||||
#else
|
||||
mavlink_airlink_eye_gs_hole_push_request_t packet;
|
||||
packet.resp_type = resp_type;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a airlink_eye_gs_hole_push_request struct
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param airlink_eye_gs_hole_push_request C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_gs_hole_push_request_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_airlink_eye_gs_hole_push_request_t* airlink_eye_gs_hole_push_request)
|
||||
{
|
||||
return mavlink_msg_airlink_eye_gs_hole_push_request_pack(system_id, component_id, msg, airlink_eye_gs_hole_push_request->resp_type);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a airlink_eye_gs_hole_push_request struct on a channel
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param airlink_eye_gs_hole_push_request C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_gs_hole_push_request_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_airlink_eye_gs_hole_push_request_t* airlink_eye_gs_hole_push_request)
|
||||
{
|
||||
return mavlink_msg_airlink_eye_gs_hole_push_request_pack_chan(system_id, component_id, chan, msg, airlink_eye_gs_hole_push_request->resp_type);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a airlink_eye_gs_hole_push_request message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param resp_type Hole push response type
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_airlink_eye_gs_hole_push_request_send(mavlink_channel_t chan, uint8_t resp_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN];
|
||||
_mav_put_uint8_t(buf, 0, resp_type);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST, buf, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_CRC);
|
||||
#else
|
||||
mavlink_airlink_eye_gs_hole_push_request_t packet;
|
||||
packet.resp_type = resp_type;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST, (const char *)&packet, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a airlink_eye_gs_hole_push_request message
|
||||
* @param chan MAVLink channel to send the message
|
||||
* @param struct The MAVLink struct to serialize
|
||||
*/
|
||||
static inline void mavlink_msg_airlink_eye_gs_hole_push_request_send_struct(mavlink_channel_t chan, const mavlink_airlink_eye_gs_hole_push_request_t* airlink_eye_gs_hole_push_request)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mavlink_msg_airlink_eye_gs_hole_push_request_send(chan, airlink_eye_gs_hole_push_request->resp_type);
|
||||
#else
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST, (const char *)airlink_eye_gs_hole_push_request, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN <= MAVLINK_MAX_PAYLOAD_LEN
|
||||
/*
|
||||
This variant of _send() can be used to save stack space by re-using
|
||||
memory from the receive buffer. The caller provides a
|
||||
mavlink_message_t which is the size of a full mavlink message. This
|
||||
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_airlink_eye_gs_hole_push_request_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t resp_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint8_t(buf, 0, resp_type);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST, buf, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_CRC);
|
||||
#else
|
||||
mavlink_airlink_eye_gs_hole_push_request_t *packet = (mavlink_airlink_eye_gs_hole_push_request_t *)msgbuf;
|
||||
packet->resp_type = resp_type;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST, (const char *)packet, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_CRC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// MESSAGE AIRLINK_EYE_GS_HOLE_PUSH_REQUEST UNPACKING
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field resp_type from airlink_eye_gs_hole_push_request message
|
||||
*
|
||||
* @return Hole push response type
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_airlink_eye_gs_hole_push_request_get_resp_type(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a airlink_eye_gs_hole_push_request message into a struct
|
||||
*
|
||||
* @param msg The message to decode
|
||||
* @param airlink_eye_gs_hole_push_request C-struct to decode the message contents into
|
||||
*/
|
||||
static inline void mavlink_msg_airlink_eye_gs_hole_push_request_decode(const mavlink_message_t* msg, mavlink_airlink_eye_gs_hole_push_request_t* airlink_eye_gs_hole_push_request)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
airlink_eye_gs_hole_push_request->resp_type = mavlink_msg_airlink_eye_gs_hole_push_request_get_resp_type(msg);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN? msg->len : MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN;
|
||||
memset(airlink_eye_gs_hole_push_request, 0, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_LEN);
|
||||
memcpy(airlink_eye_gs_hole_push_request, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
@@ -0,0 +1,306 @@
|
||||
#pragma once
|
||||
// MESSAGE AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE PACKING
|
||||
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE 52003
|
||||
|
||||
|
||||
typedef struct __mavlink_airlink_eye_gs_hole_push_response_t {
|
||||
uint32_t ip_port; /*< port*/
|
||||
uint8_t resp_type; /*< Hole push response type*/
|
||||
uint8_t ip_version; /*< ip version*/
|
||||
uint8_t ip_address_4[4]; /*< ip 4 address*/
|
||||
uint8_t ip_address_6[16]; /*< ip 6 address*/
|
||||
} mavlink_airlink_eye_gs_hole_push_response_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN 26
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_MIN_LEN 26
|
||||
#define MAVLINK_MSG_ID_52003_LEN 26
|
||||
#define MAVLINK_MSG_ID_52003_MIN_LEN 26
|
||||
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_CRC 166
|
||||
#define MAVLINK_MSG_ID_52003_CRC 166
|
||||
|
||||
#define MAVLINK_MSG_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_FIELD_IP_ADDRESS_4_LEN 4
|
||||
#define MAVLINK_MSG_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_FIELD_IP_ADDRESS_6_LEN 16
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE { \
|
||||
52003, \
|
||||
"AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE", \
|
||||
5, \
|
||||
{ { "resp_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_airlink_eye_gs_hole_push_response_t, resp_type) }, \
|
||||
{ "ip_version", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_airlink_eye_gs_hole_push_response_t, ip_version) }, \
|
||||
{ "ip_address_4", NULL, MAVLINK_TYPE_UINT8_T, 4, 6, offsetof(mavlink_airlink_eye_gs_hole_push_response_t, ip_address_4) }, \
|
||||
{ "ip_address_6", NULL, MAVLINK_TYPE_UINT8_T, 16, 10, offsetof(mavlink_airlink_eye_gs_hole_push_response_t, ip_address_6) }, \
|
||||
{ "ip_port", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_airlink_eye_gs_hole_push_response_t, ip_port) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE { \
|
||||
"AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE", \
|
||||
5, \
|
||||
{ { "resp_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_airlink_eye_gs_hole_push_response_t, resp_type) }, \
|
||||
{ "ip_version", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_airlink_eye_gs_hole_push_response_t, ip_version) }, \
|
||||
{ "ip_address_4", NULL, MAVLINK_TYPE_UINT8_T, 4, 6, offsetof(mavlink_airlink_eye_gs_hole_push_response_t, ip_address_4) }, \
|
||||
{ "ip_address_6", NULL, MAVLINK_TYPE_UINT8_T, 16, 10, offsetof(mavlink_airlink_eye_gs_hole_push_response_t, ip_address_6) }, \
|
||||
{ "ip_port", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_airlink_eye_gs_hole_push_response_t, ip_port) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Pack a airlink_eye_gs_hole_push_response message
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param resp_type Hole push response type
|
||||
* @param ip_version ip version
|
||||
* @param ip_address_4 ip 4 address
|
||||
* @param ip_address_6 ip 6 address
|
||||
* @param ip_port port
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_gs_hole_push_response_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t resp_type, uint8_t ip_version, const uint8_t *ip_address_4, const uint8_t *ip_address_6, uint32_t ip_port)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN];
|
||||
_mav_put_uint32_t(buf, 0, ip_port);
|
||||
_mav_put_uint8_t(buf, 4, resp_type);
|
||||
_mav_put_uint8_t(buf, 5, ip_version);
|
||||
_mav_put_uint8_t_array(buf, 6, ip_address_4, 4);
|
||||
_mav_put_uint8_t_array(buf, 10, ip_address_6, 16);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN);
|
||||
#else
|
||||
mavlink_airlink_eye_gs_hole_push_response_t packet;
|
||||
packet.ip_port = ip_port;
|
||||
packet.resp_type = resp_type;
|
||||
packet.ip_version = ip_version;
|
||||
mav_array_memcpy(packet.ip_address_4, ip_address_4, sizeof(uint8_t)*4);
|
||||
mav_array_memcpy(packet.ip_address_6, ip_address_6, sizeof(uint8_t)*16);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pack a airlink_eye_gs_hole_push_response message on a channel
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param resp_type Hole push response type
|
||||
* @param ip_version ip version
|
||||
* @param ip_address_4 ip 4 address
|
||||
* @param ip_address_6 ip 6 address
|
||||
* @param ip_port port
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_gs_hole_push_response_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t resp_type,uint8_t ip_version,const uint8_t *ip_address_4,const uint8_t *ip_address_6,uint32_t ip_port)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN];
|
||||
_mav_put_uint32_t(buf, 0, ip_port);
|
||||
_mav_put_uint8_t(buf, 4, resp_type);
|
||||
_mav_put_uint8_t(buf, 5, ip_version);
|
||||
_mav_put_uint8_t_array(buf, 6, ip_address_4, 4);
|
||||
_mav_put_uint8_t_array(buf, 10, ip_address_6, 16);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN);
|
||||
#else
|
||||
mavlink_airlink_eye_gs_hole_push_response_t packet;
|
||||
packet.ip_port = ip_port;
|
||||
packet.resp_type = resp_type;
|
||||
packet.ip_version = ip_version;
|
||||
mav_array_memcpy(packet.ip_address_4, ip_address_4, sizeof(uint8_t)*4);
|
||||
mav_array_memcpy(packet.ip_address_6, ip_address_6, sizeof(uint8_t)*16);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a airlink_eye_gs_hole_push_response struct
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param airlink_eye_gs_hole_push_response C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_gs_hole_push_response_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_airlink_eye_gs_hole_push_response_t* airlink_eye_gs_hole_push_response)
|
||||
{
|
||||
return mavlink_msg_airlink_eye_gs_hole_push_response_pack(system_id, component_id, msg, airlink_eye_gs_hole_push_response->resp_type, airlink_eye_gs_hole_push_response->ip_version, airlink_eye_gs_hole_push_response->ip_address_4, airlink_eye_gs_hole_push_response->ip_address_6, airlink_eye_gs_hole_push_response->ip_port);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a airlink_eye_gs_hole_push_response struct on a channel
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param airlink_eye_gs_hole_push_response C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_gs_hole_push_response_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_airlink_eye_gs_hole_push_response_t* airlink_eye_gs_hole_push_response)
|
||||
{
|
||||
return mavlink_msg_airlink_eye_gs_hole_push_response_pack_chan(system_id, component_id, chan, msg, airlink_eye_gs_hole_push_response->resp_type, airlink_eye_gs_hole_push_response->ip_version, airlink_eye_gs_hole_push_response->ip_address_4, airlink_eye_gs_hole_push_response->ip_address_6, airlink_eye_gs_hole_push_response->ip_port);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a airlink_eye_gs_hole_push_response message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param resp_type Hole push response type
|
||||
* @param ip_version ip version
|
||||
* @param ip_address_4 ip 4 address
|
||||
* @param ip_address_6 ip 6 address
|
||||
* @param ip_port port
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_airlink_eye_gs_hole_push_response_send(mavlink_channel_t chan, uint8_t resp_type, uint8_t ip_version, const uint8_t *ip_address_4, const uint8_t *ip_address_6, uint32_t ip_port)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN];
|
||||
_mav_put_uint32_t(buf, 0, ip_port);
|
||||
_mav_put_uint8_t(buf, 4, resp_type);
|
||||
_mav_put_uint8_t(buf, 5, ip_version);
|
||||
_mav_put_uint8_t_array(buf, 6, ip_address_4, 4);
|
||||
_mav_put_uint8_t_array(buf, 10, ip_address_6, 16);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE, buf, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_CRC);
|
||||
#else
|
||||
mavlink_airlink_eye_gs_hole_push_response_t packet;
|
||||
packet.ip_port = ip_port;
|
||||
packet.resp_type = resp_type;
|
||||
packet.ip_version = ip_version;
|
||||
mav_array_memcpy(packet.ip_address_4, ip_address_4, sizeof(uint8_t)*4);
|
||||
mav_array_memcpy(packet.ip_address_6, ip_address_6, sizeof(uint8_t)*16);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE, (const char *)&packet, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a airlink_eye_gs_hole_push_response message
|
||||
* @param chan MAVLink channel to send the message
|
||||
* @param struct The MAVLink struct to serialize
|
||||
*/
|
||||
static inline void mavlink_msg_airlink_eye_gs_hole_push_response_send_struct(mavlink_channel_t chan, const mavlink_airlink_eye_gs_hole_push_response_t* airlink_eye_gs_hole_push_response)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mavlink_msg_airlink_eye_gs_hole_push_response_send(chan, airlink_eye_gs_hole_push_response->resp_type, airlink_eye_gs_hole_push_response->ip_version, airlink_eye_gs_hole_push_response->ip_address_4, airlink_eye_gs_hole_push_response->ip_address_6, airlink_eye_gs_hole_push_response->ip_port);
|
||||
#else
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE, (const char *)airlink_eye_gs_hole_push_response, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
|
||||
/*
|
||||
This variant of _send() can be used to save stack space by re-using
|
||||
memory from the receive buffer. The caller provides a
|
||||
mavlink_message_t which is the size of a full mavlink message. This
|
||||
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_airlink_eye_gs_hole_push_response_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t resp_type, uint8_t ip_version, const uint8_t *ip_address_4, const uint8_t *ip_address_6, uint32_t ip_port)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint32_t(buf, 0, ip_port);
|
||||
_mav_put_uint8_t(buf, 4, resp_type);
|
||||
_mav_put_uint8_t(buf, 5, ip_version);
|
||||
_mav_put_uint8_t_array(buf, 6, ip_address_4, 4);
|
||||
_mav_put_uint8_t_array(buf, 10, ip_address_6, 16);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE, buf, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_CRC);
|
||||
#else
|
||||
mavlink_airlink_eye_gs_hole_push_response_t *packet = (mavlink_airlink_eye_gs_hole_push_response_t *)msgbuf;
|
||||
packet->ip_port = ip_port;
|
||||
packet->resp_type = resp_type;
|
||||
packet->ip_version = ip_version;
|
||||
mav_array_memcpy(packet->ip_address_4, ip_address_4, sizeof(uint8_t)*4);
|
||||
mav_array_memcpy(packet->ip_address_6, ip_address_6, sizeof(uint8_t)*16);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE, (const char *)packet, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_CRC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// MESSAGE AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE UNPACKING
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field resp_type from airlink_eye_gs_hole_push_response message
|
||||
*
|
||||
* @return Hole push response type
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_airlink_eye_gs_hole_push_response_get_resp_type(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field ip_version from airlink_eye_gs_hole_push_response message
|
||||
*
|
||||
* @return ip version
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_airlink_eye_gs_hole_push_response_get_ip_version(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 5);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field ip_address_4 from airlink_eye_gs_hole_push_response message
|
||||
*
|
||||
* @return ip 4 address
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_gs_hole_push_response_get_ip_address_4(const mavlink_message_t* msg, uint8_t *ip_address_4)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t_array(msg, ip_address_4, 4, 6);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field ip_address_6 from airlink_eye_gs_hole_push_response message
|
||||
*
|
||||
* @return ip 6 address
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_gs_hole_push_response_get_ip_address_6(const mavlink_message_t* msg, uint8_t *ip_address_6)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t_array(msg, ip_address_6, 16, 10);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field ip_port from airlink_eye_gs_hole_push_response message
|
||||
*
|
||||
* @return port
|
||||
*/
|
||||
static inline uint32_t mavlink_msg_airlink_eye_gs_hole_push_response_get_ip_port(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint32_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a airlink_eye_gs_hole_push_response message into a struct
|
||||
*
|
||||
* @param msg The message to decode
|
||||
* @param airlink_eye_gs_hole_push_response C-struct to decode the message contents into
|
||||
*/
|
||||
static inline void mavlink_msg_airlink_eye_gs_hole_push_response_decode(const mavlink_message_t* msg, mavlink_airlink_eye_gs_hole_push_response_t* airlink_eye_gs_hole_push_response)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
airlink_eye_gs_hole_push_response->ip_port = mavlink_msg_airlink_eye_gs_hole_push_response_get_ip_port(msg);
|
||||
airlink_eye_gs_hole_push_response->resp_type = mavlink_msg_airlink_eye_gs_hole_push_response_get_resp_type(msg);
|
||||
airlink_eye_gs_hole_push_response->ip_version = mavlink_msg_airlink_eye_gs_hole_push_response_get_ip_version(msg);
|
||||
mavlink_msg_airlink_eye_gs_hole_push_response_get_ip_address_4(msg, airlink_eye_gs_hole_push_response->ip_address_4);
|
||||
mavlink_msg_airlink_eye_gs_hole_push_response_get_ip_address_6(msg, airlink_eye_gs_hole_push_response->ip_address_6);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN? msg->len : MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN;
|
||||
memset(airlink_eye_gs_hole_push_response, 0, MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_LEN);
|
||||
memcpy(airlink_eye_gs_hole_push_response, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
#pragma once
|
||||
// MESSAGE AIRLINK_EYE_HP PACKING
|
||||
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_HP 52004
|
||||
|
||||
|
||||
typedef struct __mavlink_airlink_eye_hp_t {
|
||||
uint8_t resp_type; /*< Hole push response type*/
|
||||
} mavlink_airlink_eye_hp_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN 1
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_HP_MIN_LEN 1
|
||||
#define MAVLINK_MSG_ID_52004_LEN 1
|
||||
#define MAVLINK_MSG_ID_52004_MIN_LEN 1
|
||||
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_HP_CRC 39
|
||||
#define MAVLINK_MSG_ID_52004_CRC 39
|
||||
|
||||
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_AIRLINK_EYE_HP { \
|
||||
52004, \
|
||||
"AIRLINK_EYE_HP", \
|
||||
1, \
|
||||
{ { "resp_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_airlink_eye_hp_t, resp_type) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_AIRLINK_EYE_HP { \
|
||||
"AIRLINK_EYE_HP", \
|
||||
1, \
|
||||
{ { "resp_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_airlink_eye_hp_t, resp_type) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Pack a airlink_eye_hp message
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param resp_type Hole push response type
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_hp_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t resp_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN];
|
||||
_mav_put_uint8_t(buf, 0, resp_type);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN);
|
||||
#else
|
||||
mavlink_airlink_eye_hp_t packet;
|
||||
packet.resp_type = resp_type;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_AIRLINK_EYE_HP;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_AIRLINK_EYE_HP_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pack a airlink_eye_hp message on a channel
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param resp_type Hole push response type
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_hp_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t resp_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN];
|
||||
_mav_put_uint8_t(buf, 0, resp_type);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN);
|
||||
#else
|
||||
mavlink_airlink_eye_hp_t packet;
|
||||
packet.resp_type = resp_type;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_AIRLINK_EYE_HP;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_AIRLINK_EYE_HP_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a airlink_eye_hp struct
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param airlink_eye_hp C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_hp_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_airlink_eye_hp_t* airlink_eye_hp)
|
||||
{
|
||||
return mavlink_msg_airlink_eye_hp_pack(system_id, component_id, msg, airlink_eye_hp->resp_type);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a airlink_eye_hp struct on a channel
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param airlink_eye_hp C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_hp_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_airlink_eye_hp_t* airlink_eye_hp)
|
||||
{
|
||||
return mavlink_msg_airlink_eye_hp_pack_chan(system_id, component_id, chan, msg, airlink_eye_hp->resp_type);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a airlink_eye_hp message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param resp_type Hole push response type
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_airlink_eye_hp_send(mavlink_channel_t chan, uint8_t resp_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN];
|
||||
_mav_put_uint8_t(buf, 0, resp_type);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_HP, buf, MAVLINK_MSG_ID_AIRLINK_EYE_HP_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_CRC);
|
||||
#else
|
||||
mavlink_airlink_eye_hp_t packet;
|
||||
packet.resp_type = resp_type;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_HP, (const char *)&packet, MAVLINK_MSG_ID_AIRLINK_EYE_HP_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a airlink_eye_hp message
|
||||
* @param chan MAVLink channel to send the message
|
||||
* @param struct The MAVLink struct to serialize
|
||||
*/
|
||||
static inline void mavlink_msg_airlink_eye_hp_send_struct(mavlink_channel_t chan, const mavlink_airlink_eye_hp_t* airlink_eye_hp)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mavlink_msg_airlink_eye_hp_send(chan, airlink_eye_hp->resp_type);
|
||||
#else
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_HP, (const char *)airlink_eye_hp, MAVLINK_MSG_ID_AIRLINK_EYE_HP_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN <= MAVLINK_MAX_PAYLOAD_LEN
|
||||
/*
|
||||
This variant of _send() can be used to save stack space by re-using
|
||||
memory from the receive buffer. The caller provides a
|
||||
mavlink_message_t which is the size of a full mavlink message. This
|
||||
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_airlink_eye_hp_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t resp_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint8_t(buf, 0, resp_type);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_HP, buf, MAVLINK_MSG_ID_AIRLINK_EYE_HP_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_CRC);
|
||||
#else
|
||||
mavlink_airlink_eye_hp_t *packet = (mavlink_airlink_eye_hp_t *)msgbuf;
|
||||
packet->resp_type = resp_type;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_HP, (const char *)packet, MAVLINK_MSG_ID_AIRLINK_EYE_HP_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_HP_CRC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// MESSAGE AIRLINK_EYE_HP UNPACKING
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field resp_type from airlink_eye_hp message
|
||||
*
|
||||
* @return Hole push response type
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_airlink_eye_hp_get_resp_type(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a airlink_eye_hp message into a struct
|
||||
*
|
||||
* @param msg The message to decode
|
||||
* @param airlink_eye_hp C-struct to decode the message contents into
|
||||
*/
|
||||
static inline void mavlink_msg_airlink_eye_hp_decode(const mavlink_message_t* msg, mavlink_airlink_eye_hp_t* airlink_eye_hp)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
airlink_eye_hp->resp_type = mavlink_msg_airlink_eye_hp_get_resp_type(msg);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN? msg->len : MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN;
|
||||
memset(airlink_eye_hp, 0, MAVLINK_MSG_ID_AIRLINK_EYE_HP_LEN);
|
||||
memcpy(airlink_eye_hp, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
#pragma once
|
||||
// MESSAGE AIRLINK_EYE_TURN_INIT PACKING
|
||||
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT 52005
|
||||
|
||||
|
||||
typedef struct __mavlink_airlink_eye_turn_init_t {
|
||||
uint8_t resp_type; /*< Turn init type*/
|
||||
} mavlink_airlink_eye_turn_init_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN 1
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_MIN_LEN 1
|
||||
#define MAVLINK_MSG_ID_52005_LEN 1
|
||||
#define MAVLINK_MSG_ID_52005_MIN_LEN 1
|
||||
|
||||
#define MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_CRC 145
|
||||
#define MAVLINK_MSG_ID_52005_CRC 145
|
||||
|
||||
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_AIRLINK_EYE_TURN_INIT { \
|
||||
52005, \
|
||||
"AIRLINK_EYE_TURN_INIT", \
|
||||
1, \
|
||||
{ { "resp_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_airlink_eye_turn_init_t, resp_type) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_AIRLINK_EYE_TURN_INIT { \
|
||||
"AIRLINK_EYE_TURN_INIT", \
|
||||
1, \
|
||||
{ { "resp_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_airlink_eye_turn_init_t, resp_type) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Pack a airlink_eye_turn_init message
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param resp_type Turn init type
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_turn_init_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t resp_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN];
|
||||
_mav_put_uint8_t(buf, 0, resp_type);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN);
|
||||
#else
|
||||
mavlink_airlink_eye_turn_init_t packet;
|
||||
packet.resp_type = resp_type;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pack a airlink_eye_turn_init message on a channel
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param resp_type Turn init type
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_turn_init_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t resp_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN];
|
||||
_mav_put_uint8_t(buf, 0, resp_type);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN);
|
||||
#else
|
||||
mavlink_airlink_eye_turn_init_t packet;
|
||||
packet.resp_type = resp_type;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a airlink_eye_turn_init struct
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param airlink_eye_turn_init C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_turn_init_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_airlink_eye_turn_init_t* airlink_eye_turn_init)
|
||||
{
|
||||
return mavlink_msg_airlink_eye_turn_init_pack(system_id, component_id, msg, airlink_eye_turn_init->resp_type);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a airlink_eye_turn_init struct on a channel
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param airlink_eye_turn_init C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_airlink_eye_turn_init_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_airlink_eye_turn_init_t* airlink_eye_turn_init)
|
||||
{
|
||||
return mavlink_msg_airlink_eye_turn_init_pack_chan(system_id, component_id, chan, msg, airlink_eye_turn_init->resp_type);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a airlink_eye_turn_init message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param resp_type Turn init type
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_airlink_eye_turn_init_send(mavlink_channel_t chan, uint8_t resp_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN];
|
||||
_mav_put_uint8_t(buf, 0, resp_type);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT, buf, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_CRC);
|
||||
#else
|
||||
mavlink_airlink_eye_turn_init_t packet;
|
||||
packet.resp_type = resp_type;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT, (const char *)&packet, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a airlink_eye_turn_init message
|
||||
* @param chan MAVLink channel to send the message
|
||||
* @param struct The MAVLink struct to serialize
|
||||
*/
|
||||
static inline void mavlink_msg_airlink_eye_turn_init_send_struct(mavlink_channel_t chan, const mavlink_airlink_eye_turn_init_t* airlink_eye_turn_init)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mavlink_msg_airlink_eye_turn_init_send(chan, airlink_eye_turn_init->resp_type);
|
||||
#else
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT, (const char *)airlink_eye_turn_init, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
|
||||
/*
|
||||
This variant of _send() can be used to save stack space by re-using
|
||||
memory from the receive buffer. The caller provides a
|
||||
mavlink_message_t which is the size of a full mavlink message. This
|
||||
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_airlink_eye_turn_init_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t resp_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint8_t(buf, 0, resp_type);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT, buf, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_CRC);
|
||||
#else
|
||||
mavlink_airlink_eye_turn_init_t *packet = (mavlink_airlink_eye_turn_init_t *)msgbuf;
|
||||
packet->resp_type = resp_type;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT, (const char *)packet, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_MIN_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_CRC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// MESSAGE AIRLINK_EYE_TURN_INIT UNPACKING
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field resp_type from airlink_eye_turn_init message
|
||||
*
|
||||
* @return Turn init type
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_airlink_eye_turn_init_get_resp_type(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a airlink_eye_turn_init message into a struct
|
||||
*
|
||||
* @param msg The message to decode
|
||||
* @param airlink_eye_turn_init C-struct to decode the message contents into
|
||||
*/
|
||||
static inline void mavlink_msg_airlink_eye_turn_init_decode(const mavlink_message_t* msg, mavlink_airlink_eye_turn_init_t* airlink_eye_turn_init)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
airlink_eye_turn_init->resp_type = mavlink_msg_airlink_eye_turn_init_get_resp_type(msg);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN? msg->len : MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN;
|
||||
memset(airlink_eye_turn_init, 0, MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_LEN);
|
||||
memcpy(airlink_eye_turn_init, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
@@ -144,10 +144,254 @@ static void mavlink_test_airlink_auth_response(uint8_t system_id, uint8_t compon
|
||||
#endif
|
||||
}
|
||||
|
||||
static void mavlink_test_airlink_eye_gs_hole_push_request(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
mavlink_status_t *status = mavlink_get_channel_status(MAVLINK_COMM_0);
|
||||
if ((status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) && MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST >= 256) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
mavlink_message_t msg;
|
||||
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
|
||||
uint16_t i;
|
||||
mavlink_airlink_eye_gs_hole_push_request_t packet_in = {
|
||||
5
|
||||
};
|
||||
mavlink_airlink_eye_gs_hole_push_request_t packet1, packet2;
|
||||
memset(&packet1, 0, sizeof(packet1));
|
||||
packet1.resp_type = packet_in.resp_type;
|
||||
|
||||
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
|
||||
// cope with extensions
|
||||
memset(MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST_MIN_LEN);
|
||||
}
|
||||
#endif
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_gs_hole_push_request_encode(system_id, component_id, &msg, &packet1);
|
||||
mavlink_msg_airlink_eye_gs_hole_push_request_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_gs_hole_push_request_pack(system_id, component_id, &msg , packet1.resp_type );
|
||||
mavlink_msg_airlink_eye_gs_hole_push_request_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_gs_hole_push_request_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.resp_type );
|
||||
mavlink_msg_airlink_eye_gs_hole_push_request_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_to_send_buffer(buffer, &msg);
|
||||
for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
|
||||
comm_send_ch(MAVLINK_COMM_0, buffer[i]);
|
||||
}
|
||||
mavlink_msg_airlink_eye_gs_hole_push_request_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_gs_hole_push_request_send(MAVLINK_COMM_1 , packet1.resp_type );
|
||||
mavlink_msg_airlink_eye_gs_hole_push_request_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
#ifdef MAVLINK_HAVE_GET_MESSAGE_INFO
|
||||
MAVLINK_ASSERT(mavlink_get_message_info_by_name("AIRLINK_EYE_GS_HOLE_PUSH_REQUEST") != NULL);
|
||||
MAVLINK_ASSERT(mavlink_get_message_info_by_id(MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_REQUEST) != NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void mavlink_test_airlink_eye_gs_hole_push_response(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
mavlink_status_t *status = mavlink_get_channel_status(MAVLINK_COMM_0);
|
||||
if ((status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) && MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE >= 256) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
mavlink_message_t msg;
|
||||
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
|
||||
uint16_t i;
|
||||
mavlink_airlink_eye_gs_hole_push_response_t packet_in = {
|
||||
963497464,17,84,{ 151, 152, 153, 154 },{ 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178 }
|
||||
};
|
||||
mavlink_airlink_eye_gs_hole_push_response_t packet1, packet2;
|
||||
memset(&packet1, 0, sizeof(packet1));
|
||||
packet1.ip_port = packet_in.ip_port;
|
||||
packet1.resp_type = packet_in.resp_type;
|
||||
packet1.ip_version = packet_in.ip_version;
|
||||
|
||||
mav_array_memcpy(packet1.ip_address_4, packet_in.ip_address_4, sizeof(uint8_t)*4);
|
||||
mav_array_memcpy(packet1.ip_address_6, packet_in.ip_address_6, sizeof(uint8_t)*16);
|
||||
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
|
||||
// cope with extensions
|
||||
memset(MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE_MIN_LEN);
|
||||
}
|
||||
#endif
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_gs_hole_push_response_encode(system_id, component_id, &msg, &packet1);
|
||||
mavlink_msg_airlink_eye_gs_hole_push_response_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_gs_hole_push_response_pack(system_id, component_id, &msg , packet1.resp_type , packet1.ip_version , packet1.ip_address_4 , packet1.ip_address_6 , packet1.ip_port );
|
||||
mavlink_msg_airlink_eye_gs_hole_push_response_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_gs_hole_push_response_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.resp_type , packet1.ip_version , packet1.ip_address_4 , packet1.ip_address_6 , packet1.ip_port );
|
||||
mavlink_msg_airlink_eye_gs_hole_push_response_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_to_send_buffer(buffer, &msg);
|
||||
for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
|
||||
comm_send_ch(MAVLINK_COMM_0, buffer[i]);
|
||||
}
|
||||
mavlink_msg_airlink_eye_gs_hole_push_response_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_gs_hole_push_response_send(MAVLINK_COMM_1 , packet1.resp_type , packet1.ip_version , packet1.ip_address_4 , packet1.ip_address_6 , packet1.ip_port );
|
||||
mavlink_msg_airlink_eye_gs_hole_push_response_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
#ifdef MAVLINK_HAVE_GET_MESSAGE_INFO
|
||||
MAVLINK_ASSERT(mavlink_get_message_info_by_name("AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE") != NULL);
|
||||
MAVLINK_ASSERT(mavlink_get_message_info_by_id(MAVLINK_MSG_ID_AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE) != NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void mavlink_test_airlink_eye_hp(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
mavlink_status_t *status = mavlink_get_channel_status(MAVLINK_COMM_0);
|
||||
if ((status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) && MAVLINK_MSG_ID_AIRLINK_EYE_HP >= 256) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
mavlink_message_t msg;
|
||||
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
|
||||
uint16_t i;
|
||||
mavlink_airlink_eye_hp_t packet_in = {
|
||||
5
|
||||
};
|
||||
mavlink_airlink_eye_hp_t packet1, packet2;
|
||||
memset(&packet1, 0, sizeof(packet1));
|
||||
packet1.resp_type = packet_in.resp_type;
|
||||
|
||||
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
|
||||
// cope with extensions
|
||||
memset(MAVLINK_MSG_ID_AIRLINK_EYE_HP_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_AIRLINK_EYE_HP_MIN_LEN);
|
||||
}
|
||||
#endif
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_hp_encode(system_id, component_id, &msg, &packet1);
|
||||
mavlink_msg_airlink_eye_hp_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_hp_pack(system_id, component_id, &msg , packet1.resp_type );
|
||||
mavlink_msg_airlink_eye_hp_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_hp_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.resp_type );
|
||||
mavlink_msg_airlink_eye_hp_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_to_send_buffer(buffer, &msg);
|
||||
for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
|
||||
comm_send_ch(MAVLINK_COMM_0, buffer[i]);
|
||||
}
|
||||
mavlink_msg_airlink_eye_hp_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_hp_send(MAVLINK_COMM_1 , packet1.resp_type );
|
||||
mavlink_msg_airlink_eye_hp_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
#ifdef MAVLINK_HAVE_GET_MESSAGE_INFO
|
||||
MAVLINK_ASSERT(mavlink_get_message_info_by_name("AIRLINK_EYE_HP") != NULL);
|
||||
MAVLINK_ASSERT(mavlink_get_message_info_by_id(MAVLINK_MSG_ID_AIRLINK_EYE_HP) != NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void mavlink_test_airlink_eye_turn_init(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
mavlink_status_t *status = mavlink_get_channel_status(MAVLINK_COMM_0);
|
||||
if ((status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) && MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT >= 256) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
mavlink_message_t msg;
|
||||
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
|
||||
uint16_t i;
|
||||
mavlink_airlink_eye_turn_init_t packet_in = {
|
||||
5
|
||||
};
|
||||
mavlink_airlink_eye_turn_init_t packet1, packet2;
|
||||
memset(&packet1, 0, sizeof(packet1));
|
||||
packet1.resp_type = packet_in.resp_type;
|
||||
|
||||
|
||||
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
|
||||
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
|
||||
// cope with extensions
|
||||
memset(MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT_MIN_LEN);
|
||||
}
|
||||
#endif
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_turn_init_encode(system_id, component_id, &msg, &packet1);
|
||||
mavlink_msg_airlink_eye_turn_init_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_turn_init_pack(system_id, component_id, &msg , packet1.resp_type );
|
||||
mavlink_msg_airlink_eye_turn_init_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_turn_init_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.resp_type );
|
||||
mavlink_msg_airlink_eye_turn_init_decode(&msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_to_send_buffer(buffer, &msg);
|
||||
for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
|
||||
comm_send_ch(MAVLINK_COMM_0, buffer[i]);
|
||||
}
|
||||
mavlink_msg_airlink_eye_turn_init_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
memset(&packet2, 0, sizeof(packet2));
|
||||
mavlink_msg_airlink_eye_turn_init_send(MAVLINK_COMM_1 , packet1.resp_type );
|
||||
mavlink_msg_airlink_eye_turn_init_decode(last_msg, &packet2);
|
||||
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
|
||||
|
||||
#ifdef MAVLINK_HAVE_GET_MESSAGE_INFO
|
||||
MAVLINK_ASSERT(mavlink_get_message_info_by_name("AIRLINK_EYE_TURN_INIT") != NULL);
|
||||
MAVLINK_ASSERT(mavlink_get_message_info_by_id(MAVLINK_MSG_ID_AIRLINK_EYE_TURN_INIT) != NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void mavlink_test_csAirLink(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
|
||||
{
|
||||
mavlink_test_airlink_auth(system_id, component_id, last_msg);
|
||||
mavlink_test_airlink_auth_response(system_id, component_id, last_msg);
|
||||
mavlink_test_airlink_eye_gs_hole_push_request(system_id, component_id, last_msg);
|
||||
mavlink_test_airlink_eye_gs_hole_push_response(system_id, component_id, last_msg);
|
||||
mavlink_test_airlink_eye_hp(system_id, component_id, last_msg);
|
||||
mavlink_test_airlink_eye_turn_init(system_id, component_id, last_msg);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 100
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_CUBEPILOT.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_CUBEPILOT_XML_HASH -5760020655993210484
|
||||
#define MAVLINK_CUBEPILOT_XML_HASH 6596611090383384209
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -5760020655993210484
|
||||
#define MAVLINK_PRIMARY_XML_HASH 6596611090383384209
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_DEVELOPMENT.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_DEVELOPMENT_XML_HASH 637417637805984115
|
||||
#define MAVLINK_DEVELOPMENT_XML_HASH 7179464087613887894
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 637417637805984115
|
||||
#define MAVLINK_PRIMARY_XML_HASH 7179464087613887894
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_ICAROUS.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_ICAROUS_XML_HASH 7996130076135273323
|
||||
#define MAVLINK_ICAROUS_XML_HASH 3009406400933093156
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 7996130076135273323
|
||||
#define MAVLINK_PRIMARY_XML_HASH 3009406400933093156
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 46
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_MATRIXPILOT.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_MATRIXPILOT_XML_HASH 7674887411887697080
|
||||
#define MAVLINK_MATRIXPILOT_XML_HASH -2094448179346179136
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 7674887411887697080
|
||||
#define MAVLINK_PRIMARY_XML_HASH -2094448179346179136
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
@@ -14,6 +14,23 @@
|
||||
<description>Auth successful</description>
|
||||
</entry>
|
||||
</enum>
|
||||
<enum name="AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE">
|
||||
<entry value="0" name="AIRLINK_HPR_PARTNER_NOT_READY"/>
|
||||
<entry value="1" name="AIRLINK_HPR_PARTNER_READY"/>
|
||||
</enum>
|
||||
<enum name="AIRLINK_EYE_IP_VERSION">
|
||||
<entry value="0" name="AIRLINK_IP_V4"/>
|
||||
<entry value="1" name="AIRLINK_IP_V6"/>
|
||||
</enum>
|
||||
<enum name="AIRLINK_EYE_HOLE_PUSH_TYPE">
|
||||
<entry value="0" name="AIRLINK_HP_NOT_PENETRATED"/>
|
||||
<entry value="1" name="AIRLINK_HP_BROKEN"/>
|
||||
</enum>
|
||||
<enum name="AIRLINK_EYE_TURN_INIT_TYPE">
|
||||
<entry value="0" name="AIRLINK_TURN_INIT_START"/>
|
||||
<entry value="1" name="AIRLINK_TURN_INIT_OK"/>
|
||||
<entry value="2" name="AIRLINK_TURN_INIT_BAD"/>
|
||||
</enum>
|
||||
</enums>
|
||||
<messages>
|
||||
<message id="52000" name="AIRLINK_AUTH">
|
||||
@@ -25,5 +42,25 @@
|
||||
<description>Response to the authorization request</description>
|
||||
<field type="uint8_t" name="resp_type" enum="AIRLINK_AUTH_RESPONSE_TYPE">Response type</field>
|
||||
</message>
|
||||
<message id="52002" name="AIRLINK_EYE_GS_HOLE_PUSH_REQUEST">
|
||||
<description>Request to hole punching</description>
|
||||
<field type="uint8_t" name="resp_type" enum="AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE">Hole push response type</field>
|
||||
</message>
|
||||
<message id="52003" name="AIRLINK_EYE_GS_HOLE_PUSH_RESPONSE">
|
||||
<description>Response information about the connected device</description>
|
||||
<field type="uint8_t" name="resp_type" enum="AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE">Hole push response type</field>
|
||||
<field type="uint8_t" name="ip_version" enum="AIRLINK_EYE_IP_VERSION">ip version</field>
|
||||
<field type="uint8_t[4]" name="ip_address_4">ip 4 address</field>
|
||||
<field type="uint8_t[16]" name="ip_address_6">ip 6 address</field>
|
||||
<field type="uint32_t" name="ip_port">port</field>
|
||||
</message>
|
||||
<message id="52004" name="AIRLINK_EYE_HP">
|
||||
<description>A package with information about the hole punching status. It is used for constant sending to avoid NAT closing timeout.</description>
|
||||
<field type="uint8_t" name="resp_type" enum="AIRLINK_EYE_HOLE_PUSH_TYPE">Hole push response type</field>
|
||||
</message>
|
||||
<message id="52005" name="AIRLINK_EYE_TURN_INIT">
|
||||
<description>Initializing the TURN protocol</description>
|
||||
<field type="uint8_t" name="resp_type" enum="AIRLINK_EYE_TURN_INIT_TYPE">Turn init type</field>
|
||||
</message>
|
||||
</messages>
|
||||
</mavlink>
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 895578717143811184
|
||||
#define MAVLINK_PRIMARY_XML_HASH 6990176576158435032
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#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 895578717143811184
|
||||
#define MAVLINK_MINIMAL_XML_HASH 6990176576158435032
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 22
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 919569143298085973
|
||||
#define MAVLINK_PRIMARY_XML_HASH 2241368053555884668
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_PAPARAZZI.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_PAPARAZZI_XML_HASH 919569143298085973
|
||||
#define MAVLINK_PAPARAZZI_XML_HASH 2241368053555884668
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -6394637983215804227
|
||||
#define MAVLINK_PRIMARY_XML_HASH -2984496276416024277
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_PYTHON_ARRAY_TEST.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_PYTHON_ARRAY_TEST_XML_HASH -6394637983215804227
|
||||
#define MAVLINK_PYTHON_ARRAY_TEST_XML_HASH -2984496276416024277
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -3431600898831418386
|
||||
#define MAVLINK_PRIMARY_XML_HASH -557885868295501135
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_STANDARD.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_STANDARD_XML_HASH -3431600898831418386
|
||||
#define MAVLINK_STANDARD_XML_HASH -557885868295501135
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 22
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 8136738180118613236
|
||||
#define MAVLINK_PRIMARY_XML_HASH -5103317512902396477
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+4
-4
File diff suppressed because one or more lines are too long
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -4397923868005356312
|
||||
#define MAVLINK_PRIMARY_XML_HASH 8697368313095621257
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_TEST.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_TEST_XML_HASH -4397923868005356312
|
||||
#define MAVLINK_TEST_XML_HASH 8697368313095621257
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 179
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH -6162562411359048671
|
||||
#define MAVLINK_PRIMARY_XML_HASH -3697130354912404086
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_UAVIONIX.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_UAVIONIX_XML_HASH -6162562411359048671
|
||||
#define MAVLINK_UAVIONIX_XML_HASH -3697130354912404086
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#ifndef MAVLINK_H
|
||||
#define MAVLINK_H
|
||||
|
||||
#define MAVLINK_PRIMARY_XML_HASH 8580931019108164187
|
||||
#define MAVLINK_PRIMARY_XML_HASH -4355782560967296552
|
||||
|
||||
#ifndef MAVLINK_STX
|
||||
#define MAVLINK_STX 253
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#error Wrong include order: MAVLINK_UALBERTA.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_UALBERTA_XML_HASH 8580931019108164187
|
||||
#define MAVLINK_UALBERTA_XML_HASH -4355782560967296552
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#ifndef MAVLINK_VERSION_H
|
||||
#define MAVLINK_VERSION_H
|
||||
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 07 2023"
|
||||
#define MAVLINK_BUILD_DATE "Thu Dec 14 2023"
|
||||
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
|
||||
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
|
||||
|
||||
|
||||
Reference in New Issue
Block a user