Arduino Mavlink
Loading...
Searching...
No Matches
mavlink_msg_figure_eight_execution_status.h
Go to the documentation of this file.
1#pragma once
2// MESSAGE FIGURE_EIGHT_EXECUTION_STATUS PACKING
3
4#define MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS 361
5
6
8 uint64_t time_usec; /*< [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.*/
9 float major_radius; /*< [m] Major axis radius of the figure eight. Positive: orbit the north circle clockwise. Negative: orbit the north circle counter-clockwise.*/
10 float minor_radius; /*< [m] Minor axis radius of the figure eight. Defines the radius of two circles that make up the figure.*/
11 float orientation; /*< [rad] Orientation of the figure eight major axis with respect to true north in [-pi,pi).*/
12 int32_t x; /*< X coordinate of center point. Coordinate system depends on frame field.*/
13 int32_t y; /*< Y coordinate of center point. Coordinate system depends on frame field.*/
14 float z; /*< [m] Altitude of center point. Coordinate system depends on frame field.*/
15 uint8_t frame; /*< The coordinate system of the fields: x, y, z.*/
16} mavlink_figure_eight_execution_status_t;
17
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
22
23#define MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_CRC 93
24#define MAVLINK_MSG_ID_361_CRC 93
25
26
27
28#if MAVLINK_COMMAND_24BIT
29#define MAVLINK_MESSAGE_INFO_FIGURE_EIGHT_EXECUTION_STATUS {
30 361,
31 "FIGURE_EIGHT_EXECUTION_STATUS",
32 8,
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) },
41 } \
42}
43#else
44#define MAVLINK_MESSAGE_INFO_FIGURE_EIGHT_EXECUTION_STATUS {
45 "FIGURE_EIGHT_EXECUTION_STATUS",
46 8,
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) },
55 } \
56}
57#endif
58
59/**
60 * @brief Pack a figure_eight_execution_status message
61 * @param system_id ID of this system
62 * @param component_id ID of this component (e.g. 200 for IMU)
63 * @param msg The MAVLink message to compress the data into
64 *
65 * @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.
66 * @param major_radius [m] Major axis radius of the figure eight. Positive: orbit the north circle clockwise. Negative: orbit the north circle counter-clockwise.
67 * @param minor_radius [m] Minor axis radius of the figure eight. Defines the radius of two circles that make up the figure.
68 * @param orientation [rad] Orientation of the figure eight major axis with respect to true north in [-pi,pi).
69 * @param frame The coordinate system of the fields: x, y, z.
70 * @param x X coordinate of center point. Coordinate system depends on frame field.
71 * @param y Y coordinate of center point. Coordinate system depends on frame field.
72 * @param z [m] Altitude of center point. Coordinate system depends on frame field.
73 * @return length of the message in bytes (excluding serial stream start sign)
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)
77{
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);
88
89 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN);
90#else
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;
96 packet.x = x;
97 packet.y = y;
98 packet.z = z;
99 packet.frame = frame;
100
101 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN);
102#endif
103
106}
107
108/**
109 * @brief Pack a figure_eight_execution_status message
110 * @param system_id ID of this system
111 * @param component_id ID of this component (e.g. 200 for IMU)
112 * @param status MAVLink status structure
113 * @param msg The MAVLink message to compress the data into
114 *
115 * @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.
116 * @param major_radius [m] Major axis radius of the figure eight. Positive: orbit the north circle clockwise. Negative: orbit the north circle counter-clockwise.
117 * @param minor_radius [m] Minor axis radius of the figure eight. Defines the radius of two circles that make up the figure.
118 * @param orientation [rad] Orientation of the figure eight major axis with respect to true north in [-pi,pi).
119 * @param frame The coordinate system of the fields: x, y, z.
120 * @param x X coordinate of center point. Coordinate system depends on frame field.
121 * @param y Y coordinate of center point. Coordinate system depends on frame field.
122 * @param z [m] Altitude of center point. Coordinate system depends on frame field.
123 * @return length of the message in bytes (excluding serial stream start sign)
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)
127{
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);
138
139 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN);
140#else
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;
146 packet.x = x;
147 packet.y = y;
148 packet.z = z;
149 packet.frame = frame;
150
151 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN);
152#endif
153
155#if MAVLINK_CRC_EXTRA
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);
157#else
158 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);
159#endif
160}
161
162/**
163 * @brief Pack a figure_eight_execution_status message on a channel
164 * @param system_id ID of this system
165 * @param component_id ID of this component (e.g. 200 for IMU)
166 * @param chan The MAVLink channel this message will be sent over
167 * @param msg The MAVLink message to compress the data into
168 * @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.
169 * @param major_radius [m] Major axis radius of the figure eight. Positive: orbit the north circle clockwise. Negative: orbit the north circle counter-clockwise.
170 * @param minor_radius [m] Minor axis radius of the figure eight. Defines the radius of two circles that make up the figure.
171 * @param orientation [rad] Orientation of the figure eight major axis with respect to true north in [-pi,pi).
172 * @param frame The coordinate system of the fields: x, y, z.
173 * @param x X coordinate of center point. Coordinate system depends on frame field.
174 * @param y Y coordinate of center point. Coordinate system depends on frame field.
175 * @param z [m] Altitude of center point. Coordinate system depends on frame field.
176 * @return length of the message in bytes (excluding serial stream start sign)
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)
181{
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);
192
193 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN);
194#else
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;
200 packet.x = x;
201 packet.y = y;
202 packet.z = z;
203 packet.frame = frame;
204
205 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN);
206#endif
207
210}
211
212/**
213 * @brief Encode a figure_eight_execution_status struct
214 *
215 * @param system_id ID of this system
216 * @param component_id ID of this component (e.g. 200 for IMU)
217 * @param msg The MAVLink message to compress the data into
218 * @param figure_eight_execution_status C-struct to read the message contents from
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)
221{
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);
223}
224
225/**
226 * @brief Encode a figure_eight_execution_status struct on a channel
227 *
228 * @param system_id ID of this system
229 * @param component_id ID of this component (e.g. 200 for IMU)
230 * @param chan The MAVLink channel this message will be sent over
231 * @param msg The MAVLink message to compress the data into
232 * @param figure_eight_execution_status C-struct to read the message contents from
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)
235{
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);
237}
238
239/**
240 * @brief Encode a figure_eight_execution_status struct with provided status structure
241 *
242 * @param system_id ID of this system
243 * @param component_id ID of this component (e.g. 200 for IMU)
244 * @param status MAVLink status structure
245 * @param msg The MAVLink message to compress the data into
246 * @param figure_eight_execution_status C-struct to read the message contents from
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)
249{
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);
251}
252
253/**
254 * @brief Send a figure_eight_execution_status message
255 * @param chan MAVLink channel to send the message
256 *
257 * @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.
258 * @param major_radius [m] Major axis radius of the figure eight. Positive: orbit the north circle clockwise. Negative: orbit the north circle counter-clockwise.
259 * @param minor_radius [m] Minor axis radius of the figure eight. Defines the radius of two circles that make up the figure.
260 * @param orientation [rad] Orientation of the figure eight major axis with respect to true north in [-pi,pi).
261 * @param frame The coordinate system of the fields: x, y, z.
262 * @param x X coordinate of center point. Coordinate system depends on frame field.
263 * @param y Y coordinate of center point. Coordinate system depends on frame field.
264 * @param z [m] Altitude of center point. Coordinate system depends on frame field.
265 */
266#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
267
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)
269{
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);
280
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);
282#else
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;
288 packet.x = x;
289 packet.y = y;
290 packet.z = z;
291 packet.frame = frame;
292
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);
294#endif
295}
296
297/**
298 * @brief Send a figure_eight_execution_status message
299 * @param chan MAVLink channel to send the message
300 * @param struct The MAVLink struct to serialize
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)
303{
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);
306#else
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);
308#endif
309}
310
311#if MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
312/*
313 This variant of _send() can be used to save stack space by reusing
314 memory from the receive buffer. The caller provides a
315 mavlink_message_t which is the size of a full mavlink message. This
316 is usually the receive buffer for the channel, and allows a reply to an
317 incoming message with minimum stack space usage.
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)
320{
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);
331
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);
333#else
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;
339 packet->x = x;
340 packet->y = y;
341 packet->z = z;
342 packet->frame = frame;
343
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);
345#endif
346}
347#endif
348
349#endif
350
351// MESSAGE FIGURE_EIGHT_EXECUTION_STATUS UNPACKING
352
353
354/**
355 * @brief Get field time_usec from figure_eight_execution_status message
356 *
357 * @return [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.
358 */
359static inline uint64_t mavlink_msg_figure_eight_execution_status_get_time_usec(const mavlink_message_t* msg)
360{
361 return _MAV_RETURN_uint64_t(msg, 0);
362}
363
364/**
365 * @brief Get field major_radius from figure_eight_execution_status message
366 *
367 * @return [m] Major axis radius of the figure eight. Positive: orbit the north circle clockwise. Negative: orbit the north circle counter-clockwise.
368 */
369static inline float mavlink_msg_figure_eight_execution_status_get_major_radius(const mavlink_message_t* msg)
370{
371 return _MAV_RETURN_float(msg, 8);
372}
373
374/**
375 * @brief Get field minor_radius from figure_eight_execution_status message
376 *
377 * @return [m] Minor axis radius of the figure eight. Defines the radius of two circles that make up the figure.
378 */
379static inline float mavlink_msg_figure_eight_execution_status_get_minor_radius(const mavlink_message_t* msg)
380{
381 return _MAV_RETURN_float(msg, 12);
382}
383
384/**
385 * @brief Get field orientation from figure_eight_execution_status message
386 *
387 * @return [rad] Orientation of the figure eight major axis with respect to true north in [-pi,pi).
388 */
389static inline float mavlink_msg_figure_eight_execution_status_get_orientation(const mavlink_message_t* msg)
390{
391 return _MAV_RETURN_float(msg, 16);
392}
393
394/**
395 * @brief Get field frame from figure_eight_execution_status message
396 *
397 * @return The coordinate system of the fields: x, y, z.
398 */
399static inline uint8_t mavlink_msg_figure_eight_execution_status_get_frame(const mavlink_message_t* msg)
400{
401 return _MAV_RETURN_uint8_t(msg, 32);
402}
403
404/**
405 * @brief Get field x from figure_eight_execution_status message
406 *
407 * @return X coordinate of center point. Coordinate system depends on frame field.
408 */
409static inline int32_t mavlink_msg_figure_eight_execution_status_get_x(const mavlink_message_t* msg)
410{
411 return _MAV_RETURN_int32_t(msg, 20);
412}
413
414/**
415 * @brief Get field y from figure_eight_execution_status message
416 *
417 * @return Y coordinate of center point. Coordinate system depends on frame field.
418 */
419static inline int32_t mavlink_msg_figure_eight_execution_status_get_y(const mavlink_message_t* msg)
420{
421 return _MAV_RETURN_int32_t(msg, 24);
422}
423
424/**
425 * @brief Get field z from figure_eight_execution_status message
426 *
427 * @return [m] Altitude of center point. Coordinate system depends on frame field.
428 */
429static inline float mavlink_msg_figure_eight_execution_status_get_z(const mavlink_message_t* msg)
430{
431 return _MAV_RETURN_float(msg, 28);
432}
433
434/**
435 * @brief Decode a figure_eight_execution_status message into a struct
436 *
437 * @param msg The message to decode
438 * @param figure_eight_execution_status C-struct to decode the message contents into
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)
441{
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);
451#else
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);
455#endif
456}