3 #define MAVLINK_MSG_ID_EKF_EXT 206
16 #define MAVLINK_MSG_ID_EKF_EXT_LEN 32
17 #define MAVLINK_MSG_ID_206_LEN 32
19 #define MAVLINK_MSG_ID_EKF_EXT_CRC 64
20 #define MAVLINK_MSG_ID_206_CRC 64
24 #define MAVLINK_MESSAGE_INFO_EKF_EXT { \
27 { { "timestamp", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_ekf_ext_t, timestamp) }, \
28 { "Windspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_ekf_ext_t, Windspeed) }, \
29 { "WindDir", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_ekf_ext_t, WindDir) }, \
30 { "WindZ", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_ekf_ext_t, WindZ) }, \
31 { "Airspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_ekf_ext_t, Airspeed) }, \
32 { "beta", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_ekf_ext_t, beta) }, \
33 { "alpha", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_ekf_ext_t, alpha) }, \
53 static inline uint16_t mavlink_msg_ekf_ext_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
54 uint64_t timestamp,
float Windspeed,
float WindDir,
float WindZ,
float Airspeed,
float beta,
float alpha)
56 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
103 static inline uint16_t mavlink_msg_ekf_ext_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
104 mavlink_message_t* msg,
105 uint64_t timestamp,
float Windspeed,
float WindDir,
float WindZ,
float Airspeed,
float beta,
float alpha)
107 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
123 packet.
WindZ = WindZ;
126 packet.
alpha = alpha;
132 #if MAVLINK_CRC_EXTRA
147 static inline uint16_t mavlink_msg_ekf_ext_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_ekf_ext_t* ekf_ext)
161 static inline uint16_t mavlink_msg_ekf_ext_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_ekf_ext_t* ekf_ext)
163 return mavlink_msg_ekf_ext_pack_chan(system_id, component_id, chan, msg, ekf_ext->
timestamp, ekf_ext->
Windspeed, ekf_ext->
WindDir, ekf_ext->
WindZ, ekf_ext->
Airspeed, ekf_ext->
beta, ekf_ext->
alpha);
178 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
180 static inline void mavlink_msg_ekf_ext_send(
mavlink_channel_t chan, uint64_t timestamp,
float Windspeed,
float WindDir,
float WindZ,
float Airspeed,
float beta,
float alpha)
182 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
192 #if MAVLINK_CRC_EXTRA
202 packet.
WindZ = WindZ;
205 packet.
alpha = alpha;
207 #if MAVLINK_CRC_EXTRA
215 #if MAVLINK_MSG_ID_EKF_EXT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
223 static inline void mavlink_msg_ekf_ext_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint64_t timestamp,
float Windspeed,
float WindDir,
float WindZ,
float Airspeed,
float beta,
float alpha)
225 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
226 char *buf = (
char *)msgbuf;
235 #if MAVLINK_CRC_EXTRA
245 packet->
WindZ = WindZ;
248 packet->
alpha = alpha;
250 #if MAVLINK_CRC_EXTRA
269 static inline uint64_t mavlink_msg_ekf_ext_get_timestamp(
const mavlink_message_t* msg)
271 return _MAV_RETURN_uint64_t(msg, 0);
279 static inline float mavlink_msg_ekf_ext_get_Windspeed(
const mavlink_message_t* msg)
281 return _MAV_RETURN_float(msg, 8);
289 static inline float mavlink_msg_ekf_ext_get_WindDir(
const mavlink_message_t* msg)
291 return _MAV_RETURN_float(msg, 12);
299 static inline float mavlink_msg_ekf_ext_get_WindZ(
const mavlink_message_t* msg)
301 return _MAV_RETURN_float(msg, 16);
309 static inline float mavlink_msg_ekf_ext_get_Airspeed(
const mavlink_message_t* msg)
311 return _MAV_RETURN_float(msg, 20);
319 static inline float mavlink_msg_ekf_ext_get_beta(
const mavlink_message_t* msg)
321 return _MAV_RETURN_float(msg, 24);
329 static inline float mavlink_msg_ekf_ext_get_alpha(
const mavlink_message_t* msg)
331 return _MAV_RETURN_float(msg, 28);
340 static inline void mavlink_msg_ekf_ext_decode(
const mavlink_message_t* msg,
mavlink_ekf_ext_t* ekf_ext)
342 #if MAVLINK_NEED_BYTE_SWAP
343 ekf_ext->
timestamp = mavlink_msg_ekf_ext_get_timestamp(msg);
344 ekf_ext->
Windspeed = mavlink_msg_ekf_ext_get_Windspeed(msg);
345 ekf_ext->
WindDir = mavlink_msg_ekf_ext_get_WindDir(msg);
346 ekf_ext->
WindZ = mavlink_msg_ekf_ext_get_WindZ(msg);
347 ekf_ext->
Airspeed = mavlink_msg_ekf_ext_get_Airspeed(msg);
348 ekf_ext->
beta = mavlink_msg_ekf_ext_get_beta(msg);
349 ekf_ext->
alpha = mavlink_msg_ekf_ext_get_alpha(msg);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
float Airspeed
Magnitude of air velocity [m/s].
Definition: mavlink_msg_ekf_ext.h:11
#define MAVLINK_MSG_ID_EKF_EXT
Definition: mavlink_msg_ekf_ext.h:3
float alpha
Angle of attack [rad].
Definition: mavlink_msg_ekf_ext.h:13
#define MAVLINK_MSG_ID_EKF_EXT_LEN
Definition: mavlink_msg_ekf_ext.h:16
#define MAVLINK_MSG_ID_EKF_EXT_CRC
Definition: mavlink_msg_ekf_ext.h:19
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
Definition: mavlink_helpers.h:105
float Windspeed
Magnitude of wind velocity (in lateral inertial plane) [m/s].
Definition: mavlink_msg_ekf_ext.h:8
#define _mav_put_uint64_t(buf, wire_offset, b)
Definition: protocol.h:143
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
mavlink_channel_t
Definition: mavlink_types.h:178
uint64_t timestamp
Time since system start [us].
Definition: mavlink_msg_ekf_ext.h:7
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
Definition: mavlink_msg_ekf_ext.h:5
float beta
Sideslip angle [rad].
Definition: mavlink_msg_ekf_ext.h:12
float WindDir
Wind heading angle from North [rad].
Definition: mavlink_msg_ekf_ext.h:9
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
Definition: mavlink_helpers.h:71
float WindZ
Z (Down) component of inertial wind velocity [m/s].
Definition: mavlink_msg_ekf_ext.h:10
struct __mavlink_ekf_ext_t mavlink_ekf_ext_t