Move telemetry displayport init and cms device registering
[betaflight.git] / lib / main / MAVLink / common / mavlink_msg_mission_item.h
blobef9394f00cc7d2639d3489e8f6919587f8551e1f
1 // MESSAGE MISSION_ITEM PACKING
3 #define MAVLINK_MSG_ID_MISSION_ITEM 39
5 typedef struct __mavlink_mission_item_t
7 float param1; ///< PARAM1, see MAV_CMD enum
8 float param2; ///< PARAM2, see MAV_CMD enum
9 float param3; ///< PARAM3, see MAV_CMD enum
10 float param4; ///< PARAM4, see MAV_CMD enum
11 float x; ///< PARAM5 / local: x position, global: latitude
12 float y; ///< PARAM6 / y position: global: longitude
13 float z; ///< PARAM7 / z position: global: altitude (relative or absolute, depending on frame.
14 uint16_t seq; ///< Sequence
15 uint16_t command; ///< The scheduled action for the MISSION. see MAV_CMD in common.xml MAVLink specs
16 uint8_t target_system; ///< System ID
17 uint8_t target_component; ///< Component ID
18 uint8_t frame; ///< The coordinate system of the MISSION. see MAV_FRAME in mavlink_types.h
19 uint8_t current; ///< false:0, true:1
20 uint8_t autocontinue; ///< autocontinue to next wp
21 } mavlink_mission_item_t;
23 #define MAVLINK_MSG_ID_MISSION_ITEM_LEN 37
24 #define MAVLINK_MSG_ID_39_LEN 37
26 #define MAVLINK_MSG_ID_MISSION_ITEM_CRC 254
27 #define MAVLINK_MSG_ID_39_CRC 254
31 #define MAVLINK_MESSAGE_INFO_MISSION_ITEM { \
32 "MISSION_ITEM", \
33 14, \
34 { { "param1", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_mission_item_t, param1) }, \
35 { "param2", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_mission_item_t, param2) }, \
36 { "param3", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_mission_item_t, param3) }, \
37 { "param4", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_mission_item_t, param4) }, \
38 { "x", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_mission_item_t, x) }, \
39 { "y", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_mission_item_t, y) }, \
40 { "z", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_mission_item_t, z) }, \
41 { "seq", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_mission_item_t, seq) }, \
42 { "command", NULL, MAVLINK_TYPE_UINT16_T, 0, 30, offsetof(mavlink_mission_item_t, command) }, \
43 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_mission_item_t, target_system) }, \
44 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 33, offsetof(mavlink_mission_item_t, target_component) }, \
45 { "frame", NULL, MAVLINK_TYPE_UINT8_T, 0, 34, offsetof(mavlink_mission_item_t, frame) }, \
46 { "current", NULL, MAVLINK_TYPE_UINT8_T, 0, 35, offsetof(mavlink_mission_item_t, current) }, \
47 { "autocontinue", NULL, MAVLINK_TYPE_UINT8_T, 0, 36, offsetof(mavlink_mission_item_t, autocontinue) }, \
48 } \
52 /**
53 * @brief Pack a mission_item message
54 * @param system_id ID of this system
55 * @param component_id ID of this component (e.g. 200 for IMU)
56 * @param msg The MAVLink message to compress the data into
58 * @param target_system System ID
59 * @param target_component Component ID
60 * @param seq Sequence
61 * @param frame The coordinate system of the MISSION. see MAV_FRAME in mavlink_types.h
62 * @param command The scheduled action for the MISSION. see MAV_CMD in common.xml MAVLink specs
63 * @param current false:0, true:1
64 * @param autocontinue autocontinue to next wp
65 * @param param1 PARAM1, see MAV_CMD enum
66 * @param param2 PARAM2, see MAV_CMD enum
67 * @param param3 PARAM3, see MAV_CMD enum
68 * @param param4 PARAM4, see MAV_CMD enum
69 * @param x PARAM5 / local: x position, global: latitude
70 * @param y PARAM6 / y position: global: longitude
71 * @param z PARAM7 / z position: global: altitude (relative or absolute, depending on frame.
72 * @return length of the message in bytes (excluding serial stream start sign)
74 static inline uint16_t mavlink_msg_mission_item_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
75 uint8_t target_system, uint8_t target_component, uint16_t seq, uint8_t frame, uint16_t command, uint8_t current, uint8_t autocontinue, float param1, float param2, float param3, float param4, float x, float y, float z)
77 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
78 char buf[MAVLINK_MSG_ID_MISSION_ITEM_LEN];
79 _mav_put_float(buf, 0, param1);
80 _mav_put_float(buf, 4, param2);
81 _mav_put_float(buf, 8, param3);
82 _mav_put_float(buf, 12, param4);
83 _mav_put_float(buf, 16, x);
84 _mav_put_float(buf, 20, y);
85 _mav_put_float(buf, 24, z);
86 _mav_put_uint16_t(buf, 28, seq);
87 _mav_put_uint16_t(buf, 30, command);
88 _mav_put_uint8_t(buf, 32, target_system);
89 _mav_put_uint8_t(buf, 33, target_component);
90 _mav_put_uint8_t(buf, 34, frame);
91 _mav_put_uint8_t(buf, 35, current);
92 _mav_put_uint8_t(buf, 36, autocontinue);
94 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
95 #else
96 mavlink_mission_item_t packet;
97 packet.param1 = param1;
98 packet.param2 = param2;
99 packet.param3 = param3;
100 packet.param4 = param4;
101 packet.x = x;
102 packet.y = y;
103 packet.z = z;
104 packet.seq = seq;
105 packet.command = command;
106 packet.target_system = target_system;
107 packet.target_component = target_component;
108 packet.frame = frame;
109 packet.current = current;
110 packet.autocontinue = autocontinue;
112 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
113 #endif
115 msg->msgid = MAVLINK_MSG_ID_MISSION_ITEM;
116 #if MAVLINK_CRC_EXTRA
117 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_MISSION_ITEM_LEN, MAVLINK_MSG_ID_MISSION_ITEM_CRC);
118 #else
119 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
120 #endif
124 * @brief Pack a mission_item message on a channel
125 * @param system_id ID of this system
126 * @param component_id ID of this component (e.g. 200 for IMU)
127 * @param chan The MAVLink channel this message will be sent over
128 * @param msg The MAVLink message to compress the data into
129 * @param target_system System ID
130 * @param target_component Component ID
131 * @param seq Sequence
132 * @param frame The coordinate system of the MISSION. see MAV_FRAME in mavlink_types.h
133 * @param command The scheduled action for the MISSION. see MAV_CMD in common.xml MAVLink specs
134 * @param current false:0, true:1
135 * @param autocontinue autocontinue to next wp
136 * @param param1 PARAM1, see MAV_CMD enum
137 * @param param2 PARAM2, see MAV_CMD enum
138 * @param param3 PARAM3, see MAV_CMD enum
139 * @param param4 PARAM4, see MAV_CMD enum
140 * @param x PARAM5 / local: x position, global: latitude
141 * @param y PARAM6 / y position: global: longitude
142 * @param z PARAM7 / z position: global: altitude (relative or absolute, depending on frame.
143 * @return length of the message in bytes (excluding serial stream start sign)
145 static inline uint16_t mavlink_msg_mission_item_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
146 mavlink_message_t* msg,
147 uint8_t target_system,uint8_t target_component,uint16_t seq,uint8_t frame,uint16_t command,uint8_t current,uint8_t autocontinue,float param1,float param2,float param3,float param4,float x,float y,float z)
149 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
150 char buf[MAVLINK_MSG_ID_MISSION_ITEM_LEN];
151 _mav_put_float(buf, 0, param1);
152 _mav_put_float(buf, 4, param2);
153 _mav_put_float(buf, 8, param3);
154 _mav_put_float(buf, 12, param4);
155 _mav_put_float(buf, 16, x);
156 _mav_put_float(buf, 20, y);
157 _mav_put_float(buf, 24, z);
158 _mav_put_uint16_t(buf, 28, seq);
159 _mav_put_uint16_t(buf, 30, command);
160 _mav_put_uint8_t(buf, 32, target_system);
161 _mav_put_uint8_t(buf, 33, target_component);
162 _mav_put_uint8_t(buf, 34, frame);
163 _mav_put_uint8_t(buf, 35, current);
164 _mav_put_uint8_t(buf, 36, autocontinue);
166 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
167 #else
168 mavlink_mission_item_t packet;
169 packet.param1 = param1;
170 packet.param2 = param2;
171 packet.param3 = param3;
172 packet.param4 = param4;
173 packet.x = x;
174 packet.y = y;
175 packet.z = z;
176 packet.seq = seq;
177 packet.command = command;
178 packet.target_system = target_system;
179 packet.target_component = target_component;
180 packet.frame = frame;
181 packet.current = current;
182 packet.autocontinue = autocontinue;
184 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
185 #endif
187 msg->msgid = MAVLINK_MSG_ID_MISSION_ITEM;
188 #if MAVLINK_CRC_EXTRA
189 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_MISSION_ITEM_LEN, MAVLINK_MSG_ID_MISSION_ITEM_CRC);
190 #else
191 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
192 #endif
196 * @brief Encode a mission_item struct
198 * @param system_id ID of this system
199 * @param component_id ID of this component (e.g. 200 for IMU)
200 * @param msg The MAVLink message to compress the data into
201 * @param mission_item C-struct to read the message contents from
203 static inline uint16_t mavlink_msg_mission_item_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_mission_item_t* mission_item)
205 return mavlink_msg_mission_item_pack(system_id, component_id, msg, mission_item->target_system, mission_item->target_component, mission_item->seq, mission_item->frame, mission_item->command, mission_item->current, mission_item->autocontinue, mission_item->param1, mission_item->param2, mission_item->param3, mission_item->param4, mission_item->x, mission_item->y, mission_item->z);
209 * @brief Encode a mission_item struct on a channel
211 * @param system_id ID of this system
212 * @param component_id ID of this component (e.g. 200 for IMU)
213 * @param chan The MAVLink channel this message will be sent over
214 * @param msg The MAVLink message to compress the data into
215 * @param mission_item C-struct to read the message contents from
217 static inline uint16_t mavlink_msg_mission_item_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_mission_item_t* mission_item)
219 return mavlink_msg_mission_item_pack_chan(system_id, component_id, chan, msg, mission_item->target_system, mission_item->target_component, mission_item->seq, mission_item->frame, mission_item->command, mission_item->current, mission_item->autocontinue, mission_item->param1, mission_item->param2, mission_item->param3, mission_item->param4, mission_item->x, mission_item->y, mission_item->z);
223 * @brief Send a mission_item message
224 * @param chan MAVLink channel to send the message
226 * @param target_system System ID
227 * @param target_component Component ID
228 * @param seq Sequence
229 * @param frame The coordinate system of the MISSION. see MAV_FRAME in mavlink_types.h
230 * @param command The scheduled action for the MISSION. see MAV_CMD in common.xml MAVLink specs
231 * @param current false:0, true:1
232 * @param autocontinue autocontinue to next wp
233 * @param param1 PARAM1, see MAV_CMD enum
234 * @param param2 PARAM2, see MAV_CMD enum
235 * @param param3 PARAM3, see MAV_CMD enum
236 * @param param4 PARAM4, see MAV_CMD enum
237 * @param x PARAM5 / local: x position, global: latitude
238 * @param y PARAM6 / y position: global: longitude
239 * @param z PARAM7 / z position: global: altitude (relative or absolute, depending on frame.
241 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
243 static inline void mavlink_msg_mission_item_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint16_t seq, uint8_t frame, uint16_t command, uint8_t current, uint8_t autocontinue, float param1, float param2, float param3, float param4, float x, float y, float z)
245 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
246 char buf[MAVLINK_MSG_ID_MISSION_ITEM_LEN];
247 _mav_put_float(buf, 0, param1);
248 _mav_put_float(buf, 4, param2);
249 _mav_put_float(buf, 8, param3);
250 _mav_put_float(buf, 12, param4);
251 _mav_put_float(buf, 16, x);
252 _mav_put_float(buf, 20, y);
253 _mav_put_float(buf, 24, z);
254 _mav_put_uint16_t(buf, 28, seq);
255 _mav_put_uint16_t(buf, 30, command);
256 _mav_put_uint8_t(buf, 32, target_system);
257 _mav_put_uint8_t(buf, 33, target_component);
258 _mav_put_uint8_t(buf, 34, frame);
259 _mav_put_uint8_t(buf, 35, current);
260 _mav_put_uint8_t(buf, 36, autocontinue);
262 #if MAVLINK_CRC_EXTRA
263 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ITEM, buf, MAVLINK_MSG_ID_MISSION_ITEM_LEN, MAVLINK_MSG_ID_MISSION_ITEM_CRC);
264 #else
265 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ITEM, buf, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
266 #endif
267 #else
268 mavlink_mission_item_t packet;
269 packet.param1 = param1;
270 packet.param2 = param2;
271 packet.param3 = param3;
272 packet.param4 = param4;
273 packet.x = x;
274 packet.y = y;
275 packet.z = z;
276 packet.seq = seq;
277 packet.command = command;
278 packet.target_system = target_system;
279 packet.target_component = target_component;
280 packet.frame = frame;
281 packet.current = current;
282 packet.autocontinue = autocontinue;
284 #if MAVLINK_CRC_EXTRA
285 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ITEM, (const char *)&packet, MAVLINK_MSG_ID_MISSION_ITEM_LEN, MAVLINK_MSG_ID_MISSION_ITEM_CRC);
286 #else
287 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ITEM, (const char *)&packet, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
288 #endif
289 #endif
292 #if MAVLINK_MSG_ID_MISSION_ITEM_LEN <= MAVLINK_MAX_PAYLOAD_LEN
294 This varient of _send() can be used to save stack space by re-using
295 memory from the receive buffer. The caller provides a
296 mavlink_message_t which is the size of a full mavlink message. This
297 is usually the receive buffer for the channel, and allows a reply to an
298 incoming message with minimum stack space usage.
300 static inline void mavlink_msg_mission_item_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint16_t seq, uint8_t frame, uint16_t command, uint8_t current, uint8_t autocontinue, float param1, float param2, float param3, float param4, float x, float y, float z)
302 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
303 char *buf = (char *)msgbuf;
304 _mav_put_float(buf, 0, param1);
305 _mav_put_float(buf, 4, param2);
306 _mav_put_float(buf, 8, param3);
307 _mav_put_float(buf, 12, param4);
308 _mav_put_float(buf, 16, x);
309 _mav_put_float(buf, 20, y);
310 _mav_put_float(buf, 24, z);
311 _mav_put_uint16_t(buf, 28, seq);
312 _mav_put_uint16_t(buf, 30, command);
313 _mav_put_uint8_t(buf, 32, target_system);
314 _mav_put_uint8_t(buf, 33, target_component);
315 _mav_put_uint8_t(buf, 34, frame);
316 _mav_put_uint8_t(buf, 35, current);
317 _mav_put_uint8_t(buf, 36, autocontinue);
319 #if MAVLINK_CRC_EXTRA
320 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ITEM, buf, MAVLINK_MSG_ID_MISSION_ITEM_LEN, MAVLINK_MSG_ID_MISSION_ITEM_CRC);
321 #else
322 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ITEM, buf, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
323 #endif
324 #else
325 mavlink_mission_item_t *packet = (mavlink_mission_item_t *)msgbuf;
326 packet->param1 = param1;
327 packet->param2 = param2;
328 packet->param3 = param3;
329 packet->param4 = param4;
330 packet->x = x;
331 packet->y = y;
332 packet->z = z;
333 packet->seq = seq;
334 packet->command = command;
335 packet->target_system = target_system;
336 packet->target_component = target_component;
337 packet->frame = frame;
338 packet->current = current;
339 packet->autocontinue = autocontinue;
341 #if MAVLINK_CRC_EXTRA
342 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ITEM, (const char *)packet, MAVLINK_MSG_ID_MISSION_ITEM_LEN, MAVLINK_MSG_ID_MISSION_ITEM_CRC);
343 #else
344 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ITEM, (const char *)packet, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
345 #endif
346 #endif
348 #endif
350 #endif
352 // MESSAGE MISSION_ITEM UNPACKING
356 * @brief Get field target_system from mission_item message
358 * @return System ID
360 static inline uint8_t mavlink_msg_mission_item_get_target_system(const mavlink_message_t* msg)
362 return _MAV_RETURN_uint8_t(msg, 32);
366 * @brief Get field target_component from mission_item message
368 * @return Component ID
370 static inline uint8_t mavlink_msg_mission_item_get_target_component(const mavlink_message_t* msg)
372 return _MAV_RETURN_uint8_t(msg, 33);
376 * @brief Get field seq from mission_item message
378 * @return Sequence
380 static inline uint16_t mavlink_msg_mission_item_get_seq(const mavlink_message_t* msg)
382 return _MAV_RETURN_uint16_t(msg, 28);
386 * @brief Get field frame from mission_item message
388 * @return The coordinate system of the MISSION. see MAV_FRAME in mavlink_types.h
390 static inline uint8_t mavlink_msg_mission_item_get_frame(const mavlink_message_t* msg)
392 return _MAV_RETURN_uint8_t(msg, 34);
396 * @brief Get field command from mission_item message
398 * @return The scheduled action for the MISSION. see MAV_CMD in common.xml MAVLink specs
400 static inline uint16_t mavlink_msg_mission_item_get_command(const mavlink_message_t* msg)
402 return _MAV_RETURN_uint16_t(msg, 30);
406 * @brief Get field current from mission_item message
408 * @return false:0, true:1
410 static inline uint8_t mavlink_msg_mission_item_get_current(const mavlink_message_t* msg)
412 return _MAV_RETURN_uint8_t(msg, 35);
416 * @brief Get field autocontinue from mission_item message
418 * @return autocontinue to next wp
420 static inline uint8_t mavlink_msg_mission_item_get_autocontinue(const mavlink_message_t* msg)
422 return _MAV_RETURN_uint8_t(msg, 36);
426 * @brief Get field param1 from mission_item message
428 * @return PARAM1, see MAV_CMD enum
430 static inline float mavlink_msg_mission_item_get_param1(const mavlink_message_t* msg)
432 return _MAV_RETURN_float(msg, 0);
436 * @brief Get field param2 from mission_item message
438 * @return PARAM2, see MAV_CMD enum
440 static inline float mavlink_msg_mission_item_get_param2(const mavlink_message_t* msg)
442 return _MAV_RETURN_float(msg, 4);
446 * @brief Get field param3 from mission_item message
448 * @return PARAM3, see MAV_CMD enum
450 static inline float mavlink_msg_mission_item_get_param3(const mavlink_message_t* msg)
452 return _MAV_RETURN_float(msg, 8);
456 * @brief Get field param4 from mission_item message
458 * @return PARAM4, see MAV_CMD enum
460 static inline float mavlink_msg_mission_item_get_param4(const mavlink_message_t* msg)
462 return _MAV_RETURN_float(msg, 12);
466 * @brief Get field x from mission_item message
468 * @return PARAM5 / local: x position, global: latitude
470 static inline float mavlink_msg_mission_item_get_x(const mavlink_message_t* msg)
472 return _MAV_RETURN_float(msg, 16);
476 * @brief Get field y from mission_item message
478 * @return PARAM6 / y position: global: longitude
480 static inline float mavlink_msg_mission_item_get_y(const mavlink_message_t* msg)
482 return _MAV_RETURN_float(msg, 20);
486 * @brief Get field z from mission_item message
488 * @return PARAM7 / z position: global: altitude (relative or absolute, depending on frame.
490 static inline float mavlink_msg_mission_item_get_z(const mavlink_message_t* msg)
492 return _MAV_RETURN_float(msg, 24);
496 * @brief Decode a mission_item message into a struct
498 * @param msg The message to decode
499 * @param mission_item C-struct to decode the message contents into
501 static inline void mavlink_msg_mission_item_decode(const mavlink_message_t* msg, mavlink_mission_item_t* mission_item)
503 #if MAVLINK_NEED_BYTE_SWAP
504 mission_item->param1 = mavlink_msg_mission_item_get_param1(msg);
505 mission_item->param2 = mavlink_msg_mission_item_get_param2(msg);
506 mission_item->param3 = mavlink_msg_mission_item_get_param3(msg);
507 mission_item->param4 = mavlink_msg_mission_item_get_param4(msg);
508 mission_item->x = mavlink_msg_mission_item_get_x(msg);
509 mission_item->y = mavlink_msg_mission_item_get_y(msg);
510 mission_item->z = mavlink_msg_mission_item_get_z(msg);
511 mission_item->seq = mavlink_msg_mission_item_get_seq(msg);
512 mission_item->command = mavlink_msg_mission_item_get_command(msg);
513 mission_item->target_system = mavlink_msg_mission_item_get_target_system(msg);
514 mission_item->target_component = mavlink_msg_mission_item_get_target_component(msg);
515 mission_item->frame = mavlink_msg_mission_item_get_frame(msg);
516 mission_item->current = mavlink_msg_mission_item_get_current(msg);
517 mission_item->autocontinue = mavlink_msg_mission_item_get_autocontinue(msg);
518 #else
519 memcpy(mission_item, _MAV_PAYLOAD(msg), MAVLINK_MSG_ID_MISSION_ITEM_LEN);
520 #endif