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_MOUNT_ORIENTATION 265
MAVPACKED(
typedef struct __mavlink_mount_orientation_t {
uint32_t time_boot_ms; /*< [ms] Timestamp (time since system boot).*/
float roll; /*< [deg] Roll in global frame (set to NaN for invalid).*/
float pitch; /*< [deg] Pitch in global frame (set to NaN for invalid).*/
float yaw; /*< [deg] Yaw relative to vehicle(set to NaN for invalid).*/
float yaw_absolute; /*< [deg] Yaw in absolute frame, North is 0 (set to NaN for invalid).*/
}) mavlink_mount_orientation_t;
} mavlink_mount_orientation_t;
#define MAVLINK_MSG_ID_MOUNT_ORIENTATION_LEN 20
#define MAVLINK_MSG_ID_MOUNT_ORIENTATION_MIN_LEN 16
@@ -60,7 +60,7 @@ typedef struct __mavlink_mount_orientation_t {
* @param yaw_absolute [deg] Yaw in absolute frame, North is 0 (set to NaN for invalid).
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_mount_orientation_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
static inline uint16_t mavlink_msg_mount_orientation_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
uint32_t time_boot_ms, float roll, float pitch, float yaw, float yaw_absolute)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
@@ -100,7 +100,7 @@ static inline uint16_t mavlink_msg_mount_orientation_pack(uint8_t system_id, uin
* @param yaw_absolute [deg] Yaw in absolute frame, North is 0 (set to NaN for invalid).
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_mount_orientation_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
static inline uint16_t mavlink_msg_mount_orientation_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
mavlink_message_t* msg,
uint32_t time_boot_ms,float roll,float pitch,float yaw,float yaw_absolute)
{
@@ -136,7 +136,7 @@ static inline uint16_t mavlink_msg_mount_orientation_pack_chan(uint8_t system_id
* @param msg The MAVLink message to compress the data into
* @param mount_orientation C-struct to read the message contents from
*/
static inline uint16_t mavlink_msg_mount_orientation_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_mount_orientation_t* mount_orientation)
static inline uint16_t mavlink_msg_mount_orientation_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_mount_orientation_t* mount_orientation)
{
return mavlink_msg_mount_orientation_pack(system_id, component_id, msg, mount_orientation->time_boot_ms, mount_orientation->roll, mount_orientation->pitch, mount_orientation->yaw, mount_orientation->yaw_absolute);
}
@@ -150,7 +150,7 @@ static inline uint16_t mavlink_msg_mount_orientation_encode(uint8_t system_id, u
* @param msg The MAVLink message to compress the data into
* @param mount_orientation C-struct to read the message contents from
*/
static inline uint16_t mavlink_msg_mount_orientation_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_mount_orientation_t* mount_orientation)
static inline uint16_t mavlink_msg_mount_orientation_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_mount_orientation_t* mount_orientation)
{
return mavlink_msg_mount_orientation_pack_chan(system_id, component_id, chan, msg, mount_orientation->time_boot_ms, mount_orientation->roll, mount_orientation->pitch, mount_orientation->yaw, mount_orientation->yaw_absolute);
}