NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mavlink_msg_aslctrl_data.h
Go to the documentation of this file.
1 // MESSAGE ASLCTRL_DATA PACKING
2 
3 #define MAVLINK_MSG_ID_ASLCTRL_DATA 203
4 
6 {
7  uint64_t timestamp;
8  float h;
9  float hRef;
10  float hRef_t;
11  float PitchAngle;
12  float PitchAngleRef;
13  float q;
14  float qRef;
15  float uElev;
16  float uThrot;
17  float uThrot2;
18  float aZ;
19  float AirspeedRef;
20  float YawAngle;
21  float YawAngleRef;
22  float RollAngle;
23  float RollAngleRef;
24  float p;
25  float pRef;
26  float r;
27  float rRef;
28  float uAil;
29  float uRud;
30  uint8_t aslctrl_mode;
31  uint8_t SpoilersEngaged;
33 
34 #define MAVLINK_MSG_ID_ASLCTRL_DATA_LEN 98
35 #define MAVLINK_MSG_ID_203_LEN 98
36 
37 #define MAVLINK_MSG_ID_ASLCTRL_DATA_CRC 0
38 #define MAVLINK_MSG_ID_203_CRC 0
39 
40 
41 
42 #define MAVLINK_MESSAGE_INFO_ASLCTRL_DATA { \
43  "ASLCTRL_DATA", \
44  25, \
45  { { "timestamp", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_aslctrl_data_t, timestamp) }, \
46  { "h", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_aslctrl_data_t, h) }, \
47  { "hRef", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_aslctrl_data_t, hRef) }, \
48  { "hRef_t", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_aslctrl_data_t, hRef_t) }, \
49  { "PitchAngle", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_aslctrl_data_t, PitchAngle) }, \
50  { "PitchAngleRef", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_aslctrl_data_t, PitchAngleRef) }, \
51  { "q", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_aslctrl_data_t, q) }, \
52  { "qRef", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_aslctrl_data_t, qRef) }, \
53  { "uElev", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_aslctrl_data_t, uElev) }, \
54  { "uThrot", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_aslctrl_data_t, uThrot) }, \
55  { "uThrot2", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_aslctrl_data_t, uThrot2) }, \
56  { "aZ", NULL, MAVLINK_TYPE_FLOAT, 0, 48, offsetof(mavlink_aslctrl_data_t, aZ) }, \
57  { "AirspeedRef", NULL, MAVLINK_TYPE_FLOAT, 0, 52, offsetof(mavlink_aslctrl_data_t, AirspeedRef) }, \
58  { "YawAngle", NULL, MAVLINK_TYPE_FLOAT, 0, 56, offsetof(mavlink_aslctrl_data_t, YawAngle) }, \
59  { "YawAngleRef", NULL, MAVLINK_TYPE_FLOAT, 0, 60, offsetof(mavlink_aslctrl_data_t, YawAngleRef) }, \
60  { "RollAngle", NULL, MAVLINK_TYPE_FLOAT, 0, 64, offsetof(mavlink_aslctrl_data_t, RollAngle) }, \
61  { "RollAngleRef", NULL, MAVLINK_TYPE_FLOAT, 0, 68, offsetof(mavlink_aslctrl_data_t, RollAngleRef) }, \
62  { "p", NULL, MAVLINK_TYPE_FLOAT, 0, 72, offsetof(mavlink_aslctrl_data_t, p) }, \
63  { "pRef", NULL, MAVLINK_TYPE_FLOAT, 0, 76, offsetof(mavlink_aslctrl_data_t, pRef) }, \
64  { "r", NULL, MAVLINK_TYPE_FLOAT, 0, 80, offsetof(mavlink_aslctrl_data_t, r) }, \
65  { "rRef", NULL, MAVLINK_TYPE_FLOAT, 0, 84, offsetof(mavlink_aslctrl_data_t, rRef) }, \
66  { "uAil", NULL, MAVLINK_TYPE_FLOAT, 0, 88, offsetof(mavlink_aslctrl_data_t, uAil) }, \
67  { "uRud", NULL, MAVLINK_TYPE_FLOAT, 0, 92, offsetof(mavlink_aslctrl_data_t, uRud) }, \
68  { "aslctrl_mode", NULL, MAVLINK_TYPE_UINT8_T, 0, 96, offsetof(mavlink_aslctrl_data_t, aslctrl_mode) }, \
69  { "SpoilersEngaged", NULL, MAVLINK_TYPE_UINT8_T, 0, 97, offsetof(mavlink_aslctrl_data_t, SpoilersEngaged) }, \
70  } \
71 }
72 
73 
107 static inline uint16_t mavlink_msg_aslctrl_data_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
108  uint64_t timestamp, uint8_t aslctrl_mode, float h, float hRef, float hRef_t, float PitchAngle, float PitchAngleRef, float q, float qRef, float uElev, float uThrot, float uThrot2, float aZ, float AirspeedRef, uint8_t SpoilersEngaged, float YawAngle, float YawAngleRef, float RollAngle, float RollAngleRef, float p, float pRef, float r, float rRef, float uAil, float uRud)
109 {
110 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
112  _mav_put_uint64_t(buf, 0, timestamp);
113  _mav_put_float(buf, 8, h);
114  _mav_put_float(buf, 12, hRef);
115  _mav_put_float(buf, 16, hRef_t);
116  _mav_put_float(buf, 20, PitchAngle);
117  _mav_put_float(buf, 24, PitchAngleRef);
118  _mav_put_float(buf, 28, q);
119  _mav_put_float(buf, 32, qRef);
120  _mav_put_float(buf, 36, uElev);
121  _mav_put_float(buf, 40, uThrot);
122  _mav_put_float(buf, 44, uThrot2);
123  _mav_put_float(buf, 48, aZ);
124  _mav_put_float(buf, 52, AirspeedRef);
125  _mav_put_float(buf, 56, YawAngle);
126  _mav_put_float(buf, 60, YawAngleRef);
127  _mav_put_float(buf, 64, RollAngle);
128  _mav_put_float(buf, 68, RollAngleRef);
129  _mav_put_float(buf, 72, p);
130  _mav_put_float(buf, 76, pRef);
131  _mav_put_float(buf, 80, r);
132  _mav_put_float(buf, 84, rRef);
133  _mav_put_float(buf, 88, uAil);
134  _mav_put_float(buf, 92, uRud);
135  _mav_put_uint8_t(buf, 96, aslctrl_mode);
136  _mav_put_uint8_t(buf, 97, SpoilersEngaged);
137 
139 #else
140  mavlink_aslctrl_data_t packet;
141  packet.timestamp = timestamp;
142  packet.h = h;
143  packet.hRef = hRef;
144  packet.hRef_t = hRef_t;
145  packet.PitchAngle = PitchAngle;
146  packet.PitchAngleRef = PitchAngleRef;
147  packet.q = q;
148  packet.qRef = qRef;
149  packet.uElev = uElev;
150  packet.uThrot = uThrot;
151  packet.uThrot2 = uThrot2;
152  packet.aZ = aZ;
153  packet.AirspeedRef = AirspeedRef;
154  packet.YawAngle = YawAngle;
155  packet.YawAngleRef = YawAngleRef;
156  packet.RollAngle = RollAngle;
157  packet.RollAngleRef = RollAngleRef;
158  packet.p = p;
159  packet.pRef = pRef;
160  packet.r = r;
161  packet.rRef = rRef;
162  packet.uAil = uAil;
163  packet.uRud = uRud;
164  packet.aslctrl_mode = aslctrl_mode;
165  packet.SpoilersEngaged = SpoilersEngaged;
166 
168 #endif
169 
170  msg->msgid = MAVLINK_MSG_ID_ASLCTRL_DATA;
171 #if MAVLINK_CRC_EXTRA
173 #else
174  return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_ASLCTRL_DATA_LEN);
175 #endif
176 }
177 
211 static inline uint16_t mavlink_msg_aslctrl_data_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
212  mavlink_message_t* msg,
213  uint64_t timestamp,uint8_t aslctrl_mode,float h,float hRef,float hRef_t,float PitchAngle,float PitchAngleRef,float q,float qRef,float uElev,float uThrot,float uThrot2,float aZ,float AirspeedRef,uint8_t SpoilersEngaged,float YawAngle,float YawAngleRef,float RollAngle,float RollAngleRef,float p,float pRef,float r,float rRef,float uAil,float uRud)
214 {
215 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
217  _mav_put_uint64_t(buf, 0, timestamp);
218  _mav_put_float(buf, 8, h);
219  _mav_put_float(buf, 12, hRef);
220  _mav_put_float(buf, 16, hRef_t);
221  _mav_put_float(buf, 20, PitchAngle);
222  _mav_put_float(buf, 24, PitchAngleRef);
223  _mav_put_float(buf, 28, q);
224  _mav_put_float(buf, 32, qRef);
225  _mav_put_float(buf, 36, uElev);
226  _mav_put_float(buf, 40, uThrot);
227  _mav_put_float(buf, 44, uThrot2);
228  _mav_put_float(buf, 48, aZ);
229  _mav_put_float(buf, 52, AirspeedRef);
230  _mav_put_float(buf, 56, YawAngle);
231  _mav_put_float(buf, 60, YawAngleRef);
232  _mav_put_float(buf, 64, RollAngle);
233  _mav_put_float(buf, 68, RollAngleRef);
234  _mav_put_float(buf, 72, p);
235  _mav_put_float(buf, 76, pRef);
236  _mav_put_float(buf, 80, r);
237  _mav_put_float(buf, 84, rRef);
238  _mav_put_float(buf, 88, uAil);
239  _mav_put_float(buf, 92, uRud);
240  _mav_put_uint8_t(buf, 96, aslctrl_mode);
241  _mav_put_uint8_t(buf, 97, SpoilersEngaged);
242 
244 #else
245  mavlink_aslctrl_data_t packet;
246  packet.timestamp = timestamp;
247  packet.h = h;
248  packet.hRef = hRef;
249  packet.hRef_t = hRef_t;
250  packet.PitchAngle = PitchAngle;
251  packet.PitchAngleRef = PitchAngleRef;
252  packet.q = q;
253  packet.qRef = qRef;
254  packet.uElev = uElev;
255  packet.uThrot = uThrot;
256  packet.uThrot2 = uThrot2;
257  packet.aZ = aZ;
258  packet.AirspeedRef = AirspeedRef;
259  packet.YawAngle = YawAngle;
260  packet.YawAngleRef = YawAngleRef;
261  packet.RollAngle = RollAngle;
262  packet.RollAngleRef = RollAngleRef;
263  packet.p = p;
264  packet.pRef = pRef;
265  packet.r = r;
266  packet.rRef = rRef;
267  packet.uAil = uAil;
268  packet.uRud = uRud;
269  packet.aslctrl_mode = aslctrl_mode;
270  packet.SpoilersEngaged = SpoilersEngaged;
271 
273 #endif
274 
275  msg->msgid = MAVLINK_MSG_ID_ASLCTRL_DATA;
276 #if MAVLINK_CRC_EXTRA
278 #else
279  return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_ASLCTRL_DATA_LEN);
280 #endif
281 }
282 
291 static inline uint16_t mavlink_msg_aslctrl_data_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_aslctrl_data_t* aslctrl_data)
292 {
293  return mavlink_msg_aslctrl_data_pack(system_id, component_id, msg, aslctrl_data->timestamp, aslctrl_data->aslctrl_mode, aslctrl_data->h, aslctrl_data->hRef, aslctrl_data->hRef_t, aslctrl_data->PitchAngle, aslctrl_data->PitchAngleRef, aslctrl_data->q, aslctrl_data->qRef, aslctrl_data->uElev, aslctrl_data->uThrot, aslctrl_data->uThrot2, aslctrl_data->aZ, aslctrl_data->AirspeedRef, aslctrl_data->SpoilersEngaged, aslctrl_data->YawAngle, aslctrl_data->YawAngleRef, aslctrl_data->RollAngle, aslctrl_data->RollAngleRef, aslctrl_data->p, aslctrl_data->pRef, aslctrl_data->r, aslctrl_data->rRef, aslctrl_data->uAil, aslctrl_data->uRud);
294 }
295 
305 static inline uint16_t mavlink_msg_aslctrl_data_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_aslctrl_data_t* aslctrl_data)
306 {
307  return mavlink_msg_aslctrl_data_pack_chan(system_id, component_id, chan, msg, aslctrl_data->timestamp, aslctrl_data->aslctrl_mode, aslctrl_data->h, aslctrl_data->hRef, aslctrl_data->hRef_t, aslctrl_data->PitchAngle, aslctrl_data->PitchAngleRef, aslctrl_data->q, aslctrl_data->qRef, aslctrl_data->uElev, aslctrl_data->uThrot, aslctrl_data->uThrot2, aslctrl_data->aZ, aslctrl_data->AirspeedRef, aslctrl_data->SpoilersEngaged, aslctrl_data->YawAngle, aslctrl_data->YawAngleRef, aslctrl_data->RollAngle, aslctrl_data->RollAngleRef, aslctrl_data->p, aslctrl_data->pRef, aslctrl_data->r, aslctrl_data->rRef, aslctrl_data->uAil, aslctrl_data->uRud);
308 }
309 
340 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
341 
342 static inline void mavlink_msg_aslctrl_data_send(mavlink_channel_t chan, uint64_t timestamp, uint8_t aslctrl_mode, float h, float hRef, float hRef_t, float PitchAngle, float PitchAngleRef, float q, float qRef, float uElev, float uThrot, float uThrot2, float aZ, float AirspeedRef, uint8_t SpoilersEngaged, float YawAngle, float YawAngleRef, float RollAngle, float RollAngleRef, float p, float pRef, float r, float rRef, float uAil, float uRud)
343 {
344 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
346  _mav_put_uint64_t(buf, 0, timestamp);
347  _mav_put_float(buf, 8, h);
348  _mav_put_float(buf, 12, hRef);
349  _mav_put_float(buf, 16, hRef_t);
350  _mav_put_float(buf, 20, PitchAngle);
351  _mav_put_float(buf, 24, PitchAngleRef);
352  _mav_put_float(buf, 28, q);
353  _mav_put_float(buf, 32, qRef);
354  _mav_put_float(buf, 36, uElev);
355  _mav_put_float(buf, 40, uThrot);
356  _mav_put_float(buf, 44, uThrot2);
357  _mav_put_float(buf, 48, aZ);
358  _mav_put_float(buf, 52, AirspeedRef);
359  _mav_put_float(buf, 56, YawAngle);
360  _mav_put_float(buf, 60, YawAngleRef);
361  _mav_put_float(buf, 64, RollAngle);
362  _mav_put_float(buf, 68, RollAngleRef);
363  _mav_put_float(buf, 72, p);
364  _mav_put_float(buf, 76, pRef);
365  _mav_put_float(buf, 80, r);
366  _mav_put_float(buf, 84, rRef);
367  _mav_put_float(buf, 88, uAil);
368  _mav_put_float(buf, 92, uRud);
369  _mav_put_uint8_t(buf, 96, aslctrl_mode);
370  _mav_put_uint8_t(buf, 97, SpoilersEngaged);
371 
372 #if MAVLINK_CRC_EXTRA
374 #else
375  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASLCTRL_DATA, buf, MAVLINK_MSG_ID_ASLCTRL_DATA_LEN);
376 #endif
377 #else
378  mavlink_aslctrl_data_t packet;
379  packet.timestamp = timestamp;
380  packet.h = h;
381  packet.hRef = hRef;
382  packet.hRef_t = hRef_t;
383  packet.PitchAngle = PitchAngle;
384  packet.PitchAngleRef = PitchAngleRef;
385  packet.q = q;
386  packet.qRef = qRef;
387  packet.uElev = uElev;
388  packet.uThrot = uThrot;
389  packet.uThrot2 = uThrot2;
390  packet.aZ = aZ;
391  packet.AirspeedRef = AirspeedRef;
392  packet.YawAngle = YawAngle;
393  packet.YawAngleRef = YawAngleRef;
394  packet.RollAngle = RollAngle;
395  packet.RollAngleRef = RollAngleRef;
396  packet.p = p;
397  packet.pRef = pRef;
398  packet.r = r;
399  packet.rRef = rRef;
400  packet.uAil = uAil;
401  packet.uRud = uRud;
402  packet.aslctrl_mode = aslctrl_mode;
403  packet.SpoilersEngaged = SpoilersEngaged;
404 
405 #if MAVLINK_CRC_EXTRA
406  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASLCTRL_DATA, (const char *)&packet, MAVLINK_MSG_ID_ASLCTRL_DATA_LEN, MAVLINK_MSG_ID_ASLCTRL_DATA_CRC);
407 #else
408  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASLCTRL_DATA, (const char *)&packet, MAVLINK_MSG_ID_ASLCTRL_DATA_LEN);
409 #endif
410 #endif
411 }
412 
413 #if MAVLINK_MSG_ID_ASLCTRL_DATA_LEN <= MAVLINK_MAX_PAYLOAD_LEN
414 /*
415  This varient of _send() can be used to save stack space by re-using
416  memory from the receive buffer. The caller provides a
417  mavlink_message_t which is the size of a full mavlink message. This
418  is usually the receive buffer for the channel, and allows a reply to an
419  incoming message with minimum stack space usage.
420  */
421 static inline void mavlink_msg_aslctrl_data_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t timestamp, uint8_t aslctrl_mode, float h, float hRef, float hRef_t, float PitchAngle, float PitchAngleRef, float q, float qRef, float uElev, float uThrot, float uThrot2, float aZ, float AirspeedRef, uint8_t SpoilersEngaged, float YawAngle, float YawAngleRef, float RollAngle, float RollAngleRef, float p, float pRef, float r, float rRef, float uAil, float uRud)
422 {
423 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
424  char *buf = (char *)msgbuf;
425  _mav_put_uint64_t(buf, 0, timestamp);
426  _mav_put_float(buf, 8, h);
427  _mav_put_float(buf, 12, hRef);
428  _mav_put_float(buf, 16, hRef_t);
429  _mav_put_float(buf, 20, PitchAngle);
430  _mav_put_float(buf, 24, PitchAngleRef);
431  _mav_put_float(buf, 28, q);
432  _mav_put_float(buf, 32, qRef);
433  _mav_put_float(buf, 36, uElev);
434  _mav_put_float(buf, 40, uThrot);
435  _mav_put_float(buf, 44, uThrot2);
436  _mav_put_float(buf, 48, aZ);
437  _mav_put_float(buf, 52, AirspeedRef);
438  _mav_put_float(buf, 56, YawAngle);
439  _mav_put_float(buf, 60, YawAngleRef);
440  _mav_put_float(buf, 64, RollAngle);
441  _mav_put_float(buf, 68, RollAngleRef);
442  _mav_put_float(buf, 72, p);
443  _mav_put_float(buf, 76, pRef);
444  _mav_put_float(buf, 80, r);
445  _mav_put_float(buf, 84, rRef);
446  _mav_put_float(buf, 88, uAil);
447  _mav_put_float(buf, 92, uRud);
448  _mav_put_uint8_t(buf, 96, aslctrl_mode);
449  _mav_put_uint8_t(buf, 97, SpoilersEngaged);
450 
451 #if MAVLINK_CRC_EXTRA
453 #else
454  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASLCTRL_DATA, buf, MAVLINK_MSG_ID_ASLCTRL_DATA_LEN);
455 #endif
456 #else
458  packet->timestamp = timestamp;
459  packet->h = h;
460  packet->hRef = hRef;
461  packet->hRef_t = hRef_t;
462  packet->PitchAngle = PitchAngle;
463  packet->PitchAngleRef = PitchAngleRef;
464  packet->q = q;
465  packet->qRef = qRef;
466  packet->uElev = uElev;
467  packet->uThrot = uThrot;
468  packet->uThrot2 = uThrot2;
469  packet->aZ = aZ;
470  packet->AirspeedRef = AirspeedRef;
471  packet->YawAngle = YawAngle;
472  packet->YawAngleRef = YawAngleRef;
473  packet->RollAngle = RollAngle;
474  packet->RollAngleRef = RollAngleRef;
475  packet->p = p;
476  packet->pRef = pRef;
477  packet->r = r;
478  packet->rRef = rRef;
479  packet->uAil = uAil;
480  packet->uRud = uRud;
481  packet->aslctrl_mode = aslctrl_mode;
482  packet->SpoilersEngaged = SpoilersEngaged;
483 
484 #if MAVLINK_CRC_EXTRA
485  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASLCTRL_DATA, (const char *)packet, MAVLINK_MSG_ID_ASLCTRL_DATA_LEN, MAVLINK_MSG_ID_ASLCTRL_DATA_CRC);
486 #else
487  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASLCTRL_DATA, (const char *)packet, MAVLINK_MSG_ID_ASLCTRL_DATA_LEN);
488 #endif
489 #endif
490 }
491 #endif
492 
493 #endif
494 
495 // MESSAGE ASLCTRL_DATA UNPACKING
496 
497 
503 static inline uint64_t mavlink_msg_aslctrl_data_get_timestamp(const mavlink_message_t* msg)
504 {
505  return _MAV_RETURN_uint64_t(msg, 0);
506 }
507 
513 static inline uint8_t mavlink_msg_aslctrl_data_get_aslctrl_mode(const mavlink_message_t* msg)
514 {
515  return _MAV_RETURN_uint8_t(msg, 96);
516 }
517 
523 static inline float mavlink_msg_aslctrl_data_get_h(const mavlink_message_t* msg)
524 {
525  return _MAV_RETURN_float(msg, 8);
526 }
527 
533 static inline float mavlink_msg_aslctrl_data_get_hRef(const mavlink_message_t* msg)
534 {
535  return _MAV_RETURN_float(msg, 12);
536 }
537 
543 static inline float mavlink_msg_aslctrl_data_get_hRef_t(const mavlink_message_t* msg)
544 {
545  return _MAV_RETURN_float(msg, 16);
546 }
547 
553 static inline float mavlink_msg_aslctrl_data_get_PitchAngle(const mavlink_message_t* msg)
554 {
555  return _MAV_RETURN_float(msg, 20);
556 }
557 
563 static inline float mavlink_msg_aslctrl_data_get_PitchAngleRef(const mavlink_message_t* msg)
564 {
565  return _MAV_RETURN_float(msg, 24);
566 }
567 
573 static inline float mavlink_msg_aslctrl_data_get_q(const mavlink_message_t* msg)
574 {
575  return _MAV_RETURN_float(msg, 28);
576 }
577 
583 static inline float mavlink_msg_aslctrl_data_get_qRef(const mavlink_message_t* msg)
584 {
585  return _MAV_RETURN_float(msg, 32);
586 }
587 
593 static inline float mavlink_msg_aslctrl_data_get_uElev(const mavlink_message_t* msg)
594 {
595  return _MAV_RETURN_float(msg, 36);
596 }
597 
603 static inline float mavlink_msg_aslctrl_data_get_uThrot(const mavlink_message_t* msg)
604 {
605  return _MAV_RETURN_float(msg, 40);
606 }
607 
613 static inline float mavlink_msg_aslctrl_data_get_uThrot2(const mavlink_message_t* msg)
614 {
615  return _MAV_RETURN_float(msg, 44);
616 }
617 
623 static inline float mavlink_msg_aslctrl_data_get_aZ(const mavlink_message_t* msg)
624 {
625  return _MAV_RETURN_float(msg, 48);
626 }
627 
633 static inline float mavlink_msg_aslctrl_data_get_AirspeedRef(const mavlink_message_t* msg)
634 {
635  return _MAV_RETURN_float(msg, 52);
636 }
637 
643 static inline uint8_t mavlink_msg_aslctrl_data_get_SpoilersEngaged(const mavlink_message_t* msg)
644 {
645  return _MAV_RETURN_uint8_t(msg, 97);
646 }
647 
653 static inline float mavlink_msg_aslctrl_data_get_YawAngle(const mavlink_message_t* msg)
654 {
655  return _MAV_RETURN_float(msg, 56);
656 }
657 
663 static inline float mavlink_msg_aslctrl_data_get_YawAngleRef(const mavlink_message_t* msg)
664 {
665  return _MAV_RETURN_float(msg, 60);
666 }
667 
673 static inline float mavlink_msg_aslctrl_data_get_RollAngle(const mavlink_message_t* msg)
674 {
675  return _MAV_RETURN_float(msg, 64);
676 }
677 
683 static inline float mavlink_msg_aslctrl_data_get_RollAngleRef(const mavlink_message_t* msg)
684 {
685  return _MAV_RETURN_float(msg, 68);
686 }
687 
693 static inline float mavlink_msg_aslctrl_data_get_p(const mavlink_message_t* msg)
694 {
695  return _MAV_RETURN_float(msg, 72);
696 }
697 
703 static inline float mavlink_msg_aslctrl_data_get_pRef(const mavlink_message_t* msg)
704 {
705  return _MAV_RETURN_float(msg, 76);
706 }
707 
713 static inline float mavlink_msg_aslctrl_data_get_r(const mavlink_message_t* msg)
714 {
715  return _MAV_RETURN_float(msg, 80);
716 }
717 
723 static inline float mavlink_msg_aslctrl_data_get_rRef(const mavlink_message_t* msg)
724 {
725  return _MAV_RETURN_float(msg, 84);
726 }
727 
733 static inline float mavlink_msg_aslctrl_data_get_uAil(const mavlink_message_t* msg)
734 {
735  return _MAV_RETURN_float(msg, 88);
736 }
737 
743 static inline float mavlink_msg_aslctrl_data_get_uRud(const mavlink_message_t* msg)
744 {
745  return _MAV_RETURN_float(msg, 92);
746 }
747 
754 static inline void mavlink_msg_aslctrl_data_decode(const mavlink_message_t* msg, mavlink_aslctrl_data_t* aslctrl_data)
755 {
756 #if MAVLINK_NEED_BYTE_SWAP
757  aslctrl_data->timestamp = mavlink_msg_aslctrl_data_get_timestamp(msg);
758  aslctrl_data->h = mavlink_msg_aslctrl_data_get_h(msg);
759  aslctrl_data->hRef = mavlink_msg_aslctrl_data_get_hRef(msg);
760  aslctrl_data->hRef_t = mavlink_msg_aslctrl_data_get_hRef_t(msg);
761  aslctrl_data->PitchAngle = mavlink_msg_aslctrl_data_get_PitchAngle(msg);
762  aslctrl_data->PitchAngleRef = mavlink_msg_aslctrl_data_get_PitchAngleRef(msg);
763  aslctrl_data->q = mavlink_msg_aslctrl_data_get_q(msg);
764  aslctrl_data->qRef = mavlink_msg_aslctrl_data_get_qRef(msg);
765  aslctrl_data->uElev = mavlink_msg_aslctrl_data_get_uElev(msg);
766  aslctrl_data->uThrot = mavlink_msg_aslctrl_data_get_uThrot(msg);
767  aslctrl_data->uThrot2 = mavlink_msg_aslctrl_data_get_uThrot2(msg);
768  aslctrl_data->aZ = mavlink_msg_aslctrl_data_get_aZ(msg);
769  aslctrl_data->AirspeedRef = mavlink_msg_aslctrl_data_get_AirspeedRef(msg);
770  aslctrl_data->YawAngle = mavlink_msg_aslctrl_data_get_YawAngle(msg);
771  aslctrl_data->YawAngleRef = mavlink_msg_aslctrl_data_get_YawAngleRef(msg);
772  aslctrl_data->RollAngle = mavlink_msg_aslctrl_data_get_RollAngle(msg);
773  aslctrl_data->RollAngleRef = mavlink_msg_aslctrl_data_get_RollAngleRef(msg);
774  aslctrl_data->p = mavlink_msg_aslctrl_data_get_p(msg);
775  aslctrl_data->pRef = mavlink_msg_aslctrl_data_get_pRef(msg);
776  aslctrl_data->r = mavlink_msg_aslctrl_data_get_r(msg);
777  aslctrl_data->rRef = mavlink_msg_aslctrl_data_get_rRef(msg);
778  aslctrl_data->uAil = mavlink_msg_aslctrl_data_get_uAil(msg);
779  aslctrl_data->uRud = mavlink_msg_aslctrl_data_get_uRud(msg);
780  aslctrl_data->aslctrl_mode = mavlink_msg_aslctrl_data_get_aslctrl_mode(msg);
781  aslctrl_data->SpoilersEngaged = mavlink_msg_aslctrl_data_get_SpoilersEngaged(msg);
782 #else
783  memcpy(aslctrl_data, _MAV_PAYLOAD(msg), MAVLINK_MSG_ID_ASLCTRL_DATA_LEN);
784 #endif
785 }
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
#define _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#define _mav_put_uint64_t(buf, wire_offset, b)
Definition: protocol.h:143