✨feat: 更好兼容matlab
uin64->uint32 payload64->payload
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#define MAVLINK_MSG_ID_WOW_SENSOR 20007
|
||||
|
||||
MAVPACKED(
|
||||
|
||||
typedef struct __mavlink_wow_sensor_t {
|
||||
uint8_t ch1; /*< ch1*/
|
||||
uint8_t ch2; /*< ch2*/
|
||||
@@ -11,7 +11,7 @@ typedef struct __mavlink_wow_sensor_t {
|
||||
uint8_t ch4; /*< ch4*/
|
||||
uint8_t ch5; /*< ch5*/
|
||||
uint8_t ch6; /*< ch6*/
|
||||
}) mavlink_wow_sensor_t;
|
||||
} mavlink_wow_sensor_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_WOW_SENSOR_LEN 6
|
||||
#define MAVLINK_MSG_ID_WOW_SENSOR_MIN_LEN 6
|
||||
@@ -64,7 +64,7 @@ typedef struct __mavlink_wow_sensor_t {
|
||||
* @param ch6 ch6
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_wow_sensor_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
static inline uint16_t mavlink_msg_wow_sensor_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t ch1, uint8_t ch2, uint8_t ch3, uint8_t ch4, uint8_t ch5, uint8_t ch6)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
@@ -107,7 +107,7 @@ static inline uint16_t mavlink_msg_wow_sensor_pack(uint8_t system_id, uint8_t co
|
||||
* @param ch6 ch6
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_wow_sensor_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
static inline uint16_t mavlink_msg_wow_sensor_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t ch1,uint8_t ch2,uint8_t ch3,uint8_t ch4,uint8_t ch5,uint8_t ch6)
|
||||
{
|
||||
@@ -145,7 +145,7 @@ static inline uint16_t mavlink_msg_wow_sensor_pack_chan(uint8_t system_id, uint8
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param wow_sensor C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_wow_sensor_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_wow_sensor_t* wow_sensor)
|
||||
static inline uint16_t mavlink_msg_wow_sensor_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_wow_sensor_t* wow_sensor)
|
||||
{
|
||||
return mavlink_msg_wow_sensor_pack(system_id, component_id, msg, wow_sensor->ch1, wow_sensor->ch2, wow_sensor->ch3, wow_sensor->ch4, wow_sensor->ch5, wow_sensor->ch6);
|
||||
}
|
||||
@@ -159,7 +159,7 @@ static inline uint16_t mavlink_msg_wow_sensor_encode(uint8_t system_id, uint8_t
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param wow_sensor C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_wow_sensor_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_wow_sensor_t* wow_sensor)
|
||||
static inline uint16_t mavlink_msg_wow_sensor_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_wow_sensor_t* wow_sensor)
|
||||
{
|
||||
return mavlink_msg_wow_sensor_pack_chan(system_id, component_id, chan, msg, wow_sensor->ch1, wow_sensor->ch2, wow_sensor->ch3, wow_sensor->ch4, wow_sensor->ch5, wow_sensor->ch6);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user