✨feat: 更好兼容matlab
uin64->uint32 payload64->payload
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
|
||||
#define MAVLINK_MSG_ID_WIND_COV 231
|
||||
|
||||
MAVPACKED(
|
||||
|
||||
typedef struct __mavlink_wind_cov_t {
|
||||
uint64_t time_usec; /*< [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.*/
|
||||
uint32_t time_usec; /*< [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.*/
|
||||
float wind_x; /*< [m/s] Wind in X (NED) direction*/
|
||||
float wind_y; /*< [m/s] Wind in Y (NED) direction*/
|
||||
float wind_z; /*< [m/s] Wind in Z (NED) direction*/
|
||||
@@ -14,15 +14,15 @@ typedef struct __mavlink_wind_cov_t {
|
||||
float wind_alt; /*< [m] Altitude (MSL) that this measurement was taken at*/
|
||||
float horiz_accuracy; /*< [m] Horizontal speed 1-STD accuracy*/
|
||||
float vert_accuracy; /*< [m] Vertical speed 1-STD accuracy*/
|
||||
}) mavlink_wind_cov_t;
|
||||
} mavlink_wind_cov_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_WIND_COV_LEN 40
|
||||
#define MAVLINK_MSG_ID_WIND_COV_MIN_LEN 40
|
||||
#define MAVLINK_MSG_ID_231_LEN 40
|
||||
#define MAVLINK_MSG_ID_231_MIN_LEN 40
|
||||
#define MAVLINK_MSG_ID_WIND_COV_LEN 36
|
||||
#define MAVLINK_MSG_ID_WIND_COV_MIN_LEN 36
|
||||
#define MAVLINK_MSG_ID_231_LEN 36
|
||||
#define MAVLINK_MSG_ID_231_MIN_LEN 36
|
||||
|
||||
#define MAVLINK_MSG_ID_WIND_COV_CRC 105
|
||||
#define MAVLINK_MSG_ID_231_CRC 105
|
||||
#define MAVLINK_MSG_ID_WIND_COV_CRC 189
|
||||
#define MAVLINK_MSG_ID_231_CRC 189
|
||||
|
||||
|
||||
|
||||
@@ -31,30 +31,30 @@ typedef struct __mavlink_wind_cov_t {
|
||||
231, \
|
||||
"WIND_COV", \
|
||||
9, \
|
||||
{ { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_wind_cov_t, time_usec) }, \
|
||||
{ "wind_x", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_wind_cov_t, wind_x) }, \
|
||||
{ "wind_y", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_wind_cov_t, wind_y) }, \
|
||||
{ "wind_z", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_wind_cov_t, wind_z) }, \
|
||||
{ "var_horiz", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_wind_cov_t, var_horiz) }, \
|
||||
{ "var_vert", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_wind_cov_t, var_vert) }, \
|
||||
{ "wind_alt", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_wind_cov_t, wind_alt) }, \
|
||||
{ "horiz_accuracy", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_wind_cov_t, horiz_accuracy) }, \
|
||||
{ "vert_accuracy", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_wind_cov_t, vert_accuracy) }, \
|
||||
{ { "time_usec", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_wind_cov_t, time_usec) }, \
|
||||
{ "wind_x", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_wind_cov_t, wind_x) }, \
|
||||
{ "wind_y", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_wind_cov_t, wind_y) }, \
|
||||
{ "wind_z", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_wind_cov_t, wind_z) }, \
|
||||
{ "var_horiz", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_wind_cov_t, var_horiz) }, \
|
||||
{ "var_vert", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_wind_cov_t, var_vert) }, \
|
||||
{ "wind_alt", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_wind_cov_t, wind_alt) }, \
|
||||
{ "horiz_accuracy", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_wind_cov_t, horiz_accuracy) }, \
|
||||
{ "vert_accuracy", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_wind_cov_t, vert_accuracy) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_WIND_COV { \
|
||||
"WIND_COV", \
|
||||
9, \
|
||||
{ { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_wind_cov_t, time_usec) }, \
|
||||
{ "wind_x", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_wind_cov_t, wind_x) }, \
|
||||
{ "wind_y", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_wind_cov_t, wind_y) }, \
|
||||
{ "wind_z", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_wind_cov_t, wind_z) }, \
|
||||
{ "var_horiz", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_wind_cov_t, var_horiz) }, \
|
||||
{ "var_vert", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_wind_cov_t, var_vert) }, \
|
||||
{ "wind_alt", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_wind_cov_t, wind_alt) }, \
|
||||
{ "horiz_accuracy", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_wind_cov_t, horiz_accuracy) }, \
|
||||
{ "vert_accuracy", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_wind_cov_t, vert_accuracy) }, \
|
||||
{ { "time_usec", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_wind_cov_t, time_usec) }, \
|
||||
{ "wind_x", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_wind_cov_t, wind_x) }, \
|
||||
{ "wind_y", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_wind_cov_t, wind_y) }, \
|
||||
{ "wind_z", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_wind_cov_t, wind_z) }, \
|
||||
{ "var_horiz", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_wind_cov_t, var_horiz) }, \
|
||||
{ "var_vert", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_wind_cov_t, var_vert) }, \
|
||||
{ "wind_alt", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_wind_cov_t, wind_alt) }, \
|
||||
{ "horiz_accuracy", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_wind_cov_t, horiz_accuracy) }, \
|
||||
{ "vert_accuracy", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_wind_cov_t, vert_accuracy) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
@@ -76,20 +76,20 @@ typedef struct __mavlink_wind_cov_t {
|
||||
* @param vert_accuracy [m] Vertical speed 1-STD accuracy
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_wind_cov_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint64_t time_usec, float wind_x, float wind_y, float wind_z, float var_horiz, float var_vert, float wind_alt, float horiz_accuracy, float vert_accuracy)
|
||||
static inline uint16_t mavlink_msg_wind_cov_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint32_t time_usec, float wind_x, float wind_y, float wind_z, float var_horiz, float var_vert, float wind_alt, float horiz_accuracy, float vert_accuracy)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_WIND_COV_LEN];
|
||||
_mav_put_uint64_t(buf, 0, time_usec);
|
||||
_mav_put_float(buf, 8, wind_x);
|
||||
_mav_put_float(buf, 12, wind_y);
|
||||
_mav_put_float(buf, 16, wind_z);
|
||||
_mav_put_float(buf, 20, var_horiz);
|
||||
_mav_put_float(buf, 24, var_vert);
|
||||
_mav_put_float(buf, 28, wind_alt);
|
||||
_mav_put_float(buf, 32, horiz_accuracy);
|
||||
_mav_put_float(buf, 36, vert_accuracy);
|
||||
_mav_put_uint32_t(buf, 0, time_usec);
|
||||
_mav_put_float(buf, 4, wind_x);
|
||||
_mav_put_float(buf, 8, wind_y);
|
||||
_mav_put_float(buf, 12, wind_z);
|
||||
_mav_put_float(buf, 16, var_horiz);
|
||||
_mav_put_float(buf, 20, var_vert);
|
||||
_mav_put_float(buf, 24, wind_alt);
|
||||
_mav_put_float(buf, 28, horiz_accuracy);
|
||||
_mav_put_float(buf, 32, vert_accuracy);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_WIND_COV_LEN);
|
||||
#else
|
||||
@@ -128,21 +128,21 @@ static inline uint16_t mavlink_msg_wind_cov_pack(uint8_t system_id, uint8_t comp
|
||||
* @param vert_accuracy [m] Vertical speed 1-STD accuracy
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_wind_cov_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
static inline uint16_t mavlink_msg_wind_cov_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint64_t time_usec,float wind_x,float wind_y,float wind_z,float var_horiz,float var_vert,float wind_alt,float horiz_accuracy,float vert_accuracy)
|
||||
uint32_t time_usec,float wind_x,float wind_y,float wind_z,float var_horiz,float var_vert,float wind_alt,float horiz_accuracy,float vert_accuracy)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_WIND_COV_LEN];
|
||||
_mav_put_uint64_t(buf, 0, time_usec);
|
||||
_mav_put_float(buf, 8, wind_x);
|
||||
_mav_put_float(buf, 12, wind_y);
|
||||
_mav_put_float(buf, 16, wind_z);
|
||||
_mav_put_float(buf, 20, var_horiz);
|
||||
_mav_put_float(buf, 24, var_vert);
|
||||
_mav_put_float(buf, 28, wind_alt);
|
||||
_mav_put_float(buf, 32, horiz_accuracy);
|
||||
_mav_put_float(buf, 36, vert_accuracy);
|
||||
_mav_put_uint32_t(buf, 0, time_usec);
|
||||
_mav_put_float(buf, 4, wind_x);
|
||||
_mav_put_float(buf, 8, wind_y);
|
||||
_mav_put_float(buf, 12, wind_z);
|
||||
_mav_put_float(buf, 16, var_horiz);
|
||||
_mav_put_float(buf, 20, var_vert);
|
||||
_mav_put_float(buf, 24, wind_alt);
|
||||
_mav_put_float(buf, 28, horiz_accuracy);
|
||||
_mav_put_float(buf, 32, vert_accuracy);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_WIND_COV_LEN);
|
||||
#else
|
||||
@@ -172,7 +172,7 @@ static inline uint16_t mavlink_msg_wind_cov_pack_chan(uint8_t system_id, uint8_t
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param wind_cov C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_wind_cov_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_wind_cov_t* wind_cov)
|
||||
static inline uint16_t mavlink_msg_wind_cov_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_wind_cov_t* wind_cov)
|
||||
{
|
||||
return mavlink_msg_wind_cov_pack(system_id, component_id, msg, wind_cov->time_usec, wind_cov->wind_x, wind_cov->wind_y, wind_cov->wind_z, wind_cov->var_horiz, wind_cov->var_vert, wind_cov->wind_alt, wind_cov->horiz_accuracy, wind_cov->vert_accuracy);
|
||||
}
|
||||
@@ -186,7 +186,7 @@ static inline uint16_t mavlink_msg_wind_cov_encode(uint8_t system_id, uint8_t co
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param wind_cov C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_wind_cov_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_wind_cov_t* wind_cov)
|
||||
static inline uint16_t mavlink_msg_wind_cov_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_wind_cov_t* wind_cov)
|
||||
{
|
||||
return mavlink_msg_wind_cov_pack_chan(system_id, component_id, chan, msg, wind_cov->time_usec, wind_cov->wind_x, wind_cov->wind_y, wind_cov->wind_z, wind_cov->var_horiz, wind_cov->var_vert, wind_cov->wind_alt, wind_cov->horiz_accuracy, wind_cov->vert_accuracy);
|
||||
}
|
||||
@@ -207,19 +207,19 @@ static inline uint16_t mavlink_msg_wind_cov_encode_chan(uint8_t system_id, uint8
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_wind_cov_send(mavlink_channel_t chan, uint64_t time_usec, float wind_x, float wind_y, float wind_z, float var_horiz, float var_vert, float wind_alt, float horiz_accuracy, float vert_accuracy)
|
||||
static inline void mavlink_msg_wind_cov_send(mavlink_channel_t chan, uint32_t time_usec, float wind_x, float wind_y, float wind_z, float var_horiz, float var_vert, float wind_alt, float horiz_accuracy, float vert_accuracy)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_WIND_COV_LEN];
|
||||
_mav_put_uint64_t(buf, 0, time_usec);
|
||||
_mav_put_float(buf, 8, wind_x);
|
||||
_mav_put_float(buf, 12, wind_y);
|
||||
_mav_put_float(buf, 16, wind_z);
|
||||
_mav_put_float(buf, 20, var_horiz);
|
||||
_mav_put_float(buf, 24, var_vert);
|
||||
_mav_put_float(buf, 28, wind_alt);
|
||||
_mav_put_float(buf, 32, horiz_accuracy);
|
||||
_mav_put_float(buf, 36, vert_accuracy);
|
||||
_mav_put_uint32_t(buf, 0, time_usec);
|
||||
_mav_put_float(buf, 4, wind_x);
|
||||
_mav_put_float(buf, 8, wind_y);
|
||||
_mav_put_float(buf, 12, wind_z);
|
||||
_mav_put_float(buf, 16, var_horiz);
|
||||
_mav_put_float(buf, 20, var_vert);
|
||||
_mav_put_float(buf, 24, wind_alt);
|
||||
_mav_put_float(buf, 28, horiz_accuracy);
|
||||
_mav_put_float(buf, 32, vert_accuracy);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_WIND_COV, buf, MAVLINK_MSG_ID_WIND_COV_MIN_LEN, MAVLINK_MSG_ID_WIND_COV_LEN, MAVLINK_MSG_ID_WIND_COV_CRC);
|
||||
#else
|
||||
@@ -260,19 +260,19 @@ static inline void mavlink_msg_wind_cov_send_struct(mavlink_channel_t chan, cons
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_wind_cov_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t time_usec, float wind_x, float wind_y, float wind_z, float var_horiz, float var_vert, float wind_alt, float horiz_accuracy, float vert_accuracy)
|
||||
static inline void mavlink_msg_wind_cov_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_usec, float wind_x, float wind_y, float wind_z, float var_horiz, float var_vert, float wind_alt, float horiz_accuracy, float vert_accuracy)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint64_t(buf, 0, time_usec);
|
||||
_mav_put_float(buf, 8, wind_x);
|
||||
_mav_put_float(buf, 12, wind_y);
|
||||
_mav_put_float(buf, 16, wind_z);
|
||||
_mav_put_float(buf, 20, var_horiz);
|
||||
_mav_put_float(buf, 24, var_vert);
|
||||
_mav_put_float(buf, 28, wind_alt);
|
||||
_mav_put_float(buf, 32, horiz_accuracy);
|
||||
_mav_put_float(buf, 36, vert_accuracy);
|
||||
_mav_put_uint32_t(buf, 0, time_usec);
|
||||
_mav_put_float(buf, 4, wind_x);
|
||||
_mav_put_float(buf, 8, wind_y);
|
||||
_mav_put_float(buf, 12, wind_z);
|
||||
_mav_put_float(buf, 16, var_horiz);
|
||||
_mav_put_float(buf, 20, var_vert);
|
||||
_mav_put_float(buf, 24, wind_alt);
|
||||
_mav_put_float(buf, 28, horiz_accuracy);
|
||||
_mav_put_float(buf, 32, vert_accuracy);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_WIND_COV, buf, MAVLINK_MSG_ID_WIND_COV_MIN_LEN, MAVLINK_MSG_ID_WIND_COV_LEN, MAVLINK_MSG_ID_WIND_COV_CRC);
|
||||
#else
|
||||
@@ -302,9 +302,9 @@ static inline void mavlink_msg_wind_cov_send_buf(mavlink_message_t *msgbuf, mavl
|
||||
*
|
||||
* @return [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
|
||||
*/
|
||||
static inline uint64_t mavlink_msg_wind_cov_get_time_usec(const mavlink_message_t* msg)
|
||||
static inline uint32_t mavlink_msg_wind_cov_get_time_usec(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint64_t(msg, 0);
|
||||
return _MAV_RETURN_uint32_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -314,7 +314,7 @@ static inline uint64_t mavlink_msg_wind_cov_get_time_usec(const mavlink_message_
|
||||
*/
|
||||
static inline float mavlink_msg_wind_cov_get_wind_x(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 8);
|
||||
return _MAV_RETURN_float(msg, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -324,7 +324,7 @@ static inline float mavlink_msg_wind_cov_get_wind_x(const mavlink_message_t* msg
|
||||
*/
|
||||
static inline float mavlink_msg_wind_cov_get_wind_y(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 12);
|
||||
return _MAV_RETURN_float(msg, 8);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -334,7 +334,7 @@ static inline float mavlink_msg_wind_cov_get_wind_y(const mavlink_message_t* msg
|
||||
*/
|
||||
static inline float mavlink_msg_wind_cov_get_wind_z(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 16);
|
||||
return _MAV_RETURN_float(msg, 12);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -344,7 +344,7 @@ static inline float mavlink_msg_wind_cov_get_wind_z(const mavlink_message_t* msg
|
||||
*/
|
||||
static inline float mavlink_msg_wind_cov_get_var_horiz(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 20);
|
||||
return _MAV_RETURN_float(msg, 16);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -354,7 +354,7 @@ static inline float mavlink_msg_wind_cov_get_var_horiz(const mavlink_message_t*
|
||||
*/
|
||||
static inline float mavlink_msg_wind_cov_get_var_vert(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 24);
|
||||
return _MAV_RETURN_float(msg, 20);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -364,7 +364,7 @@ static inline float mavlink_msg_wind_cov_get_var_vert(const mavlink_message_t* m
|
||||
*/
|
||||
static inline float mavlink_msg_wind_cov_get_wind_alt(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 28);
|
||||
return _MAV_RETURN_float(msg, 24);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -374,7 +374,7 @@ static inline float mavlink_msg_wind_cov_get_wind_alt(const mavlink_message_t* m
|
||||
*/
|
||||
static inline float mavlink_msg_wind_cov_get_horiz_accuracy(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 32);
|
||||
return _MAV_RETURN_float(msg, 28);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -384,7 +384,7 @@ static inline float mavlink_msg_wind_cov_get_horiz_accuracy(const mavlink_messag
|
||||
*/
|
||||
static inline float mavlink_msg_wind_cov_get_vert_accuracy(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 36);
|
||||
return _MAV_RETURN_float(msg, 32);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user