3 #define MAVLINK_MSG_ID_AIRSPEED_AUTOCAL 174
21 #define MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN 48
22 #define MAVLINK_MSG_ID_174_LEN 48
24 #define MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_CRC 167
25 #define MAVLINK_MSG_ID_174_CRC 167
29 #define MAVLINK_MESSAGE_INFO_AIRSPEED_AUTOCAL { \
32 { { "vx", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_airspeed_autocal_t, vx) }, \
33 { "vy", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_airspeed_autocal_t, vy) }, \
34 { "vz", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_airspeed_autocal_t, vz) }, \
35 { "diff_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_airspeed_autocal_t, diff_pressure) }, \
36 { "EAS2TAS", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_airspeed_autocal_t, EAS2TAS) }, \
37 { "ratio", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_airspeed_autocal_t, ratio) }, \
38 { "state_x", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_airspeed_autocal_t, state_x) }, \
39 { "state_y", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_airspeed_autocal_t, state_y) }, \
40 { "state_z", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_airspeed_autocal_t, state_z) }, \
41 { "Pax", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_airspeed_autocal_t, Pax) }, \
42 { "Pby", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_airspeed_autocal_t, Pby) }, \
43 { "Pcz", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_airspeed_autocal_t, Pcz) }, \
68 static inline uint16_t mavlink_msg_airspeed_autocal_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
69 float vx,
float vy,
float vz,
float diff_pressure,
float EAS2TAS,
float ratio,
float state_x,
float state_y,
float state_z,
float Pax,
float Pby,
float Pcz)
71 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
106 #if MAVLINK_CRC_EXTRA
133 static inline uint16_t mavlink_msg_airspeed_autocal_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
134 mavlink_message_t* msg,
135 float vx,
float vy,
float vz,
float diff_pressure,
float EAS2TAS,
float ratio,
float state_x,
float state_y,
float state_z,
float Pax,
float Pby,
float Pcz)
137 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
160 packet.
ratio = ratio;
172 #if MAVLINK_CRC_EXTRA
187 static inline uint16_t mavlink_msg_airspeed_autocal_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_airspeed_autocal_t* airspeed_autocal)
189 return mavlink_msg_airspeed_autocal_pack(system_id, component_id, msg, airspeed_autocal->
vx, airspeed_autocal->
vy, airspeed_autocal->
vz, airspeed_autocal->
diff_pressure, airspeed_autocal->
EAS2TAS, airspeed_autocal->
ratio, airspeed_autocal->
state_x, airspeed_autocal->
state_y, airspeed_autocal->
state_z, airspeed_autocal->
Pax, airspeed_autocal->
Pby, airspeed_autocal->
Pcz);
201 static inline uint16_t mavlink_msg_airspeed_autocal_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_airspeed_autocal_t* airspeed_autocal)
203 return mavlink_msg_airspeed_autocal_pack_chan(system_id, component_id, chan, msg, airspeed_autocal->
vx, airspeed_autocal->
vy, airspeed_autocal->
vz, airspeed_autocal->
diff_pressure, airspeed_autocal->
EAS2TAS, airspeed_autocal->
ratio, airspeed_autocal->
state_x, airspeed_autocal->
state_y, airspeed_autocal->
state_z, airspeed_autocal->
Pax, airspeed_autocal->
Pby, airspeed_autocal->
Pcz);
223 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
225 static inline void mavlink_msg_airspeed_autocal_send(
mavlink_channel_t chan,
float vx,
float vy,
float vz,
float diff_pressure,
float EAS2TAS,
float ratio,
float state_x,
float state_y,
float state_z,
float Pax,
float Pby,
float Pcz)
227 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
242 #if MAVLINK_CRC_EXTRA
254 packet.
ratio = ratio;
262 #if MAVLINK_CRC_EXTRA
270 #if MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN <= MAVLINK_MAX_PAYLOAD_LEN
278 static inline void mavlink_msg_airspeed_autocal_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan,
float vx,
float vy,
float vz,
float diff_pressure,
float EAS2TAS,
float ratio,
float state_x,
float state_y,
float state_z,
float Pax,
float Pby,
float Pcz)
280 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
281 char *buf = (
char *)msgbuf;
295 #if MAVLINK_CRC_EXTRA
307 packet->
ratio = ratio;
315 #if MAVLINK_CRC_EXTRA
334 static inline float mavlink_msg_airspeed_autocal_get_vx(
const mavlink_message_t* msg)
336 return _MAV_RETURN_float(msg, 0);
344 static inline float mavlink_msg_airspeed_autocal_get_vy(
const mavlink_message_t* msg)
346 return _MAV_RETURN_float(msg, 4);
354 static inline float mavlink_msg_airspeed_autocal_get_vz(
const mavlink_message_t* msg)
356 return _MAV_RETURN_float(msg, 8);
364 static inline float mavlink_msg_airspeed_autocal_get_diff_pressure(
const mavlink_message_t* msg)
366 return _MAV_RETURN_float(msg, 12);
374 static inline float mavlink_msg_airspeed_autocal_get_EAS2TAS(
const mavlink_message_t* msg)
376 return _MAV_RETURN_float(msg, 16);
384 static inline float mavlink_msg_airspeed_autocal_get_ratio(
const mavlink_message_t* msg)
386 return _MAV_RETURN_float(msg, 20);
394 static inline float mavlink_msg_airspeed_autocal_get_state_x(
const mavlink_message_t* msg)
396 return _MAV_RETURN_float(msg, 24);
404 static inline float mavlink_msg_airspeed_autocal_get_state_y(
const mavlink_message_t* msg)
406 return _MAV_RETURN_float(msg, 28);
414 static inline float mavlink_msg_airspeed_autocal_get_state_z(
const mavlink_message_t* msg)
416 return _MAV_RETURN_float(msg, 32);
424 static inline float mavlink_msg_airspeed_autocal_get_Pax(
const mavlink_message_t* msg)
426 return _MAV_RETURN_float(msg, 36);
434 static inline float mavlink_msg_airspeed_autocal_get_Pby(
const mavlink_message_t* msg)
436 return _MAV_RETURN_float(msg, 40);
444 static inline float mavlink_msg_airspeed_autocal_get_Pcz(
const mavlink_message_t* msg)
446 return _MAV_RETURN_float(msg, 44);
455 static inline void mavlink_msg_airspeed_autocal_decode(
const mavlink_message_t* msg,
mavlink_airspeed_autocal_t* airspeed_autocal)
457 #if MAVLINK_NEED_BYTE_SWAP
458 airspeed_autocal->
vx = mavlink_msg_airspeed_autocal_get_vx(msg);
459 airspeed_autocal->
vy = mavlink_msg_airspeed_autocal_get_vy(msg);
460 airspeed_autocal->
vz = mavlink_msg_airspeed_autocal_get_vz(msg);
461 airspeed_autocal->
diff_pressure = mavlink_msg_airspeed_autocal_get_diff_pressure(msg);
462 airspeed_autocal->
EAS2TAS = mavlink_msg_airspeed_autocal_get_EAS2TAS(msg);
463 airspeed_autocal->
ratio = mavlink_msg_airspeed_autocal_get_ratio(msg);
464 airspeed_autocal->
state_x = mavlink_msg_airspeed_autocal_get_state_x(msg);
465 airspeed_autocal->
state_y = mavlink_msg_airspeed_autocal_get_state_y(msg);
466 airspeed_autocal->
state_z = mavlink_msg_airspeed_autocal_get_state_z(msg);
467 airspeed_autocal->
Pax = mavlink_msg_airspeed_autocal_get_Pax(msg);
468 airspeed_autocal->
Pby = mavlink_msg_airspeed_autocal_get_Pby(msg);
469 airspeed_autocal->
Pcz = mavlink_msg_airspeed_autocal_get_Pcz(msg);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
float Pcz
EKF Pcz.
Definition: mavlink_msg_airspeed_autocal.h:18
float EAS2TAS
Estimated to true airspeed ratio.
Definition: mavlink_msg_airspeed_autocal.h:11
float ratio
Airspeed ratio.
Definition: mavlink_msg_airspeed_autocal.h:12
float vz
GPS velocity down m/s.
Definition: mavlink_msg_airspeed_autocal.h:9
float state_z
EKF state z.
Definition: mavlink_msg_airspeed_autocal.h:15
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 state_x
EKF state x.
Definition: mavlink_msg_airspeed_autocal.h:13
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
#define MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_CRC
Definition: mavlink_msg_airspeed_autocal.h:24
float diff_pressure
Differential pressure pascals.
Definition: mavlink_msg_airspeed_autocal.h:10
mavlink_channel_t
Definition: mavlink_types.h:178
float vy
GPS velocity east m/s.
Definition: mavlink_msg_airspeed_autocal.h:8
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
float Pby
EKF Pby.
Definition: mavlink_msg_airspeed_autocal.h:17
float state_y
EKF state y.
Definition: mavlink_msg_airspeed_autocal.h:14
#define MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN
Definition: mavlink_msg_airspeed_autocal.h:21
Definition: mavlink_msg_airspeed_autocal.h:5
struct __mavlink_airspeed_autocal_t mavlink_airspeed_autocal_t
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
#define MAVLINK_MSG_ID_AIRSPEED_AUTOCAL
Definition: mavlink_msg_airspeed_autocal.h:3
float Pax
EKF Pax.
Definition: mavlink_msg_airspeed_autocal.h:16
float vx
GPS velocity north m/s.
Definition: mavlink_msg_airspeed_autocal.h:7