✨feat: 更好兼容matlab
uin64->uint32 payload64->payload
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#define MAVLINK_MSG_ID_GPS_RTK 127
|
||||
|
||||
MAVPACKED(
|
||||
|
||||
typedef struct __mavlink_gps_rtk_t {
|
||||
uint32_t time_last_baseline_ms; /*< [ms] Time since boot of last baseline message received.*/
|
||||
uint32_t tow; /*< [ms] GPS Time of Week of last baseline*/
|
||||
@@ -18,7 +18,7 @@ typedef struct __mavlink_gps_rtk_t {
|
||||
uint8_t rtk_rate; /*< [Hz] Rate of baseline messages being received by GPS*/
|
||||
uint8_t nsats; /*< Current number of sats used for RTK calculation.*/
|
||||
uint8_t baseline_coords_type; /*< Coordinate system of baseline*/
|
||||
}) mavlink_gps_rtk_t;
|
||||
} mavlink_gps_rtk_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_GPS_RTK_LEN 35
|
||||
#define MAVLINK_MSG_ID_GPS_RTK_MIN_LEN 35
|
||||
@@ -92,7 +92,7 @@ typedef struct __mavlink_gps_rtk_t {
|
||||
* @param iar_num_hypotheses Current number of integer ambiguity hypotheses.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_gps_rtk_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
static inline uint16_t mavlink_msg_gps_rtk_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint32_t time_last_baseline_ms, uint8_t rtk_receiver_id, uint16_t wn, uint32_t tow, uint8_t rtk_health, uint8_t rtk_rate, uint8_t nsats, uint8_t baseline_coords_type, int32_t baseline_a_mm, int32_t baseline_b_mm, int32_t baseline_c_mm, uint32_t accuracy, int32_t iar_num_hypotheses)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
@@ -156,7 +156,7 @@ static inline uint16_t mavlink_msg_gps_rtk_pack(uint8_t system_id, uint8_t compo
|
||||
* @param iar_num_hypotheses Current number of integer ambiguity hypotheses.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_gps_rtk_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
static inline uint16_t mavlink_msg_gps_rtk_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint32_t time_last_baseline_ms,uint8_t rtk_receiver_id,uint16_t wn,uint32_t tow,uint8_t rtk_health,uint8_t rtk_rate,uint8_t nsats,uint8_t baseline_coords_type,int32_t baseline_a_mm,int32_t baseline_b_mm,int32_t baseline_c_mm,uint32_t accuracy,int32_t iar_num_hypotheses)
|
||||
{
|
||||
@@ -208,7 +208,7 @@ static inline uint16_t mavlink_msg_gps_rtk_pack_chan(uint8_t system_id, uint8_t
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param gps_rtk C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_gps_rtk_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_gps_rtk_t* gps_rtk)
|
||||
static inline uint16_t mavlink_msg_gps_rtk_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_gps_rtk_t* gps_rtk)
|
||||
{
|
||||
return mavlink_msg_gps_rtk_pack(system_id, component_id, msg, gps_rtk->time_last_baseline_ms, gps_rtk->rtk_receiver_id, gps_rtk->wn, gps_rtk->tow, gps_rtk->rtk_health, gps_rtk->rtk_rate, gps_rtk->nsats, gps_rtk->baseline_coords_type, gps_rtk->baseline_a_mm, gps_rtk->baseline_b_mm, gps_rtk->baseline_c_mm, gps_rtk->accuracy, gps_rtk->iar_num_hypotheses);
|
||||
}
|
||||
@@ -222,7 +222,7 @@ static inline uint16_t mavlink_msg_gps_rtk_encode(uint8_t system_id, uint8_t com
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param gps_rtk C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_gps_rtk_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_gps_rtk_t* gps_rtk)
|
||||
static inline uint16_t mavlink_msg_gps_rtk_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_gps_rtk_t* gps_rtk)
|
||||
{
|
||||
return mavlink_msg_gps_rtk_pack_chan(system_id, component_id, chan, msg, gps_rtk->time_last_baseline_ms, gps_rtk->rtk_receiver_id, gps_rtk->wn, gps_rtk->tow, gps_rtk->rtk_health, gps_rtk->rtk_rate, gps_rtk->nsats, gps_rtk->baseline_coords_type, gps_rtk->baseline_a_mm, gps_rtk->baseline_b_mm, gps_rtk->baseline_c_mm, gps_rtk->accuracy, gps_rtk->iar_num_hypotheses);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user