✨feat: 更好兼容matlab
uin64->uint32 payload64->payload
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#define MAVLINK_MSG_ID_AHRS3 182
|
||||
|
||||
MAVPACKED(
|
||||
|
||||
typedef struct __mavlink_ahrs3_t {
|
||||
float roll; /*< [rad] Roll angle.*/
|
||||
float pitch; /*< [rad] Pitch angle.*/
|
||||
@@ -15,7 +15,7 @@ typedef struct __mavlink_ahrs3_t {
|
||||
float v2; /*< Test variable2.*/
|
||||
float v3; /*< Test variable3.*/
|
||||
float v4; /*< Test variable4.*/
|
||||
}) mavlink_ahrs3_t;
|
||||
} mavlink_ahrs3_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_AHRS3_LEN 40
|
||||
#define MAVLINK_MSG_ID_AHRS3_MIN_LEN 40
|
||||
@@ -80,7 +80,7 @@ typedef struct __mavlink_ahrs3_t {
|
||||
* @param v4 Test variable4.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_ahrs3_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
static inline uint16_t mavlink_msg_ahrs3_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
float roll, float pitch, float yaw, float altitude, int32_t lat, int32_t lng, float v1, float v2, float v3, float v4)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
@@ -135,7 +135,7 @@ static inline uint16_t mavlink_msg_ahrs3_pack(uint8_t system_id, uint8_t compone
|
||||
* @param v4 Test variable4.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_ahrs3_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
static inline uint16_t mavlink_msg_ahrs3_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
float roll,float pitch,float yaw,float altitude,int32_t lat,int32_t lng,float v1,float v2,float v3,float v4)
|
||||
{
|
||||
@@ -181,7 +181,7 @@ static inline uint16_t mavlink_msg_ahrs3_pack_chan(uint8_t system_id, uint8_t co
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param ahrs3 C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_ahrs3_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_ahrs3_t* ahrs3)
|
||||
static inline uint16_t mavlink_msg_ahrs3_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_ahrs3_t* ahrs3)
|
||||
{
|
||||
return mavlink_msg_ahrs3_pack(system_id, component_id, msg, ahrs3->roll, ahrs3->pitch, ahrs3->yaw, ahrs3->altitude, ahrs3->lat, ahrs3->lng, ahrs3->v1, ahrs3->v2, ahrs3->v3, ahrs3->v4);
|
||||
}
|
||||
@@ -195,7 +195,7 @@ static inline uint16_t mavlink_msg_ahrs3_encode(uint8_t system_id, uint8_t compo
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param ahrs3 C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_ahrs3_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_ahrs3_t* ahrs3)
|
||||
static inline uint16_t mavlink_msg_ahrs3_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_ahrs3_t* ahrs3)
|
||||
{
|
||||
return mavlink_msg_ahrs3_pack_chan(system_id, component_id, chan, msg, ahrs3->roll, ahrs3->pitch, ahrs3->yaw, ahrs3->altitude, ahrs3->lat, ahrs3->lng, ahrs3->v1, ahrs3->v2, ahrs3->v3, ahrs3->v4);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user