4#define MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED 84
24} mavlink_set_position_target_local_ned_t;
26#define MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN 53
27#define MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_MIN_LEN 53
28#define MAVLINK_MSG_ID_84_LEN 53
29#define MAVLINK_MSG_ID_84_MIN_LEN 53
31#define MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_CRC 143
32#define MAVLINK_MSG_ID_84_CRC 143
36#if MAVLINK_COMMAND_24BIT
37#define MAVLINK_MESSAGE_INFO_SET_POSITION_TARGET_LOCAL_NED {
39 "SET_POSITION_TARGET_LOCAL_NED",
41 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0
, 0
, offsetof(mavlink_set_position_target_local_ned_t, time_boot_ms) },
42 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 50
, offsetof(mavlink_set_position_target_local_ned_t, target_system) },
43 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 51
, offsetof(mavlink_set_position_target_local_ned_t, target_component) },
44 { "coordinate_frame", NULL, MAVLINK_TYPE_UINT8_T, 0
, 52
, offsetof(mavlink_set_position_target_local_ned_t, coordinate_frame) },
45 { "type_mask", NULL, MAVLINK_TYPE_UINT16_T, 0
, 48
, offsetof(mavlink_set_position_target_local_ned_t, type_mask) },
46 { "x", NULL, MAVLINK_TYPE_FLOAT, 0
, 4
, offsetof(mavlink_set_position_target_local_ned_t, x) },
47 { "y", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_set_position_target_local_ned_t, y) },
48 { "z", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_set_position_target_local_ned_t, z) },
49 { "vx", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_set_position_target_local_ned_t, vx) },
50 { "vy", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_set_position_target_local_ned_t, vy) },
51 { "vz", NULL, MAVLINK_TYPE_FLOAT, 0
, 24
, offsetof(mavlink_set_position_target_local_ned_t, vz) },
52 { "afx", NULL, MAVLINK_TYPE_FLOAT, 0
, 28
, offsetof(mavlink_set_position_target_local_ned_t, afx) },
53 { "afy", NULL, MAVLINK_TYPE_FLOAT, 0
, 32
, offsetof(mavlink_set_position_target_local_ned_t, afy) },
54 { "afz", NULL, MAVLINK_TYPE_FLOAT, 0
, 36
, offsetof(mavlink_set_position_target_local_ned_t, afz) },
55 { "yaw", NULL, MAVLINK_TYPE_FLOAT, 0
, 40
, offsetof(mavlink_set_position_target_local_ned_t, yaw) },
56 { "yaw_rate", NULL, MAVLINK_TYPE_FLOAT, 0
, 44
, offsetof(mavlink_set_position_target_local_ned_t, yaw_rate) },
58}
60#define MAVLINK_MESSAGE_INFO_SET_POSITION_TARGET_LOCAL_NED {
61 "SET_POSITION_TARGET_LOCAL_NED",
63 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0
, 0
, offsetof(mavlink_set_position_target_local_ned_t, time_boot_ms) },
64 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 50
, offsetof(mavlink_set_position_target_local_ned_t, target_system) },
65 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 51
, offsetof(mavlink_set_position_target_local_ned_t, target_component) },
66 { "coordinate_frame", NULL, MAVLINK_TYPE_UINT8_T, 0
, 52
, offsetof(mavlink_set_position_target_local_ned_t, coordinate_frame) },
67 { "type_mask", NULL, MAVLINK_TYPE_UINT16_T, 0
, 48
, offsetof(mavlink_set_position_target_local_ned_t, type_mask) },
68 { "x", NULL, MAVLINK_TYPE_FLOAT, 0
, 4
, offsetof(mavlink_set_position_target_local_ned_t, x) },
69 { "y", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_set_position_target_local_ned_t, y) },
70 { "z", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_set_position_target_local_ned_t, z) },
71 { "vx", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_set_position_target_local_ned_t, vx) },
72 { "vy", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_set_position_target_local_ned_t, vy) },
73 { "vz", NULL, MAVLINK_TYPE_FLOAT, 0
, 24
, offsetof(mavlink_set_position_target_local_ned_t, vz) },
74 { "afx", NULL, MAVLINK_TYPE_FLOAT, 0
, 28
, offsetof(mavlink_set_position_target_local_ned_t, afx) },
75 { "afy", NULL, MAVLINK_TYPE_FLOAT, 0
, 32
, offsetof(mavlink_set_position_target_local_ned_t, afy) },
76 { "afz", NULL, MAVLINK_TYPE_FLOAT, 0
, 36
, offsetof(mavlink_set_position_target_local_ned_t, afz) },
77 { "yaw", NULL, MAVLINK_TYPE_FLOAT, 0
, 40
, offsetof(mavlink_set_position_target_local_ned_t, yaw) },
78 { "yaw_rate", NULL, MAVLINK_TYPE_FLOAT, 0
, 44
, offsetof(mavlink_set_position_target_local_ned_t, yaw_rate) },
80}
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107static inline uint16_t mavlink_msg_set_position_target_local_ned_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
108 uint32_t time_boot_ms, uint8_t target_system, uint8_t target_component, uint8_t coordinate_frame, uint16_t type_mask,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float afx,
float afy,
float afz,
float yaw,
float yaw_rate)
110#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
112 _mav_put_uint32_t(buf, 0, time_boot_ms);
113 _mav_put_float(buf, 4, x);
114 _mav_put_float(buf, 8, y);
115 _mav_put_float(buf, 12, z);
116 _mav_put_float(buf, 16, vx);
117 _mav_put_float(buf, 20, vy);
118 _mav_put_float(buf, 24, vz);
119 _mav_put_float(buf, 28, afx);
120 _mav_put_float(buf, 32, afy);
121 _mav_put_float(buf, 36, afz);
122 _mav_put_float(buf, 40, yaw);
123 _mav_put_float(buf, 44, yaw_rate);
124 _mav_put_uint16_t(buf, 48, type_mask);
125 _mav_put_uint8_t(buf, 50, target_system);
126 _mav_put_uint8_t(buf, 51, target_component);
127 _mav_put_uint8_t(buf, 52, coordinate_frame);
131 mavlink_set_position_target_local_ned_t packet;
132 packet.time_boot_ms = time_boot_ms;
143 packet.yaw_rate = yaw_rate;
144 packet.type_mask = type_mask;
145 packet.target_system = target_system;
146 packet.target_component = target_component;
147 packet.coordinate_frame = coordinate_frame;
149 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN);
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181static inline uint16_t mavlink_msg_set_position_target_local_ned_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
182 uint32_t time_boot_ms, uint8_t target_system, uint8_t target_component, uint8_t coordinate_frame, uint16_t type_mask,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float afx,
float afy,
float afz,
float yaw,
float yaw_rate)
184#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
186 _mav_put_uint32_t(buf, 0, time_boot_ms);
187 _mav_put_float(buf, 4, x);
188 _mav_put_float(buf, 8, y);
189 _mav_put_float(buf, 12, z);
190 _mav_put_float(buf, 16, vx);
191 _mav_put_float(buf, 20, vy);
192 _mav_put_float(buf, 24, vz);
193 _mav_put_float(buf, 28, afx);
194 _mav_put_float(buf, 32, afy);
195 _mav_put_float(buf, 36, afz);
196 _mav_put_float(buf, 40, yaw);
197 _mav_put_float(buf, 44, yaw_rate);
198 _mav_put_uint16_t(buf, 48, type_mask);
199 _mav_put_uint8_t(buf, 50, target_system);
200 _mav_put_uint8_t(buf, 51, target_component);
201 _mav_put_uint8_t(buf, 52, coordinate_frame);
205 mavlink_set_position_target_local_ned_t packet;
206 packet.time_boot_ms = time_boot_ms;
217 packet.yaw_rate = yaw_rate;
218 packet.type_mask = type_mask;
219 packet.target_system = target_system;
220 packet.target_component = target_component;
221 packet.coordinate_frame = coordinate_frame;
223 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN);
228 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_MIN_LEN, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_CRC);
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258static inline uint16_t mavlink_msg_set_position_target_local_ned_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
259 mavlink_message_t* msg,
260 uint32_t time_boot_ms,uint8_t target_system,uint8_t target_component,uint8_t coordinate_frame,uint16_t type_mask,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float afx,
float afy,
float afz,
float yaw,
float yaw_rate)
262#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
264 _mav_put_uint32_t(buf, 0, time_boot_ms);
265 _mav_put_float(buf, 4, x);
266 _mav_put_float(buf, 8, y);
267 _mav_put_float(buf, 12, z);
268 _mav_put_float(buf, 16, vx);
269 _mav_put_float(buf, 20, vy);
270 _mav_put_float(buf, 24, vz);
271 _mav_put_float(buf, 28, afx);
272 _mav_put_float(buf, 32, afy);
273 _mav_put_float(buf, 36, afz);
274 _mav_put_float(buf, 40, yaw);
275 _mav_put_float(buf, 44, yaw_rate);
276 _mav_put_uint16_t(buf, 48, type_mask);
277 _mav_put_uint8_t(buf, 50, target_system);
278 _mav_put_uint8_t(buf, 51, target_component);
279 _mav_put_uint8_t(buf, 52, coordinate_frame);
283 mavlink_set_position_target_local_ned_t packet;
284 packet.time_boot_ms = time_boot_ms;
295 packet.yaw_rate = yaw_rate;
296 packet.type_mask = type_mask;
297 packet.target_system = target_system;
298 packet.target_component = target_component;
299 packet.coordinate_frame = coordinate_frame;
301 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN);
309
310
311
312
313
314
315
316static inline uint16_t mavlink_msg_set_position_target_local_ned_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_set_position_target_local_ned_t* set_position_target_local_ned)
318 return mavlink_msg_set_position_target_local_ned_pack(system_id, component_id, msg, set_position_target_local_ned->time_boot_ms, set_position_target_local_ned->target_system, set_position_target_local_ned->target_component, set_position_target_local_ned->coordinate_frame, set_position_target_local_ned->type_mask, set_position_target_local_ned->x, set_position_target_local_ned->y, set_position_target_local_ned->z, set_position_target_local_ned->vx, set_position_target_local_ned->vy, set_position_target_local_ned->vz, set_position_target_local_ned->afx, set_position_target_local_ned->afy, set_position_target_local_ned->afz, set_position_target_local_ned->yaw, set_position_target_local_ned->yaw_rate);
322
323
324
325
326
327
328
329
330static inline uint16_t mavlink_msg_set_position_target_local_ned_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_set_position_target_local_ned_t* set_position_target_local_ned)
332 return mavlink_msg_set_position_target_local_ned_pack_chan(system_id, component_id, chan, msg, set_position_target_local_ned->time_boot_ms, set_position_target_local_ned->target_system, set_position_target_local_ned->target_component, set_position_target_local_ned->coordinate_frame, set_position_target_local_ned->type_mask, set_position_target_local_ned->x, set_position_target_local_ned->y, set_position_target_local_ned->z, set_position_target_local_ned->vx, set_position_target_local_ned->vy, set_position_target_local_ned->vz, set_position_target_local_ned->afx, set_position_target_local_ned->afy, set_position_target_local_ned->afz, set_position_target_local_ned->yaw, set_position_target_local_ned->yaw_rate);
336
337
338
339
340
341
342
343
344static inline uint16_t mavlink_msg_set_position_target_local_ned_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_set_position_target_local_ned_t* set_position_target_local_ned)
346 return mavlink_msg_set_position_target_local_ned_pack_status(system_id, component_id, _status, msg, set_position_target_local_ned->time_boot_ms, set_position_target_local_ned->target_system, set_position_target_local_ned->target_component, set_position_target_local_ned->coordinate_frame, set_position_target_local_ned->type_mask, set_position_target_local_ned->x, set_position_target_local_ned->y, set_position_target_local_ned->z, set_position_target_local_ned->vx, set_position_target_local_ned->vy, set_position_target_local_ned->vz, set_position_target_local_ned->afx, set_position_target_local_ned->afy, set_position_target_local_ned->afz, set_position_target_local_ned->yaw, set_position_target_local_ned->yaw_rate);
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
372static inline void mavlink_msg_set_position_target_local_ned_send(mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t target_system, uint8_t target_component, uint8_t coordinate_frame, uint16_t type_mask,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float afx,
float afy,
float afz,
float yaw,
float yaw_rate)
374#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
375 char buf[MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN];
376 _mav_put_uint32_t(buf, 0, time_boot_ms);
377 _mav_put_float(buf, 4, x);
378 _mav_put_float(buf, 8, y);
379 _mav_put_float(buf, 12, z);
380 _mav_put_float(buf, 16, vx);
381 _mav_put_float(buf, 20, vy);
382 _mav_put_float(buf, 24, vz);
383 _mav_put_float(buf, 28, afx);
384 _mav_put_float(buf, 32, afy);
385 _mav_put_float(buf, 36, afz);
386 _mav_put_float(buf, 40, yaw);
387 _mav_put_float(buf, 44, yaw_rate);
388 _mav_put_uint16_t(buf, 48, type_mask);
389 _mav_put_uint8_t(buf, 50, target_system);
390 _mav_put_uint8_t(buf, 51, target_component);
391 _mav_put_uint8_t(buf, 52, coordinate_frame);
393 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED, buf, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_MIN_LEN, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_CRC);
395 mavlink_set_position_target_local_ned_t packet;
396 packet.time_boot_ms = time_boot_ms;
407 packet.yaw_rate = yaw_rate;
408 packet.type_mask = type_mask;
409 packet.target_system = target_system;
410 packet.target_component = target_component;
411 packet.coordinate_frame = coordinate_frame;
413 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED, (
const char *)&packet, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_MIN_LEN, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_CRC);
418
419
420
421
422static inline void mavlink_msg_set_position_target_local_ned_send_struct(mavlink_channel_t chan,
const mavlink_set_position_target_local_ned_t* set_position_target_local_ned)
424#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
425 mavlink_msg_set_position_target_local_ned_send(chan, set_position_target_local_ned->time_boot_ms, set_position_target_local_ned->target_system, set_position_target_local_ned->target_component, set_position_target_local_ned->coordinate_frame, set_position_target_local_ned->type_mask, set_position_target_local_ned->x, set_position_target_local_ned->y, set_position_target_local_ned->z, set_position_target_local_ned->vx, set_position_target_local_ned->vy, set_position_target_local_ned->vz, set_position_target_local_ned->afx, set_position_target_local_ned->afy, set_position_target_local_ned->afz, set_position_target_local_ned->yaw, set_position_target_local_ned->yaw_rate);
427 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED, (
const char *)set_position_target_local_ned, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_MIN_LEN, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_CRC);
431#if MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN <= MAVLINK_MAX_PAYLOAD_LEN
433
434
435
436
437
438
439static inline void mavlink_msg_set_position_target_local_ned_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t target_system, uint8_t target_component, uint8_t coordinate_frame, uint16_t type_mask,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float afx,
float afy,
float afz,
float yaw,
float yaw_rate)
441#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
442 char *buf = (
char *)msgbuf;
443 _mav_put_uint32_t(buf, 0, time_boot_ms);
444 _mav_put_float(buf, 4, x);
445 _mav_put_float(buf, 8, y);
446 _mav_put_float(buf, 12, z);
447 _mav_put_float(buf, 16, vx);
448 _mav_put_float(buf, 20, vy);
449 _mav_put_float(buf, 24, vz);
450 _mav_put_float(buf, 28, afx);
451 _mav_put_float(buf, 32, afy);
452 _mav_put_float(buf, 36, afz);
453 _mav_put_float(buf, 40, yaw);
454 _mav_put_float(buf, 44, yaw_rate);
455 _mav_put_uint16_t(buf, 48, type_mask);
456 _mav_put_uint8_t(buf, 50, target_system);
457 _mav_put_uint8_t(buf, 51, target_component);
458 _mav_put_uint8_t(buf, 52, coordinate_frame);
460 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED, buf, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_MIN_LEN, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_CRC);
462 mavlink_set_position_target_local_ned_t *packet = (mavlink_set_position_target_local_ned_t *)msgbuf;
463 packet->time_boot_ms = time_boot_ms;
474 packet->yaw_rate = yaw_rate;
475 packet->type_mask = type_mask;
476 packet->target_system = target_system;
477 packet->target_component = target_component;
478 packet->coordinate_frame = coordinate_frame;
480 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED, (
const char *)packet, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_MIN_LEN, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_CRC);
491
492
493
494
495static inline uint32_t mavlink_msg_set_position_target_local_ned_get_time_boot_ms(
const mavlink_message_t* msg)
497 return _MAV_RETURN_uint32_t(msg, 0);
501
502
503
504
505static inline uint8_t mavlink_msg_set_position_target_local_ned_get_target_system(
const mavlink_message_t* msg)
507 return _MAV_RETURN_uint8_t(msg, 50);
511
512
513
514
515static inline uint8_t mavlink_msg_set_position_target_local_ned_get_target_component(
const mavlink_message_t* msg)
517 return _MAV_RETURN_uint8_t(msg, 51);
521
522
523
524
525static inline uint8_t mavlink_msg_set_position_target_local_ned_get_coordinate_frame(
const mavlink_message_t* msg)
527 return _MAV_RETURN_uint8_t(msg, 52);
531
532
533
534
535static inline uint16_t mavlink_msg_set_position_target_local_ned_get_type_mask(
const mavlink_message_t* msg)
537 return _MAV_RETURN_uint16_t(msg, 48);
541
542
543
544
545static inline float mavlink_msg_set_position_target_local_ned_get_x(
const mavlink_message_t* msg)
547 return _MAV_RETURN_float(msg, 4);
551
552
553
554
555static inline float mavlink_msg_set_position_target_local_ned_get_y(
const mavlink_message_t* msg)
557 return _MAV_RETURN_float(msg, 8);
561
562
563
564
565static inline float mavlink_msg_set_position_target_local_ned_get_z(
const mavlink_message_t* msg)
567 return _MAV_RETURN_float(msg, 12);
571
572
573
574
575static inline float mavlink_msg_set_position_target_local_ned_get_vx(
const mavlink_message_t* msg)
577 return _MAV_RETURN_float(msg, 16);
581
582
583
584
585static inline float mavlink_msg_set_position_target_local_ned_get_vy(
const mavlink_message_t* msg)
587 return _MAV_RETURN_float(msg, 20);
591
592
593
594
595static inline float mavlink_msg_set_position_target_local_ned_get_vz(
const mavlink_message_t* msg)
597 return _MAV_RETURN_float(msg, 24);
601
602
603
604
605static inline float mavlink_msg_set_position_target_local_ned_get_afx(
const mavlink_message_t* msg)
607 return _MAV_RETURN_float(msg, 28);
611
612
613
614
615static inline float mavlink_msg_set_position_target_local_ned_get_afy(
const mavlink_message_t* msg)
617 return _MAV_RETURN_float(msg, 32);
621
622
623
624
625static inline float mavlink_msg_set_position_target_local_ned_get_afz(
const mavlink_message_t* msg)
627 return _MAV_RETURN_float(msg, 36);
631
632
633
634
635static inline float mavlink_msg_set_position_target_local_ned_get_yaw(
const mavlink_message_t* msg)
637 return _MAV_RETURN_float(msg, 40);
641
642
643
644
645static inline float mavlink_msg_set_position_target_local_ned_get_yaw_rate(
const mavlink_message_t* msg)
647 return _MAV_RETURN_float(msg, 44);
651
652
653
654
655
656static inline void mavlink_msg_set_position_target_local_ned_decode(
const mavlink_message_t* msg, mavlink_set_position_target_local_ned_t* set_position_target_local_ned)
658#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
659 set_position_target_local_ned->time_boot_ms = mavlink_msg_set_position_target_local_ned_get_time_boot_ms(msg);
660 set_position_target_local_ned->x = mavlink_msg_set_position_target_local_ned_get_x(msg);
661 set_position_target_local_ned->y = mavlink_msg_set_position_target_local_ned_get_y(msg);
662 set_position_target_local_ned->z = mavlink_msg_set_position_target_local_ned_get_z(msg);
663 set_position_target_local_ned->vx = mavlink_msg_set_position_target_local_ned_get_vx(msg);
664 set_position_target_local_ned->vy = mavlink_msg_set_position_target_local_ned_get_vy(msg);
665 set_position_target_local_ned->vz = mavlink_msg_set_position_target_local_ned_get_vz(msg);
666 set_position_target_local_ned->afx = mavlink_msg_set_position_target_local_ned_get_afx(msg);
667 set_position_target_local_ned->afy = mavlink_msg_set_position_target_local_ned_get_afy(msg);
668 set_position_target_local_ned->afz = mavlink_msg_set_position_target_local_ned_get_afz(msg);
669 set_position_target_local_ned->yaw = mavlink_msg_set_position_target_local_ned_get_yaw(msg);
670 set_position_target_local_ned->yaw_rate = mavlink_msg_set_position_target_local_ned_get_yaw_rate(msg);
671 set_position_target_local_ned->type_mask = mavlink_msg_set_position_target_local_ned_get_type_mask(msg);
672 set_position_target_local_ned->target_system = mavlink_msg_set_position_target_local_ned_get_target_system(msg);
673 set_position_target_local_ned->target_component = mavlink_msg_set_position_target_local_ned_get_target_component(msg);
674 set_position_target_local_ned->coordinate_frame = mavlink_msg_set_position_target_local_ned_get_coordinate_frame(msg);
676 uint8_t len = msg->len < MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN? msg->len : MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN;
677 memset(set_position_target_local_ned, 0, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN);
678 memcpy(set_position_target_local_ned, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED
Definition: mavlink_msg_set_position_target_local_ned.h:4
#define MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN
Definition: mavlink_msg_set_position_target_local_ned.h:26
#define MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_CRC
Definition: mavlink_msg_set_position_target_local_ned.h:31
#define MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_MIN_LEN
Definition: mavlink_msg_set_position_target_local_ned.h:27
Definition: mavlink_msg_set_position_target_local_ned.h:7
uint8_t coordinate_frame
Definition: mavlink_msg_set_position_target_local_ned.h:23
uint8_t target_component
Definition: mavlink_msg_set_position_target_local_ned.h:22
float vz
Definition: mavlink_msg_set_position_target_local_ned.h:14
float afz
Definition: mavlink_msg_set_position_target_local_ned.h:17
float vy
Definition: mavlink_msg_set_position_target_local_ned.h:13
float yaw_rate
Definition: mavlink_msg_set_position_target_local_ned.h:19
float afx
Definition: mavlink_msg_set_position_target_local_ned.h:15
float yaw
Definition: mavlink_msg_set_position_target_local_ned.h:18
float vx
Definition: mavlink_msg_set_position_target_local_ned.h:12
float y
Definition: mavlink_msg_set_position_target_local_ned.h:10
uint16_t type_mask
Definition: mavlink_msg_set_position_target_local_ned.h:20
uint8_t target_system
Definition: mavlink_msg_set_position_target_local_ned.h:21
float afy
Definition: mavlink_msg_set_position_target_local_ned.h:16
float x
Definition: mavlink_msg_set_position_target_local_ned.h:9
uint32_t time_boot_ms
Definition: mavlink_msg_set_position_target_local_ned.h:8
float z
Definition: mavlink_msg_set_position_target_local_ned.h:11