feat: 更好兼容matlab

uin64->uint32
payload64->payload
This commit is contained in:
matt
2020-09-20 10:12:24 +08:00
parent 1465895353
commit e79d1f21fb
289 changed files with 6428 additions and 15915 deletions
@@ -3,14 +3,14 @@
#define MAVLINK_MSG_ID_DEVICE_OP_READ_REPLY 11001
MAVPACKED(
typedef struct __mavlink_device_op_read_reply_t {
uint32_t request_id; /*< Request ID - copied from request.*/
uint8_t result; /*< 0 for success, anything else is failure code.*/
uint8_t regstart; /*< Starting register.*/
uint8_t count; /*< Count of bytes read.*/
uint8_t data[128]; /*< Reply data.*/
}) mavlink_device_op_read_reply_t;
} mavlink_device_op_read_reply_t;
#define MAVLINK_MSG_ID_DEVICE_OP_READ_REPLY_LEN 135
#define MAVLINK_MSG_ID_DEVICE_OP_READ_REPLY_MIN_LEN 135
@@ -60,7 +60,7 @@ typedef struct __mavlink_device_op_read_reply_t {
* @param data Reply data.
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_device_op_read_reply_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
static inline uint16_t mavlink_msg_device_op_read_reply_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
uint32_t request_id, uint8_t result, uint8_t regstart, uint8_t count, const uint8_t *data)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
@@ -98,7 +98,7 @@ static inline uint16_t mavlink_msg_device_op_read_reply_pack(uint8_t system_id,
* @param data Reply data.
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_device_op_read_reply_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
static inline uint16_t mavlink_msg_device_op_read_reply_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
mavlink_message_t* msg,
uint32_t request_id,uint8_t result,uint8_t regstart,uint8_t count,const uint8_t *data)
{
@@ -132,7 +132,7 @@ static inline uint16_t mavlink_msg_device_op_read_reply_pack_chan(uint8_t system
* @param msg The MAVLink message to compress the data into
* @param device_op_read_reply C-struct to read the message contents from
*/
static inline uint16_t mavlink_msg_device_op_read_reply_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_device_op_read_reply_t* device_op_read_reply)
static inline uint16_t mavlink_msg_device_op_read_reply_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_device_op_read_reply_t* device_op_read_reply)
{
return mavlink_msg_device_op_read_reply_pack(system_id, component_id, msg, device_op_read_reply->request_id, device_op_read_reply->result, device_op_read_reply->regstart, device_op_read_reply->count, device_op_read_reply->data);
}
@@ -146,7 +146,7 @@ static inline uint16_t mavlink_msg_device_op_read_reply_encode(uint8_t system_id
* @param msg The MAVLink message to compress the data into
* @param device_op_read_reply C-struct to read the message contents from
*/
static inline uint16_t mavlink_msg_device_op_read_reply_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_device_op_read_reply_t* device_op_read_reply)
static inline uint16_t mavlink_msg_device_op_read_reply_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_device_op_read_reply_t* device_op_read_reply)
{
return mavlink_msg_device_op_read_reply_pack_chan(system_id, component_id, chan, msg, device_op_read_reply->request_id, device_op_read_reply->result, device_op_read_reply->regstart, device_op_read_reply->count, device_op_read_reply->data);
}