✨feat: 更好兼容matlab
uin64->uint32 payload64->payload
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#define MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION 269
|
||||
|
||||
MAVPACKED(
|
||||
|
||||
typedef struct __mavlink_video_stream_information_t {
|
||||
float framerate; /*< [Hz] Frame rate*/
|
||||
uint32_t bitrate; /*< [bits/s] Bit rate in bits per second*/
|
||||
@@ -15,7 +15,7 @@ typedef struct __mavlink_video_stream_information_t {
|
||||
uint8_t stream_id; /*< Stream ID (1 for first, 2 for second, etc.)*/
|
||||
uint8_t count; /*< Number of streams available*/
|
||||
char uri[160]; /*< Video stream URI*/
|
||||
}) mavlink_video_stream_information_t;
|
||||
} mavlink_video_stream_information_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_LEN 180
|
||||
#define MAVLINK_MSG_ID_VIDEO_STREAM_INFORMATION_MIN_LEN 180
|
||||
@@ -80,7 +80,7 @@ typedef struct __mavlink_video_stream_information_t {
|
||||
* @param uri Video stream URI
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_video_stream_information_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
static inline uint16_t mavlink_msg_video_stream_information_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t stream_id, uint8_t count, uint16_t flags, float framerate, uint16_t resolution_h, uint16_t resolution_v, uint32_t bitrate, uint16_t rotation, uint16_t hfov, const char *uri)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
@@ -133,7 +133,7 @@ static inline uint16_t mavlink_msg_video_stream_information_pack(uint8_t system_
|
||||
* @param uri Video stream URI
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_video_stream_information_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
static inline uint16_t mavlink_msg_video_stream_information_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t stream_id,uint8_t count,uint16_t flags,float framerate,uint16_t resolution_h,uint16_t resolution_v,uint32_t bitrate,uint16_t rotation,uint16_t hfov,const char *uri)
|
||||
{
|
||||
@@ -177,7 +177,7 @@ static inline uint16_t mavlink_msg_video_stream_information_pack_chan(uint8_t sy
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param video_stream_information C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_video_stream_information_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_video_stream_information_t* video_stream_information)
|
||||
static inline uint16_t mavlink_msg_video_stream_information_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_video_stream_information_t* video_stream_information)
|
||||
{
|
||||
return mavlink_msg_video_stream_information_pack(system_id, component_id, msg, video_stream_information->stream_id, video_stream_information->count, video_stream_information->flags, video_stream_information->framerate, video_stream_information->resolution_h, video_stream_information->resolution_v, video_stream_information->bitrate, video_stream_information->rotation, video_stream_information->hfov, video_stream_information->uri);
|
||||
}
|
||||
@@ -191,7 +191,7 @@ static inline uint16_t mavlink_msg_video_stream_information_encode(uint8_t syste
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param video_stream_information C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_video_stream_information_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_video_stream_information_t* video_stream_information)
|
||||
static inline uint16_t mavlink_msg_video_stream_information_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_video_stream_information_t* video_stream_information)
|
||||
{
|
||||
return mavlink_msg_video_stream_information_pack_chan(system_id, component_id, chan, msg, video_stream_information->stream_id, video_stream_information->count, video_stream_information->flags, video_stream_information->framerate, video_stream_information->resolution_h, video_stream_information->resolution_v, video_stream_information->bitrate, video_stream_information->rotation, video_stream_information->hfov, video_stream_information->uri);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user