4#define MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS 360
14} mavlink_orbit_execution_status_t;
16#define MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN 25
17#define MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_MIN_LEN 25
18#define MAVLINK_MSG_ID_360_LEN 25
19#define MAVLINK_MSG_ID_360_MIN_LEN 25
21#define MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_CRC 11
22#define MAVLINK_MSG_ID_360_CRC 11
26#if MAVLINK_COMMAND_24BIT
27#define MAVLINK_MESSAGE_INFO_ORBIT_EXECUTION_STATUS {
29 "ORBIT_EXECUTION_STATUS",
31 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_orbit_execution_status_t, time_usec) },
32 { "radius", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_orbit_execution_status_t, radius) },
33 { "frame", NULL, MAVLINK_TYPE_UINT8_T, 0
, 24
, offsetof(mavlink_orbit_execution_status_t, frame) },
34 { "x", NULL, MAVLINK_TYPE_INT32_T, 0
, 12
, offsetof(mavlink_orbit_execution_status_t, x) },
35 { "y", NULL, MAVLINK_TYPE_INT32_T, 0
, 16
, offsetof(mavlink_orbit_execution_status_t, y) },
36 { "z", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_orbit_execution_status_t, z) },
38}
40#define MAVLINK_MESSAGE_INFO_ORBIT_EXECUTION_STATUS {
41 "ORBIT_EXECUTION_STATUS",
43 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_orbit_execution_status_t, time_usec) },
44 { "radius", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_orbit_execution_status_t, radius) },
45 { "frame", NULL, MAVLINK_TYPE_UINT8_T, 0
, 24
, offsetof(mavlink_orbit_execution_status_t, frame) },
46 { "x", NULL, MAVLINK_TYPE_INT32_T, 0
, 12
, offsetof(mavlink_orbit_execution_status_t, x) },
47 { "y", NULL, MAVLINK_TYPE_INT32_T, 0
, 16
, offsetof(mavlink_orbit_execution_status_t, y) },
48 { "z", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_orbit_execution_status_t, z) },
50}
54
55
56
57
58
59
60
61
62
63
64
65
66
67static inline uint16_t mavlink_msg_orbit_execution_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
68 uint64_t time_usec,
float radius, uint8_t frame, int32_t x, int32_t y,
float z)
70#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
72 _mav_put_uint64_t(buf, 0, time_usec);
73 _mav_put_float(buf, 8, radius);
74 _mav_put_int32_t(buf, 12, x);
75 _mav_put_int32_t(buf, 16, y);
76 _mav_put_float(buf, 20, z);
77 _mav_put_uint8_t(buf, 24, frame);
81 mavlink_orbit_execution_status_t packet;
82 packet.time_usec = time_usec;
83 packet.radius = radius;
89 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN);
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111static inline uint16_t mavlink_msg_orbit_execution_status_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
112 uint64_t time_usec,
float radius, uint8_t frame, int32_t x, int32_t y,
float z)
114#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
116 _mav_put_uint64_t(buf, 0, time_usec);
117 _mav_put_float(buf, 8, radius);
118 _mav_put_int32_t(buf, 12, x);
119 _mav_put_int32_t(buf, 16, y);
120 _mav_put_float(buf, 20, z);
121 _mav_put_uint8_t(buf, 24, frame);
125 mavlink_orbit_execution_status_t packet;
126 packet.time_usec = time_usec;
127 packet.radius = radius;
131 packet.frame = frame;
133 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN);
138 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_MIN_LEN, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_CRC);
145
146
147
148
149
150
151
152
153
154
155
156
157
158static inline uint16_t mavlink_msg_orbit_execution_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
159 mavlink_message_t* msg,
160 uint64_t time_usec,
float radius,uint8_t frame,int32_t x,int32_t y,
float z)
162#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
164 _mav_put_uint64_t(buf, 0, time_usec);
165 _mav_put_float(buf, 8, radius);
166 _mav_put_int32_t(buf, 12, x);
167 _mav_put_int32_t(buf, 16, y);
168 _mav_put_float(buf, 20, z);
169 _mav_put_uint8_t(buf, 24, frame);
173 mavlink_orbit_execution_status_t packet;
174 packet.time_usec = time_usec;
175 packet.radius = radius;
179 packet.frame = frame;
181 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN);
189
190
191
192
193
194
195
196static inline uint16_t mavlink_msg_orbit_execution_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_orbit_execution_status_t* orbit_execution_status)
198 return mavlink_msg_orbit_execution_status_pack(system_id, component_id, msg, orbit_execution_status->time_usec, orbit_execution_status->radius, orbit_execution_status->frame, orbit_execution_status->x, orbit_execution_status->y, orbit_execution_status->z);
202
203
204
205
206
207
208
209
210static inline uint16_t mavlink_msg_orbit_execution_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_orbit_execution_status_t* orbit_execution_status)
212 return mavlink_msg_orbit_execution_status_pack_chan(system_id, component_id, chan, msg, orbit_execution_status->time_usec, orbit_execution_status->radius, orbit_execution_status->frame, orbit_execution_status->x, orbit_execution_status->y, orbit_execution_status->z);
216
217
218
219
220
221
222
223
224static inline uint16_t mavlink_msg_orbit_execution_status_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_orbit_execution_status_t* orbit_execution_status)
226 return mavlink_msg_orbit_execution_status_pack_status(system_id, component_id, _status, msg, orbit_execution_status->time_usec, orbit_execution_status->radius, orbit_execution_status->frame, orbit_execution_status->x, orbit_execution_status->y, orbit_execution_status->z);
230
231
232
233
234
235
236
237
238
239
240#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
242static inline void mavlink_msg_orbit_execution_status_send(mavlink_channel_t chan, uint64_t time_usec,
float radius, uint8_t frame, int32_t x, int32_t y,
float z)
244#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
245 char buf[MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN];
246 _mav_put_uint64_t(buf, 0, time_usec);
247 _mav_put_float(buf, 8, radius);
248 _mav_put_int32_t(buf, 12, x);
249 _mav_put_int32_t(buf, 16, y);
250 _mav_put_float(buf, 20, z);
251 _mav_put_uint8_t(buf, 24, frame);
253 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS, buf, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_MIN_LEN, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_CRC);
255 mavlink_orbit_execution_status_t packet;
256 packet.time_usec = time_usec;
257 packet.radius = radius;
261 packet.frame = frame;
263 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS, (
const char *)&packet, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_MIN_LEN, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_CRC);
268
269
270
271
272static inline void mavlink_msg_orbit_execution_status_send_struct(mavlink_channel_t chan,
const mavlink_orbit_execution_status_t* orbit_execution_status)
274#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
275 mavlink_msg_orbit_execution_status_send(chan, orbit_execution_status->time_usec, orbit_execution_status->radius, orbit_execution_status->frame, orbit_execution_status->x, orbit_execution_status->y, orbit_execution_status->z);
277 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS, (
const char *)orbit_execution_status, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_MIN_LEN, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_CRC);
281#if MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
283
284
285
286
287
288
289static inline void mavlink_msg_orbit_execution_status_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t time_usec,
float radius, uint8_t frame, int32_t x, int32_t y,
float z)
291#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
292 char *buf = (
char *)msgbuf;
293 _mav_put_uint64_t(buf, 0, time_usec);
294 _mav_put_float(buf, 8, radius);
295 _mav_put_int32_t(buf, 12, x);
296 _mav_put_int32_t(buf, 16, y);
297 _mav_put_float(buf, 20, z);
298 _mav_put_uint8_t(buf, 24, frame);
300 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS, buf, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_MIN_LEN, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_CRC);
302 mavlink_orbit_execution_status_t *packet = (mavlink_orbit_execution_status_t *)msgbuf;
303 packet->time_usec = time_usec;
304 packet->radius = radius;
308 packet->frame = frame;
310 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS, (
const char *)packet, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_MIN_LEN, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_CRC);
321
322
323
324
325static inline uint64_t mavlink_msg_orbit_execution_status_get_time_usec(
const mavlink_message_t* msg)
327 return _MAV_RETURN_uint64_t(msg, 0);
331
332
333
334
335static inline float mavlink_msg_orbit_execution_status_get_radius(
const mavlink_message_t* msg)
337 return _MAV_RETURN_float(msg, 8);
341
342
343
344
345static inline uint8_t mavlink_msg_orbit_execution_status_get_frame(
const mavlink_message_t* msg)
347 return _MAV_RETURN_uint8_t(msg, 24);
351
352
353
354
355static inline int32_t mavlink_msg_orbit_execution_status_get_x(
const mavlink_message_t* msg)
357 return _MAV_RETURN_int32_t(msg, 12);
361
362
363
364
365static inline int32_t mavlink_msg_orbit_execution_status_get_y(
const mavlink_message_t* msg)
367 return _MAV_RETURN_int32_t(msg, 16);
371
372
373
374
375static inline float mavlink_msg_orbit_execution_status_get_z(
const mavlink_message_t* msg)
377 return _MAV_RETURN_float(msg, 20);
381
382
383
384
385
386static inline void mavlink_msg_orbit_execution_status_decode(
const mavlink_message_t* msg, mavlink_orbit_execution_status_t* orbit_execution_status)
388#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
389 orbit_execution_status->time_usec = mavlink_msg_orbit_execution_status_get_time_usec(msg);
390 orbit_execution_status->radius = mavlink_msg_orbit_execution_status_get_radius(msg);
391 orbit_execution_status->x = mavlink_msg_orbit_execution_status_get_x(msg);
392 orbit_execution_status->y = mavlink_msg_orbit_execution_status_get_y(msg);
393 orbit_execution_status->z = mavlink_msg_orbit_execution_status_get_z(msg);
394 orbit_execution_status->frame = mavlink_msg_orbit_execution_status_get_frame(msg);
396 uint8_t len = msg->len < MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN? msg->len : MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN;
397 memset(orbit_execution_status, 0, MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN);
398 memcpy(orbit_execution_status, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS
Definition: mavlink_msg_orbit_execution_status.h:4
#define MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_LEN
Definition: mavlink_msg_orbit_execution_status.h:16
#define MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_CRC
Definition: mavlink_msg_orbit_execution_status.h:21
#define MAVLINK_MSG_ID_ORBIT_EXECUTION_STATUS_MIN_LEN
Definition: mavlink_msg_orbit_execution_status.h:17
Definition: mavlink_msg_orbit_execution_status.h:7
uint64_t time_usec
Definition: mavlink_msg_orbit_execution_status.h:8
float radius
Definition: mavlink_msg_orbit_execution_status.h:9
uint8_t frame
Definition: mavlink_msg_orbit_execution_status.h:13
int32_t y
Definition: mavlink_msg_orbit_execution_status.h:11
int32_t x
Definition: mavlink_msg_orbit_execution_status.h:10
float z
Definition: mavlink_msg_orbit_execution_status.h:12