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
+6 -6
View File
@@ -3,14 +3,14 @@
#define MAVLINK_MSG_ID_ATMO_COMP_EXT 20006
MAVPACKED(
typedef struct __mavlink_atmo_comp_ext_t {
float Airspeed; /*< Magnitude of air velocity [m/s]*/
float beta; /*< Sideslip angle [rad]*/
float alpha; /*< Angle of attack [rad]*/
float ps; /*< Static pressure [Pa]*/
float qbar; /*< Dynamic pressure [Pa]*/
}) mavlink_atmo_comp_ext_t;
} mavlink_atmo_comp_ext_t;
#define MAVLINK_MSG_ID_ATMO_COMP_EXT_LEN 20
#define MAVLINK_MSG_ID_ATMO_COMP_EXT_MIN_LEN 20
@@ -60,7 +60,7 @@ typedef struct __mavlink_atmo_comp_ext_t {
* @param qbar Dynamic pressure [Pa]
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_atmo_comp_ext_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
static inline uint16_t mavlink_msg_atmo_comp_ext_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
float Airspeed, float beta, float alpha, float ps, float qbar)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
@@ -100,7 +100,7 @@ static inline uint16_t mavlink_msg_atmo_comp_ext_pack(uint8_t system_id, uint8_t
* @param qbar Dynamic pressure [Pa]
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_atmo_comp_ext_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
static inline uint16_t mavlink_msg_atmo_comp_ext_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
mavlink_message_t* msg,
float Airspeed,float beta,float alpha,float ps,float qbar)
{
@@ -136,7 +136,7 @@ static inline uint16_t mavlink_msg_atmo_comp_ext_pack_chan(uint8_t system_id, ui
* @param msg The MAVLink message to compress the data into
* @param atmo_comp_ext C-struct to read the message contents from
*/
static inline uint16_t mavlink_msg_atmo_comp_ext_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_atmo_comp_ext_t* atmo_comp_ext)
static inline uint16_t mavlink_msg_atmo_comp_ext_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_atmo_comp_ext_t* atmo_comp_ext)
{
return mavlink_msg_atmo_comp_ext_pack(system_id, component_id, msg, atmo_comp_ext->Airspeed, atmo_comp_ext->beta, atmo_comp_ext->alpha, atmo_comp_ext->ps, atmo_comp_ext->qbar);
}
@@ -150,7 +150,7 @@ static inline uint16_t mavlink_msg_atmo_comp_ext_encode(uint8_t system_id, uint8
* @param msg The MAVLink message to compress the data into
* @param atmo_comp_ext C-struct to read the message contents from
*/
static inline uint16_t mavlink_msg_atmo_comp_ext_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_atmo_comp_ext_t* atmo_comp_ext)
static inline uint16_t mavlink_msg_atmo_comp_ext_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_atmo_comp_ext_t* atmo_comp_ext)
{
return mavlink_msg_atmo_comp_ext_pack_chan(system_id, component_id, chan, msg, atmo_comp_ext->Airspeed, atmo_comp_ext->beta, atmo_comp_ext->alpha, atmo_comp_ext->ps, atmo_comp_ext->qbar);
}