update protocol

This commit is contained in:
Matt
2018-08-07 10:12:17 +08:00
parent 6a1a7939a4
commit 730db31376
202 changed files with 9361 additions and 6933 deletions
@@ -5,13 +5,13 @@
MAVPACKED(
typedef struct __mavlink_data_transmission_handshake_t {
uint32_t size; /*< [bytes] total data size in bytes (set on ACK only)*/
uint16_t width; /*< Width of a matrix or image*/
uint16_t height; /*< Height of a matrix or image*/
uint16_t packets; /*< number of packets beeing sent (set on ACK only)*/
uint8_t type; /*< type of requested/acknowledged data (as defined in ENUM DATA_TYPES in mavlink/include/mavlink_types.h)*/
uint8_t payload; /*< [bytes] payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only)*/
uint8_t jpg_quality; /*< [%] JPEG quality out of [1,100]*/
uint32_t size; /*< [bytes] total data size (set on ACK only).*/
uint16_t width; /*< Width of a matrix or image.*/
uint16_t height; /*< Height of a matrix or image.*/
uint16_t packets; /*< Number of packets being sent (set on ACK only).*/
uint8_t type; /*< Type of requested/acknowledged data.*/
uint8_t payload; /*< [bytes] Payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only).*/
uint8_t jpg_quality; /*< [%] JPEG quality. Values: [1-100].*/
}) mavlink_data_transmission_handshake_t;
#define MAVLINK_MSG_ID_DATA_TRANSMISSION_HANDSHAKE_LEN 13
@@ -59,13 +59,13 @@ typedef struct __mavlink_data_transmission_handshake_t {
* @param component_id ID of this component (e.g. 200 for IMU)
* @param msg The MAVLink message to compress the data into
*
* @param type type of requested/acknowledged data (as defined in ENUM DATA_TYPES in mavlink/include/mavlink_types.h)
* @param size [bytes] total data size in bytes (set on ACK only)
* @param width Width of a matrix or image
* @param height Height of a matrix or image
* @param packets number of packets beeing sent (set on ACK only)
* @param payload [bytes] payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only)
* @param jpg_quality [%] JPEG quality out of [1,100]
* @param type Type of requested/acknowledged data.
* @param size [bytes] total data size (set on ACK only).
* @param width Width of a matrix or image.
* @param height Height of a matrix or image.
* @param packets Number of packets being sent (set on ACK only).
* @param payload [bytes] Payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only).
* @param jpg_quality [%] JPEG quality. Values: [1-100].
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_data_transmission_handshake_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
@@ -105,13 +105,13 @@ static inline uint16_t mavlink_msg_data_transmission_handshake_pack(uint8_t syst
* @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 type type of requested/acknowledged data (as defined in ENUM DATA_TYPES in mavlink/include/mavlink_types.h)
* @param size [bytes] total data size in bytes (set on ACK only)
* @param width Width of a matrix or image
* @param height Height of a matrix or image
* @param packets number of packets beeing sent (set on ACK only)
* @param payload [bytes] payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only)
* @param jpg_quality [%] JPEG quality out of [1,100]
* @param type Type of requested/acknowledged data.
* @param size [bytes] total data size (set on ACK only).
* @param width Width of a matrix or image.
* @param height Height of a matrix or image.
* @param packets Number of packets being sent (set on ACK only).
* @param payload [bytes] Payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only).
* @param jpg_quality [%] JPEG quality. Values: [1-100].
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_data_transmission_handshake_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
@@ -177,13 +177,13 @@ static inline uint16_t mavlink_msg_data_transmission_handshake_encode_chan(uint8
* @brief Send a data_transmission_handshake message
* @param chan MAVLink channel to send the message
*
* @param type type of requested/acknowledged data (as defined in ENUM DATA_TYPES in mavlink/include/mavlink_types.h)
* @param size [bytes] total data size in bytes (set on ACK only)
* @param width Width of a matrix or image
* @param height Height of a matrix or image
* @param packets number of packets beeing sent (set on ACK only)
* @param payload [bytes] payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only)
* @param jpg_quality [%] JPEG quality out of [1,100]
* @param type Type of requested/acknowledged data.
* @param size [bytes] total data size (set on ACK only).
* @param width Width of a matrix or image.
* @param height Height of a matrix or image.
* @param packets Number of packets being sent (set on ACK only).
* @param payload [bytes] Payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only).
* @param jpg_quality [%] JPEG quality. Values: [1-100].
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
@@ -272,7 +272,7 @@ static inline void mavlink_msg_data_transmission_handshake_send_buf(mavlink_mess
/**
* @brief Get field type from data_transmission_handshake message
*
* @return type of requested/acknowledged data (as defined in ENUM DATA_TYPES in mavlink/include/mavlink_types.h)
* @return Type of requested/acknowledged data.
*/
static inline uint8_t mavlink_msg_data_transmission_handshake_get_type(const mavlink_message_t* msg)
{
@@ -282,7 +282,7 @@ static inline uint8_t mavlink_msg_data_transmission_handshake_get_type(const mav
/**
* @brief Get field size from data_transmission_handshake message
*
* @return [bytes] total data size in bytes (set on ACK only)
* @return [bytes] total data size (set on ACK only).
*/
static inline uint32_t mavlink_msg_data_transmission_handshake_get_size(const mavlink_message_t* msg)
{
@@ -292,7 +292,7 @@ static inline uint32_t mavlink_msg_data_transmission_handshake_get_size(const ma
/**
* @brief Get field width from data_transmission_handshake message
*
* @return Width of a matrix or image
* @return Width of a matrix or image.
*/
static inline uint16_t mavlink_msg_data_transmission_handshake_get_width(const mavlink_message_t* msg)
{
@@ -302,7 +302,7 @@ static inline uint16_t mavlink_msg_data_transmission_handshake_get_width(const m
/**
* @brief Get field height from data_transmission_handshake message
*
* @return Height of a matrix or image
* @return Height of a matrix or image.
*/
static inline uint16_t mavlink_msg_data_transmission_handshake_get_height(const mavlink_message_t* msg)
{
@@ -312,7 +312,7 @@ static inline uint16_t mavlink_msg_data_transmission_handshake_get_height(const
/**
* @brief Get field packets from data_transmission_handshake message
*
* @return number of packets beeing sent (set on ACK only)
* @return Number of packets being sent (set on ACK only).
*/
static inline uint16_t mavlink_msg_data_transmission_handshake_get_packets(const mavlink_message_t* msg)
{
@@ -322,7 +322,7 @@ static inline uint16_t mavlink_msg_data_transmission_handshake_get_packets(const
/**
* @brief Get field payload from data_transmission_handshake message
*
* @return [bytes] payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only)
* @return [bytes] Payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only).
*/
static inline uint8_t mavlink_msg_data_transmission_handshake_get_payload(const mavlink_message_t* msg)
{
@@ -332,7 +332,7 @@ static inline uint8_t mavlink_msg_data_transmission_handshake_get_payload(const
/**
* @brief Get field jpg_quality from data_transmission_handshake message
*
* @return [%] JPEG quality out of [1,100]
* @return [%] JPEG quality. Values: [1-100].
*/
static inline uint8_t mavlink_msg_data_transmission_handshake_get_jpg_quality(const mavlink_message_t* msg)
{