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,7 +3,7 @@
#define MAVLINK_MSG_ID_EMB_ATMO_COM 20101
MAVPACKED(
typedef struct __mavlink_emb_atmo_com_t {
uint32_t time_boot_ms; /*< [ms] Timestamp (milliseconds since system boot)*/
float Airspeed; /*< Magnitude of air velocity [m/s]*/
@@ -12,7 +12,7 @@ typedef struct __mavlink_emb_atmo_com_t {
float ps; /*< Static pressure [Pa]*/
float qbar; /*< Dynamic pressure [Pa]*/
uint8_t seq; /*< sequeue index*/
}) mavlink_emb_atmo_com_t;
} mavlink_emb_atmo_com_t;
#define MAVLINK_MSG_ID_EMB_ATMO_COM_LEN 25
#define MAVLINK_MSG_ID_EMB_ATMO_COM_MIN_LEN 25
@@ -68,7 +68,7 @@ typedef struct __mavlink_emb_atmo_com_t {
* @param seq sequeue index
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_emb_atmo_com_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
static inline uint16_t mavlink_msg_emb_atmo_com_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
uint32_t time_boot_ms, float Airspeed, float beta, float alpha, float ps, float qbar, uint8_t seq)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
@@ -114,7 +114,7 @@ static inline uint16_t mavlink_msg_emb_atmo_com_pack(uint8_t system_id, uint8_t
* @param seq sequeue index
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_emb_atmo_com_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
static inline uint16_t mavlink_msg_emb_atmo_com_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
mavlink_message_t* msg,
uint32_t time_boot_ms,float Airspeed,float beta,float alpha,float ps,float qbar,uint8_t seq)
{
@@ -154,7 +154,7 @@ static inline uint16_t mavlink_msg_emb_atmo_com_pack_chan(uint8_t system_id, uin
* @param msg The MAVLink message to compress the data into
* @param emb_atmo_com C-struct to read the message contents from
*/
static inline uint16_t mavlink_msg_emb_atmo_com_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_emb_atmo_com_t* emb_atmo_com)
static inline uint16_t mavlink_msg_emb_atmo_com_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_emb_atmo_com_t* emb_atmo_com)
{
return mavlink_msg_emb_atmo_com_pack(system_id, component_id, msg, emb_atmo_com->time_boot_ms, emb_atmo_com->Airspeed, emb_atmo_com->beta, emb_atmo_com->alpha, emb_atmo_com->ps, emb_atmo_com->qbar, emb_atmo_com->seq);
}
@@ -168,7 +168,7 @@ static inline uint16_t mavlink_msg_emb_atmo_com_encode(uint8_t system_id, uint8_
* @param msg The MAVLink message to compress the data into
* @param emb_atmo_com C-struct to read the message contents from
*/
static inline uint16_t mavlink_msg_emb_atmo_com_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_emb_atmo_com_t* emb_atmo_com)
static inline uint16_t mavlink_msg_emb_atmo_com_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_emb_atmo_com_t* emb_atmo_com)
{
return mavlink_msg_emb_atmo_com_pack_chan(system_id, component_id, chan, msg, emb_atmo_com->time_boot_ms, emb_atmo_com->Airspeed, emb_atmo_com->beta, emb_atmo_com->alpha, emb_atmo_com->ps, emb_atmo_com->qbar, emb_atmo_com->seq);
}