✨feat: 更好兼容matlab
uin64->uint32 payload64->payload
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
|
||||
#define MAVLINK_MSG_ID_GOPRO_SET_RESPONSE 219
|
||||
|
||||
MAVPACKED(
|
||||
|
||||
typedef struct __mavlink_gopro_set_response_t {
|
||||
uint8_t cmd_id; /*< Command ID.*/
|
||||
uint8_t status; /*< Status.*/
|
||||
}) mavlink_gopro_set_response_t;
|
||||
} mavlink_gopro_set_response_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_GOPRO_SET_RESPONSE_LEN 2
|
||||
#define MAVLINK_MSG_ID_GOPRO_SET_RESPONSE_MIN_LEN 2
|
||||
@@ -48,7 +48,7 @@ typedef struct __mavlink_gopro_set_response_t {
|
||||
* @param status Status.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_gopro_set_response_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
static inline uint16_t mavlink_msg_gopro_set_response_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t cmd_id, uint8_t status)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
@@ -79,7 +79,7 @@ static inline uint16_t mavlink_msg_gopro_set_response_pack(uint8_t system_id, ui
|
||||
* @param status Status.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_gopro_set_response_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
static inline uint16_t mavlink_msg_gopro_set_response_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t cmd_id,uint8_t status)
|
||||
{
|
||||
@@ -109,7 +109,7 @@ static inline uint16_t mavlink_msg_gopro_set_response_pack_chan(uint8_t system_i
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param gopro_set_response C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_gopro_set_response_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_gopro_set_response_t* gopro_set_response)
|
||||
static inline uint16_t mavlink_msg_gopro_set_response_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_gopro_set_response_t* gopro_set_response)
|
||||
{
|
||||
return mavlink_msg_gopro_set_response_pack(system_id, component_id, msg, gopro_set_response->cmd_id, gopro_set_response->status);
|
||||
}
|
||||
@@ -123,7 +123,7 @@ static inline uint16_t mavlink_msg_gopro_set_response_encode(uint8_t system_id,
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param gopro_set_response C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_gopro_set_response_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_gopro_set_response_t* gopro_set_response)
|
||||
static inline uint16_t mavlink_msg_gopro_set_response_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_gopro_set_response_t* gopro_set_response)
|
||||
{
|
||||
return mavlink_msg_gopro_set_response_pack_chan(system_id, component_id, chan, msg, gopro_set_response->cmd_id, gopro_set_response->status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user