4#define MAVLINK_MSG_ID_AIRSPEED_AUTOCAL 174
7typedef struct __mavlink_airspeed_autocal_t {
20}) mavlink_airspeed_autocal_t;
22#define MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN 48
23#define MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_MIN_LEN 48
24#define MAVLINK_MSG_ID_174_LEN 48
25#define MAVLINK_MSG_ID_174_MIN_LEN 48
27#define MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_CRC 167
28#define MAVLINK_MSG_ID_174_CRC 167
32#if MAVLINK_COMMAND_24BIT
33#define MAVLINK_MESSAGE_INFO_AIRSPEED_AUTOCAL { \
37 { { "vx", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_airspeed_autocal_t, vx) }, \
38 { "vy", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_airspeed_autocal_t, vy) }, \
39 { "vz", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_airspeed_autocal_t, vz) }, \
40 { "diff_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_airspeed_autocal_t, diff_pressure) }, \
41 { "EAS2TAS", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_airspeed_autocal_t, EAS2TAS) }, \
42 { "ratio", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_airspeed_autocal_t, ratio) }, \
43 { "state_x", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_airspeed_autocal_t, state_x) }, \
44 { "state_y", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_airspeed_autocal_t, state_y) }, \
45 { "state_z", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_airspeed_autocal_t, state_z) }, \
46 { "Pax", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_airspeed_autocal_t, Pax) }, \
47 { "Pby", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_airspeed_autocal_t, Pby) }, \
48 { "Pcz", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_airspeed_autocal_t, Pcz) }, \
52#define MAVLINK_MESSAGE_INFO_AIRSPEED_AUTOCAL { \
55 { { "vx", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_airspeed_autocal_t, vx) }, \
56 { "vy", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_airspeed_autocal_t, vy) }, \
57 { "vz", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_airspeed_autocal_t, vz) }, \
58 { "diff_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_airspeed_autocal_t, diff_pressure) }, \
59 { "EAS2TAS", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_airspeed_autocal_t, EAS2TAS) }, \
60 { "ratio", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_airspeed_autocal_t, ratio) }, \
61 { "state_x", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_airspeed_autocal_t, state_x) }, \
62 { "state_y", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_airspeed_autocal_t, state_y) }, \
63 { "state_z", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_airspeed_autocal_t, state_z) }, \
64 { "Pax", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_airspeed_autocal_t, Pax) }, \
65 { "Pby", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_airspeed_autocal_t, Pby) }, \
66 { "Pcz", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_airspeed_autocal_t, Pcz) }, \
91static inline uint16_t mavlink_msg_airspeed_autocal_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
92 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)
94#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
95 char buf[MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN];
96 _mav_put_float(buf, 0, vx);
97 _mav_put_float(buf, 4, vy);
98 _mav_put_float(buf, 8, vz);
99 _mav_put_float(buf, 12, diff_pressure);
100 _mav_put_float(buf, 16, EAS2TAS);
101 _mav_put_float(buf, 20, ratio);
102 _mav_put_float(buf, 24, state_x);
103 _mav_put_float(buf, 28, state_y);
104 _mav_put_float(buf, 32, state_z);
105 _mav_put_float(buf, 36, Pax);
106 _mav_put_float(buf, 40, Pby);
107 _mav_put_float(buf, 44, Pcz);
109 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN);
111 mavlink_airspeed_autocal_t packet;
115 packet.diff_pressure = diff_pressure;
116 packet.EAS2TAS = EAS2TAS;
117 packet.ratio = ratio;
118 packet.state_x = state_x;
119 packet.state_y = state_y;
120 packet.state_z = state_z;
125 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN);
128 msg->msgid = MAVLINK_MSG_ID_AIRSPEED_AUTOCAL;
129 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_MIN_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_CRC);
152static inline uint16_t mavlink_msg_airspeed_autocal_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
153 mavlink_message_t* msg,
154 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)
156#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
157 char buf[MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN];
158 _mav_put_float(buf, 0, vx);
159 _mav_put_float(buf, 4, vy);
160 _mav_put_float(buf, 8, vz);
161 _mav_put_float(buf, 12, diff_pressure);
162 _mav_put_float(buf, 16, EAS2TAS);
163 _mav_put_float(buf, 20, ratio);
164 _mav_put_float(buf, 24, state_x);
165 _mav_put_float(buf, 28, state_y);
166 _mav_put_float(buf, 32, state_z);
167 _mav_put_float(buf, 36, Pax);
168 _mav_put_float(buf, 40, Pby);
169 _mav_put_float(buf, 44, Pcz);
171 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN);
173 mavlink_airspeed_autocal_t packet;
177 packet.diff_pressure = diff_pressure;
178 packet.EAS2TAS = EAS2TAS;
179 packet.ratio = ratio;
180 packet.state_x = state_x;
181 packet.state_y = state_y;
182 packet.state_z = state_z;
187 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN);
190 msg->msgid = MAVLINK_MSG_ID_AIRSPEED_AUTOCAL;
191 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_MIN_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_CRC);
202static 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)
204 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);
216static 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)
218 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);
238#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
240static 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)
242#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
243 char buf[MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN];
244 _mav_put_float(buf, 0, vx);
245 _mav_put_float(buf, 4, vy);
246 _mav_put_float(buf, 8, vz);
247 _mav_put_float(buf, 12, diff_pressure);
248 _mav_put_float(buf, 16, EAS2TAS);
249 _mav_put_float(buf, 20, ratio);
250 _mav_put_float(buf, 24, state_x);
251 _mav_put_float(buf, 28, state_y);
252 _mav_put_float(buf, 32, state_z);
253 _mav_put_float(buf, 36, Pax);
254 _mav_put_float(buf, 40, Pby);
255 _mav_put_float(buf, 44, Pcz);
257 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL, buf, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_MIN_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_CRC);
259 mavlink_airspeed_autocal_t packet;
263 packet.diff_pressure = diff_pressure;
264 packet.EAS2TAS = EAS2TAS;
265 packet.ratio = ratio;
266 packet.state_x = state_x;
267 packet.state_y = state_y;
268 packet.state_z = state_z;
273 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL, (
const char *)&packet, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_MIN_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_CRC);
282static inline void mavlink_msg_airspeed_autocal_send_struct(mavlink_channel_t chan,
const mavlink_airspeed_autocal_t* airspeed_autocal)
284#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
285 mavlink_msg_airspeed_autocal_send(chan, 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);
287 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL, (
const char *)airspeed_autocal, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_MIN_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_CRC);
291#if MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN <= MAVLINK_MAX_PAYLOAD_LEN
299static 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)
301#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
302 char *buf = (
char *)msgbuf;
303 _mav_put_float(buf, 0, vx);
304 _mav_put_float(buf, 4, vy);
305 _mav_put_float(buf, 8, vz);
306 _mav_put_float(buf, 12, diff_pressure);
307 _mav_put_float(buf, 16, EAS2TAS);
308 _mav_put_float(buf, 20, ratio);
309 _mav_put_float(buf, 24, state_x);
310 _mav_put_float(buf, 28, state_y);
311 _mav_put_float(buf, 32, state_z);
312 _mav_put_float(buf, 36, Pax);
313 _mav_put_float(buf, 40, Pby);
314 _mav_put_float(buf, 44, Pcz);
316 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL, buf, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_MIN_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_CRC);
318 mavlink_airspeed_autocal_t *packet = (mavlink_airspeed_autocal_t *)msgbuf;
322 packet->diff_pressure = diff_pressure;
323 packet->EAS2TAS = EAS2TAS;
324 packet->ratio = ratio;
325 packet->state_x = state_x;
326 packet->state_y = state_y;
327 packet->state_z = state_z;
332 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL, (
const char *)packet, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_MIN_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_CRC);
347static inline float mavlink_msg_airspeed_autocal_get_vx(
const mavlink_message_t* msg)
349 return _MAV_RETURN_float(msg, 0);
357static inline float mavlink_msg_airspeed_autocal_get_vy(
const mavlink_message_t* msg)
359 return _MAV_RETURN_float(msg, 4);
367static inline float mavlink_msg_airspeed_autocal_get_vz(
const mavlink_message_t* msg)
369 return _MAV_RETURN_float(msg, 8);
377static inline float mavlink_msg_airspeed_autocal_get_diff_pressure(
const mavlink_message_t* msg)
379 return _MAV_RETURN_float(msg, 12);
387static inline float mavlink_msg_airspeed_autocal_get_EAS2TAS(
const mavlink_message_t* msg)
389 return _MAV_RETURN_float(msg, 16);
397static inline float mavlink_msg_airspeed_autocal_get_ratio(
const mavlink_message_t* msg)
399 return _MAV_RETURN_float(msg, 20);
407static inline float mavlink_msg_airspeed_autocal_get_state_x(
const mavlink_message_t* msg)
409 return _MAV_RETURN_float(msg, 24);
417static inline float mavlink_msg_airspeed_autocal_get_state_y(
const mavlink_message_t* msg)
419 return _MAV_RETURN_float(msg, 28);
427static inline float mavlink_msg_airspeed_autocal_get_state_z(
const mavlink_message_t* msg)
429 return _MAV_RETURN_float(msg, 32);
437static inline float mavlink_msg_airspeed_autocal_get_Pax(
const mavlink_message_t* msg)
439 return _MAV_RETURN_float(msg, 36);
447static inline float mavlink_msg_airspeed_autocal_get_Pby(
const mavlink_message_t* msg)
449 return _MAV_RETURN_float(msg, 40);
457static inline float mavlink_msg_airspeed_autocal_get_Pcz(
const mavlink_message_t* msg)
459 return _MAV_RETURN_float(msg, 44);
468static inline void mavlink_msg_airspeed_autocal_decode(
const mavlink_message_t* msg, mavlink_airspeed_autocal_t* airspeed_autocal)
470#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
471 airspeed_autocal->vx = mavlink_msg_airspeed_autocal_get_vx(msg);
472 airspeed_autocal->vy = mavlink_msg_airspeed_autocal_get_vy(msg);
473 airspeed_autocal->vz = mavlink_msg_airspeed_autocal_get_vz(msg);
474 airspeed_autocal->diff_pressure = mavlink_msg_airspeed_autocal_get_diff_pressure(msg);
475 airspeed_autocal->EAS2TAS = mavlink_msg_airspeed_autocal_get_EAS2TAS(msg);
476 airspeed_autocal->ratio = mavlink_msg_airspeed_autocal_get_ratio(msg);
477 airspeed_autocal->state_x = mavlink_msg_airspeed_autocal_get_state_x(msg);
478 airspeed_autocal->state_y = mavlink_msg_airspeed_autocal_get_state_y(msg);
479 airspeed_autocal->state_z = mavlink_msg_airspeed_autocal_get_state_z(msg);
480 airspeed_autocal->Pax = mavlink_msg_airspeed_autocal_get_Pax(msg);
481 airspeed_autocal->Pby = mavlink_msg_airspeed_autocal_get_Pby(msg);
482 airspeed_autocal->Pcz = mavlink_msg_airspeed_autocal_get_Pcz(msg);
484 uint8_t len = msg->len < MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN? msg->len : MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN;
485 memset(airspeed_autocal, 0, MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN);
486 memcpy(airspeed_autocal, _MAV_PAYLOAD(msg), len);