4#define MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS 361
16} mavlink_figure_eight_execution_status_t;
18#define MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN 33
19#define MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_MIN_LEN 33
20#define MAVLINK_MSG_ID_361_LEN 33
21#define MAVLINK_MSG_ID_361_MIN_LEN 33
23#define MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_CRC 93
24#define MAVLINK_MSG_ID_361_CRC 93
28#if MAVLINK_COMMAND_24BIT
29#define MAVLINK_MESSAGE_INFO_FIGURE_EIGHT_EXECUTION_STATUS {
31 "FIGURE_EIGHT_EXECUTION_STATUS",
33 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_figure_eight_execution_status_t, time_usec) },
34 { "major_radius", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_figure_eight_execution_status_t, major_radius) },
35 { "minor_radius", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_figure_eight_execution_status_t, minor_radius) },
36 { "orientation", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_figure_eight_execution_status_t, orientation) },
37 { "frame", NULL, MAVLINK_TYPE_UINT8_T, 0
, 32
, offsetof(mavlink_figure_eight_execution_status_t, frame) },
38 { "x", NULL, MAVLINK_TYPE_INT32_T, 0
, 20
, offsetof(mavlink_figure_eight_execution_status_t, x) },
39 { "y", NULL, MAVLINK_TYPE_INT32_T, 0
, 24
, offsetof(mavlink_figure_eight_execution_status_t, y) },
40 { "z", NULL, MAVLINK_TYPE_FLOAT, 0
, 28
, offsetof(mavlink_figure_eight_execution_status_t, z) },
42}
44#define MAVLINK_MESSAGE_INFO_FIGURE_EIGHT_EXECUTION_STATUS {
45 "FIGURE_EIGHT_EXECUTION_STATUS",
47 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_figure_eight_execution_status_t, time_usec) },
48 { "major_radius", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_figure_eight_execution_status_t, major_radius) },
49 { "minor_radius", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_figure_eight_execution_status_t, minor_radius) },
50 { "orientation", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_figure_eight_execution_status_t, orientation) },
51 { "frame", NULL, MAVLINK_TYPE_UINT8_T, 0
, 32
, offsetof(mavlink_figure_eight_execution_status_t, frame) },
52 { "x", NULL, MAVLINK_TYPE_INT32_T, 0
, 20
, offsetof(mavlink_figure_eight_execution_status_t, x) },
53 { "y", NULL, MAVLINK_TYPE_INT32_T, 0
, 24
, offsetof(mavlink_figure_eight_execution_status_t, y) },
54 { "z", NULL, MAVLINK_TYPE_FLOAT, 0
, 28
, offsetof(mavlink_figure_eight_execution_status_t, z) },
56}
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75static inline uint16_t mavlink_msg_figure_eight_execution_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
76 uint64_t time_usec,
float major_radius,
float minor_radius,
float orientation, uint8_t frame, int32_t x, int32_t y,
float z)
78#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
80 _mav_put_uint64_t(buf, 0, time_usec);
81 _mav_put_float(buf, 8, major_radius);
82 _mav_put_float(buf, 12, minor_radius);
83 _mav_put_float(buf, 16, orientation);
84 _mav_put_int32_t(buf, 20, x);
85 _mav_put_int32_t(buf, 24, y);
86 _mav_put_float(buf, 28, z);
87 _mav_put_uint8_t(buf, 32, frame);
91 mavlink_figure_eight_execution_status_t packet;
92 packet.time_usec = time_usec;
93 packet.major_radius = major_radius;
94 packet.minor_radius = minor_radius;
95 packet.orientation = orientation;
101 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN);
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125static inline uint16_t mavlink_msg_figure_eight_execution_status_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
126 uint64_t time_usec,
float major_radius,
float minor_radius,
float orientation, uint8_t frame, int32_t x, int32_t y,
float z)
128#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
130 _mav_put_uint64_t(buf, 0, time_usec);
131 _mav_put_float(buf, 8, major_radius);
132 _mav_put_float(buf, 12, minor_radius);
133 _mav_put_float(buf, 16, orientation);
134 _mav_put_int32_t(buf, 20, x);
135 _mav_put_int32_t(buf, 24, y);
136 _mav_put_float(buf, 28, z);
137 _mav_put_uint8_t(buf, 32, frame);
141 mavlink_figure_eight_execution_status_t packet;
142 packet.time_usec = time_usec;
143 packet.major_radius = major_radius;
144 packet.minor_radius = minor_radius;
145 packet.orientation = orientation;
149 packet.frame = frame;
151 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN);
156 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_MIN_LEN, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_CRC);
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178static inline uint16_t mavlink_msg_figure_eight_execution_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
179 mavlink_message_t* msg,
180 uint64_t time_usec,
float major_radius,
float minor_radius,
float orientation,uint8_t frame,int32_t x,int32_t y,
float z)
182#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
184 _mav_put_uint64_t(buf, 0, time_usec);
185 _mav_put_float(buf, 8, major_radius);
186 _mav_put_float(buf, 12, minor_radius);
187 _mav_put_float(buf, 16, orientation);
188 _mav_put_int32_t(buf, 20, x);
189 _mav_put_int32_t(buf, 24, y);
190 _mav_put_float(buf, 28, z);
191 _mav_put_uint8_t(buf, 32, frame);
195 mavlink_figure_eight_execution_status_t packet;
196 packet.time_usec = time_usec;
197 packet.major_radius = major_radius;
198 packet.minor_radius = minor_radius;
199 packet.orientation = orientation;
203 packet.frame = frame;
205 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN);
213
214
215
216
217
218
219
220static inline uint16_t mavlink_msg_figure_eight_execution_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_figure_eight_execution_status_t* figure_eight_execution_status)
222 return mavlink_msg_figure_eight_execution_status_pack(system_id, component_id, msg, figure_eight_execution_status->time_usec, figure_eight_execution_status->major_radius, figure_eight_execution_status->minor_radius, figure_eight_execution_status->orientation, figure_eight_execution_status->frame, figure_eight_execution_status->x, figure_eight_execution_status->y, figure_eight_execution_status->z);
226
227
228
229
230
231
232
233
234static inline uint16_t mavlink_msg_figure_eight_execution_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_figure_eight_execution_status_t* figure_eight_execution_status)
236 return mavlink_msg_figure_eight_execution_status_pack_chan(system_id, component_id, chan, msg, figure_eight_execution_status->time_usec, figure_eight_execution_status->major_radius, figure_eight_execution_status->minor_radius, figure_eight_execution_status->orientation, figure_eight_execution_status->frame, figure_eight_execution_status->x, figure_eight_execution_status->y, figure_eight_execution_status->z);
240
241
242
243
244
245
246
247
248static inline uint16_t mavlink_msg_figure_eight_execution_status_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_figure_eight_execution_status_t* figure_eight_execution_status)
250 return mavlink_msg_figure_eight_execution_status_pack_status(system_id, component_id, _status, msg, figure_eight_execution_status->time_usec, figure_eight_execution_status->major_radius, figure_eight_execution_status->minor_radius, figure_eight_execution_status->orientation, figure_eight_execution_status->frame, figure_eight_execution_status->x, figure_eight_execution_status->y, figure_eight_execution_status->z);
254
255
256
257
258
259
260
261
262
263
264
265
266#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
268static inline void mavlink_msg_figure_eight_execution_status_send(mavlink_channel_t chan, uint64_t time_usec,
float major_radius,
float minor_radius,
float orientation, uint8_t frame, int32_t x, int32_t y,
float z)
270#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
271 char buf[MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN];
272 _mav_put_uint64_t(buf, 0, time_usec);
273 _mav_put_float(buf, 8, major_radius);
274 _mav_put_float(buf, 12, minor_radius);
275 _mav_put_float(buf, 16, orientation);
276 _mav_put_int32_t(buf, 20, x);
277 _mav_put_int32_t(buf, 24, y);
278 _mav_put_float(buf, 28, z);
279 _mav_put_uint8_t(buf, 32, frame);
281 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS, buf, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_MIN_LEN, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_CRC);
283 mavlink_figure_eight_execution_status_t packet;
284 packet.time_usec = time_usec;
285 packet.major_radius = major_radius;
286 packet.minor_radius = minor_radius;
287 packet.orientation = orientation;
291 packet.frame = frame;
293 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS, (
const char *)&packet, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_MIN_LEN, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_CRC);
298
299
300
301
302static inline void mavlink_msg_figure_eight_execution_status_send_struct(mavlink_channel_t chan,
const mavlink_figure_eight_execution_status_t* figure_eight_execution_status)
304#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
305 mavlink_msg_figure_eight_execution_status_send(chan, figure_eight_execution_status->time_usec, figure_eight_execution_status->major_radius, figure_eight_execution_status->minor_radius, figure_eight_execution_status->orientation, figure_eight_execution_status->frame, figure_eight_execution_status->x, figure_eight_execution_status->y, figure_eight_execution_status->z);
307 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS, (
const char *)figure_eight_execution_status, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_MIN_LEN, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_CRC);
311#if MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
313
314
315
316
317
318
319static inline void mavlink_msg_figure_eight_execution_status_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t time_usec,
float major_radius,
float minor_radius,
float orientation, uint8_t frame, int32_t x, int32_t y,
float z)
321#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
322 char *buf = (
char *)msgbuf;
323 _mav_put_uint64_t(buf, 0, time_usec);
324 _mav_put_float(buf, 8, major_radius);
325 _mav_put_float(buf, 12, minor_radius);
326 _mav_put_float(buf, 16, orientation);
327 _mav_put_int32_t(buf, 20, x);
328 _mav_put_int32_t(buf, 24, y);
329 _mav_put_float(buf, 28, z);
330 _mav_put_uint8_t(buf, 32, frame);
332 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS, buf, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_MIN_LEN, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_CRC);
334 mavlink_figure_eight_execution_status_t *packet = (mavlink_figure_eight_execution_status_t *)msgbuf;
335 packet->time_usec = time_usec;
336 packet->major_radius = major_radius;
337 packet->minor_radius = minor_radius;
338 packet->orientation = orientation;
342 packet->frame = frame;
344 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS, (
const char *)packet, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_MIN_LEN, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_CRC);
355
356
357
358
359static inline uint64_t mavlink_msg_figure_eight_execution_status_get_time_usec(
const mavlink_message_t* msg)
361 return _MAV_RETURN_uint64_t(msg, 0);
365
366
367
368
369static inline float mavlink_msg_figure_eight_execution_status_get_major_radius(
const mavlink_message_t* msg)
371 return _MAV_RETURN_float(msg, 8);
375
376
377
378
379static inline float mavlink_msg_figure_eight_execution_status_get_minor_radius(
const mavlink_message_t* msg)
381 return _MAV_RETURN_float(msg, 12);
385
386
387
388
389static inline float mavlink_msg_figure_eight_execution_status_get_orientation(
const mavlink_message_t* msg)
391 return _MAV_RETURN_float(msg, 16);
395
396
397
398
399static inline uint8_t mavlink_msg_figure_eight_execution_status_get_frame(
const mavlink_message_t* msg)
401 return _MAV_RETURN_uint8_t(msg, 32);
405
406
407
408
409static inline int32_t mavlink_msg_figure_eight_execution_status_get_x(
const mavlink_message_t* msg)
411 return _MAV_RETURN_int32_t(msg, 20);
415
416
417
418
419static inline int32_t mavlink_msg_figure_eight_execution_status_get_y(
const mavlink_message_t* msg)
421 return _MAV_RETURN_int32_t(msg, 24);
425
426
427
428
429static inline float mavlink_msg_figure_eight_execution_status_get_z(
const mavlink_message_t* msg)
431 return _MAV_RETURN_float(msg, 28);
435
436
437
438
439
440static inline void mavlink_msg_figure_eight_execution_status_decode(
const mavlink_message_t* msg, mavlink_figure_eight_execution_status_t* figure_eight_execution_status)
442#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
443 figure_eight_execution_status->time_usec = mavlink_msg_figure_eight_execution_status_get_time_usec(msg);
444 figure_eight_execution_status->major_radius = mavlink_msg_figure_eight_execution_status_get_major_radius(msg);
445 figure_eight_execution_status->minor_radius = mavlink_msg_figure_eight_execution_status_get_minor_radius(msg);
446 figure_eight_execution_status->orientation = mavlink_msg_figure_eight_execution_status_get_orientation(msg);
447 figure_eight_execution_status->x = mavlink_msg_figure_eight_execution_status_get_x(msg);
448 figure_eight_execution_status->y = mavlink_msg_figure_eight_execution_status_get_y(msg);
449 figure_eight_execution_status->z = mavlink_msg_figure_eight_execution_status_get_z(msg);
450 figure_eight_execution_status->frame = mavlink_msg_figure_eight_execution_status_get_frame(msg);
452 uint8_t len = msg->len < MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN? msg->len : MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN;
453 memset(figure_eight_execution_status, 0, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN);
454 memcpy(figure_eight_execution_status, _MAV_PAYLOAD(msg), len);