1 // MESSAGE MISSION_ITEM_INT PACKING
3 #define MAVLINK_MSG_ID_MISSION_ITEM_INT 73
5 typedef struct __mavlink_mission_item_int_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 int32_t x
; ///< PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7
12 int32_t y
; ///< PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7
13 float z
; ///< PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame.
14 uint16_t seq
; ///< Waypoint ID (sequence number). Starts at zero. Increases monotonically for each waypoint, no gaps in the sequence (0,1,2,3,4).
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_int_t
;
23 #define MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN 37
24 #define MAVLINK_MSG_ID_73_LEN 37
26 #define MAVLINK_MSG_ID_MISSION_ITEM_INT_CRC 38
27 #define MAVLINK_MSG_ID_73_CRC 38
31 #define MAVLINK_MESSAGE_INFO_MISSION_ITEM_INT { \
34 { { "param1", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_mission_item_int_t, param1) }, \
35 { "param2", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_mission_item_int_t, param2) }, \
36 { "param3", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_mission_item_int_t, param3) }, \
37 { "param4", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_mission_item_int_t, param4) }, \
38 { "x", NULL, MAVLINK_TYPE_INT32_T, 0, 16, offsetof(mavlink_mission_item_int_t, x) }, \
39 { "y", NULL, MAVLINK_TYPE_INT32_T, 0, 20, offsetof(mavlink_mission_item_int_t, y) }, \
40 { "z", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_mission_item_int_t, z) }, \
41 { "seq", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_mission_item_int_t, seq) }, \
42 { "command", NULL, MAVLINK_TYPE_UINT16_T, 0, 30, offsetof(mavlink_mission_item_int_t, command) }, \
43 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_mission_item_int_t, target_system) }, \
44 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 33, offsetof(mavlink_mission_item_int_t, target_component) }, \
45 { "frame", NULL, MAVLINK_TYPE_UINT8_T, 0, 34, offsetof(mavlink_mission_item_int_t, frame) }, \
46 { "current", NULL, MAVLINK_TYPE_UINT8_T, 0, 35, offsetof(mavlink_mission_item_int_t, current) }, \
47 { "autocontinue", NULL, MAVLINK_TYPE_UINT8_T, 0, 36, offsetof(mavlink_mission_item_int_t, autocontinue) }, \
53 * @brief Pack a mission_item_int 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 Waypoint ID (sequence number). Starts at zero. Increases monotonically for each waypoint, no gaps in the sequence (0,1,2,3,4).
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 in meters * 1e4, global: latitude in degrees * 10^7
70 * @param y PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7
71 * @param z PARAM7 / z position: global: altitude in meters (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_int_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
, int32_t x
, int32_t y
, float z
)
77 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
78 char buf
[MAVLINK_MSG_ID_MISSION_ITEM_INT_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_int32_t(buf
, 16, x
);
84 _mav_put_int32_t(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_INT_LEN
);
96 mavlink_mission_item_int_t packet
;
97 packet
.param1
= param1
;
98 packet
.param2
= param2
;
99 packet
.param3
= param3
;
100 packet
.param4
= param4
;
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_INT_LEN
);
115 msg
->msgid
= MAVLINK_MSG_ID_MISSION_ITEM_INT
;
116 #if MAVLINK_CRC_EXTRA
117 return mavlink_finalize_message(msg
, system_id
, component_id
, MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
, MAVLINK_MSG_ID_MISSION_ITEM_INT_CRC
);
119 return mavlink_finalize_message(msg
, system_id
, component_id
, MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
);
124 * @brief Pack a mission_item_int 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 Waypoint ID (sequence number). Starts at zero. Increases monotonically for each waypoint, no gaps in the sequence (0,1,2,3,4).
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 in meters * 1e4, global: latitude in degrees * 10^7
141 * @param y PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7
142 * @param z PARAM7 / z position: global: altitude in meters (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_int_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
,int32_t x
,int32_t y
,float z
)
149 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
150 char buf
[MAVLINK_MSG_ID_MISSION_ITEM_INT_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_int32_t(buf
, 16, x
);
156 _mav_put_int32_t(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_INT_LEN
);
168 mavlink_mission_item_int_t packet
;
169 packet
.param1
= param1
;
170 packet
.param2
= param2
;
171 packet
.param3
= param3
;
172 packet
.param4
= param4
;
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_INT_LEN
);
187 msg
->msgid
= MAVLINK_MSG_ID_MISSION_ITEM_INT
;
188 #if MAVLINK_CRC_EXTRA
189 return mavlink_finalize_message_chan(msg
, system_id
, component_id
, chan
, MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
, MAVLINK_MSG_ID_MISSION_ITEM_INT_CRC
);
191 return mavlink_finalize_message_chan(msg
, system_id
, component_id
, chan
, MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
);
196 * @brief Encode a mission_item_int 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_int C-struct to read the message contents from
203 static inline uint16_t mavlink_msg_mission_item_int_encode(uint8_t system_id
, uint8_t component_id
, mavlink_message_t
* msg
, const mavlink_mission_item_int_t
* mission_item_int
)
205 return mavlink_msg_mission_item_int_pack(system_id
, component_id
, msg
, mission_item_int
->target_system
, mission_item_int
->target_component
, mission_item_int
->seq
, mission_item_int
->frame
, mission_item_int
->command
, mission_item_int
->current
, mission_item_int
->autocontinue
, mission_item_int
->param1
, mission_item_int
->param2
, mission_item_int
->param3
, mission_item_int
->param4
, mission_item_int
->x
, mission_item_int
->y
, mission_item_int
->z
);
209 * @brief Encode a mission_item_int 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_int C-struct to read the message contents from
217 static inline uint16_t mavlink_msg_mission_item_int_encode_chan(uint8_t system_id
, uint8_t component_id
, uint8_t chan
, mavlink_message_t
* msg
, const mavlink_mission_item_int_t
* mission_item_int
)
219 return mavlink_msg_mission_item_int_pack_chan(system_id
, component_id
, chan
, msg
, mission_item_int
->target_system
, mission_item_int
->target_component
, mission_item_int
->seq
, mission_item_int
->frame
, mission_item_int
->command
, mission_item_int
->current
, mission_item_int
->autocontinue
, mission_item_int
->param1
, mission_item_int
->param2
, mission_item_int
->param3
, mission_item_int
->param4
, mission_item_int
->x
, mission_item_int
->y
, mission_item_int
->z
);
223 * @brief Send a mission_item_int 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 Waypoint ID (sequence number). Starts at zero. Increases monotonically for each waypoint, no gaps in the sequence (0,1,2,3,4).
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 in meters * 1e4, global: latitude in degrees * 10^7
238 * @param y PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7
239 * @param z PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame.
241 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
243 static inline void mavlink_msg_mission_item_int_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
, int32_t x
, int32_t y
, float z
)
245 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
246 char buf
[MAVLINK_MSG_ID_MISSION_ITEM_INT_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_int32_t(buf
, 16, x
);
252 _mav_put_int32_t(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_INT
, buf
, MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
, MAVLINK_MSG_ID_MISSION_ITEM_INT_CRC
);
265 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_MISSION_ITEM_INT
, buf
, MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
);
268 mavlink_mission_item_int_t packet
;
269 packet
.param1
= param1
;
270 packet
.param2
= param2
;
271 packet
.param3
= param3
;
272 packet
.param4
= param4
;
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_INT
, (const char *)&packet
, MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
, MAVLINK_MSG_ID_MISSION_ITEM_INT_CRC
);
287 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_MISSION_ITEM_INT
, (const char *)&packet
, MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
);
292 #if MAVLINK_MSG_ID_MISSION_ITEM_INT_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_int_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
, int32_t x
, int32_t 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_int32_t(buf
, 16, x
);
309 _mav_put_int32_t(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_INT
, buf
, MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
, MAVLINK_MSG_ID_MISSION_ITEM_INT_CRC
);
322 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_MISSION_ITEM_INT
, buf
, MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
);
325 mavlink_mission_item_int_t
*packet
= (mavlink_mission_item_int_t
*)msgbuf
;
326 packet
->param1
= param1
;
327 packet
->param2
= param2
;
328 packet
->param3
= param3
;
329 packet
->param4
= param4
;
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_INT
, (const char *)packet
, MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
, MAVLINK_MSG_ID_MISSION_ITEM_INT_CRC
);
344 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_MISSION_ITEM_INT
, (const char *)packet
, MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
);
352 // MESSAGE MISSION_ITEM_INT UNPACKING
356 * @brief Get field target_system from mission_item_int message
360 static inline uint8_t mavlink_msg_mission_item_int_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_int message
368 * @return Component ID
370 static inline uint8_t mavlink_msg_mission_item_int_get_target_component(const mavlink_message_t
* msg
)
372 return _MAV_RETURN_uint8_t(msg
, 33);
376 * @brief Get field seq from mission_item_int message
378 * @return Waypoint ID (sequence number). Starts at zero. Increases monotonically for each waypoint, no gaps in the sequence (0,1,2,3,4).
380 static inline uint16_t mavlink_msg_mission_item_int_get_seq(const mavlink_message_t
* msg
)
382 return _MAV_RETURN_uint16_t(msg
, 28);
386 * @brief Get field frame from mission_item_int 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_int_get_frame(const mavlink_message_t
* msg
)
392 return _MAV_RETURN_uint8_t(msg
, 34);
396 * @brief Get field command from mission_item_int 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_int_get_command(const mavlink_message_t
* msg
)
402 return _MAV_RETURN_uint16_t(msg
, 30);
406 * @brief Get field current from mission_item_int message
408 * @return false:0, true:1
410 static inline uint8_t mavlink_msg_mission_item_int_get_current(const mavlink_message_t
* msg
)
412 return _MAV_RETURN_uint8_t(msg
, 35);
416 * @brief Get field autocontinue from mission_item_int message
418 * @return autocontinue to next wp
420 static inline uint8_t mavlink_msg_mission_item_int_get_autocontinue(const mavlink_message_t
* msg
)
422 return _MAV_RETURN_uint8_t(msg
, 36);
426 * @brief Get field param1 from mission_item_int message
428 * @return PARAM1, see MAV_CMD enum
430 static inline float mavlink_msg_mission_item_int_get_param1(const mavlink_message_t
* msg
)
432 return _MAV_RETURN_float(msg
, 0);
436 * @brief Get field param2 from mission_item_int message
438 * @return PARAM2, see MAV_CMD enum
440 static inline float mavlink_msg_mission_item_int_get_param2(const mavlink_message_t
* msg
)
442 return _MAV_RETURN_float(msg
, 4);
446 * @brief Get field param3 from mission_item_int message
448 * @return PARAM3, see MAV_CMD enum
450 static inline float mavlink_msg_mission_item_int_get_param3(const mavlink_message_t
* msg
)
452 return _MAV_RETURN_float(msg
, 8);
456 * @brief Get field param4 from mission_item_int message
458 * @return PARAM4, see MAV_CMD enum
460 static inline float mavlink_msg_mission_item_int_get_param4(const mavlink_message_t
* msg
)
462 return _MAV_RETURN_float(msg
, 12);
466 * @brief Get field x from mission_item_int message
468 * @return PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7
470 static inline int32_t mavlink_msg_mission_item_int_get_x(const mavlink_message_t
* msg
)
472 return _MAV_RETURN_int32_t(msg
, 16);
476 * @brief Get field y from mission_item_int message
478 * @return PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7
480 static inline int32_t mavlink_msg_mission_item_int_get_y(const mavlink_message_t
* msg
)
482 return _MAV_RETURN_int32_t(msg
, 20);
486 * @brief Get field z from mission_item_int message
488 * @return PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame.
490 static inline float mavlink_msg_mission_item_int_get_z(const mavlink_message_t
* msg
)
492 return _MAV_RETURN_float(msg
, 24);
496 * @brief Decode a mission_item_int message into a struct
498 * @param msg The message to decode
499 * @param mission_item_int C-struct to decode the message contents into
501 static inline void mavlink_msg_mission_item_int_decode(const mavlink_message_t
* msg
, mavlink_mission_item_int_t
* mission_item_int
)
503 #if MAVLINK_NEED_BYTE_SWAP
504 mission_item_int
->param1
= mavlink_msg_mission_item_int_get_param1(msg
);
505 mission_item_int
->param2
= mavlink_msg_mission_item_int_get_param2(msg
);
506 mission_item_int
->param3
= mavlink_msg_mission_item_int_get_param3(msg
);
507 mission_item_int
->param4
= mavlink_msg_mission_item_int_get_param4(msg
);
508 mission_item_int
->x
= mavlink_msg_mission_item_int_get_x(msg
);
509 mission_item_int
->y
= mavlink_msg_mission_item_int_get_y(msg
);
510 mission_item_int
->z
= mavlink_msg_mission_item_int_get_z(msg
);
511 mission_item_int
->seq
= mavlink_msg_mission_item_int_get_seq(msg
);
512 mission_item_int
->command
= mavlink_msg_mission_item_int_get_command(msg
);
513 mission_item_int
->target_system
= mavlink_msg_mission_item_int_get_target_system(msg
);
514 mission_item_int
->target_component
= mavlink_msg_mission_item_int_get_target_component(msg
);
515 mission_item_int
->frame
= mavlink_msg_mission_item_int_get_frame(msg
);
516 mission_item_int
->current
= mavlink_msg_mission_item_int_get_current(msg
);
517 mission_item_int
->autocontinue
= mavlink_msg_mission_item_int_get_autocontinue(msg
);
519 memcpy(mission_item_int
, _MAV_PAYLOAD(msg
), MAVLINK_MSG_ID_MISSION_ITEM_INT_LEN
);