4#define MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED 84
7typedef struct __mavlink_set_position_target_local_ned_t {
21 uint8_t target_system;
22 uint8_t target_component;
23 uint8_t coordinate_frame;
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) }, \
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) }, \
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
111 char buf[MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN];
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);
129 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN);
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);
152 msg->msgid = MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED;
153 return mavlink_finalize_message(msg, system_id, component_id, 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);
180static inline uint16_t mavlink_msg_set_position_target_local_ned_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
181 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
185 char buf[MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN];
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);
203 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN);
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);
226 msg->msgid = MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED;
227 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, 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);
238static 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)
240 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);
252static 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)
254 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);
278#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
280static 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)
282#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
283 char buf[MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN];
284 _mav_put_uint32_t(buf, 0, time_boot_ms);
285 _mav_put_float(buf, 4, x);
286 _mav_put_float(buf, 8, y);
287 _mav_put_float(buf, 12, z);
288 _mav_put_float(buf, 16, vx);
289 _mav_put_float(buf, 20, vy);
290 _mav_put_float(buf, 24, vz);
291 _mav_put_float(buf, 28, afx);
292 _mav_put_float(buf, 32, afy);
293 _mav_put_float(buf, 36, afz);
294 _mav_put_float(buf, 40, yaw);
295 _mav_put_float(buf, 44, yaw_rate);
296 _mav_put_uint16_t(buf, 48, type_mask);
297 _mav_put_uint8_t(buf, 50, target_system);
298 _mav_put_uint8_t(buf, 51, target_component);
299 _mav_put_uint8_t(buf, 52, coordinate_frame);
301 _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);
303 mavlink_set_position_target_local_ned_t packet;
304 packet.time_boot_ms = time_boot_ms;
315 packet.yaw_rate = yaw_rate;
316 packet.type_mask = type_mask;
317 packet.target_system = target_system;
318 packet.target_component = target_component;
319 packet.coordinate_frame = coordinate_frame;
321 _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);
330static 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)
332#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
333 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);
335 _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);
339#if MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN <= MAVLINK_MAX_PAYLOAD_LEN
347static 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)
349#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
350 char *buf = (
char *)msgbuf;
351 _mav_put_uint32_t(buf, 0, time_boot_ms);
352 _mav_put_float(buf, 4, x);
353 _mav_put_float(buf, 8, y);
354 _mav_put_float(buf, 12, z);
355 _mav_put_float(buf, 16, vx);
356 _mav_put_float(buf, 20, vy);
357 _mav_put_float(buf, 24, vz);
358 _mav_put_float(buf, 28, afx);
359 _mav_put_float(buf, 32, afy);
360 _mav_put_float(buf, 36, afz);
361 _mav_put_float(buf, 40, yaw);
362 _mav_put_float(buf, 44, yaw_rate);
363 _mav_put_uint16_t(buf, 48, type_mask);
364 _mav_put_uint8_t(buf, 50, target_system);
365 _mav_put_uint8_t(buf, 51, target_component);
366 _mav_put_uint8_t(buf, 52, coordinate_frame);
368 _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);
370 mavlink_set_position_target_local_ned_t *packet = (mavlink_set_position_target_local_ned_t *)msgbuf;
371 packet->time_boot_ms = time_boot_ms;
382 packet->yaw_rate = yaw_rate;
383 packet->type_mask = type_mask;
384 packet->target_system = target_system;
385 packet->target_component = target_component;
386 packet->coordinate_frame = coordinate_frame;
388 _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);
403static inline uint32_t mavlink_msg_set_position_target_local_ned_get_time_boot_ms(
const mavlink_message_t* msg)
405 return _MAV_RETURN_uint32_t(msg, 0);
413static inline uint8_t mavlink_msg_set_position_target_local_ned_get_target_system(
const mavlink_message_t* msg)
415 return _MAV_RETURN_uint8_t(msg, 50);
423static inline uint8_t mavlink_msg_set_position_target_local_ned_get_target_component(
const mavlink_message_t* msg)
425 return _MAV_RETURN_uint8_t(msg, 51);
433static inline uint8_t mavlink_msg_set_position_target_local_ned_get_coordinate_frame(
const mavlink_message_t* msg)
435 return _MAV_RETURN_uint8_t(msg, 52);
443static inline uint16_t mavlink_msg_set_position_target_local_ned_get_type_mask(
const mavlink_message_t* msg)
445 return _MAV_RETURN_uint16_t(msg, 48);
453static inline float mavlink_msg_set_position_target_local_ned_get_x(
const mavlink_message_t* msg)
455 return _MAV_RETURN_float(msg, 4);
463static inline float mavlink_msg_set_position_target_local_ned_get_y(
const mavlink_message_t* msg)
465 return _MAV_RETURN_float(msg, 8);
473static inline float mavlink_msg_set_position_target_local_ned_get_z(
const mavlink_message_t* msg)
475 return _MAV_RETURN_float(msg, 12);
483static inline float mavlink_msg_set_position_target_local_ned_get_vx(
const mavlink_message_t* msg)
485 return _MAV_RETURN_float(msg, 16);
493static inline float mavlink_msg_set_position_target_local_ned_get_vy(
const mavlink_message_t* msg)
495 return _MAV_RETURN_float(msg, 20);
503static inline float mavlink_msg_set_position_target_local_ned_get_vz(
const mavlink_message_t* msg)
505 return _MAV_RETURN_float(msg, 24);
513static inline float mavlink_msg_set_position_target_local_ned_get_afx(
const mavlink_message_t* msg)
515 return _MAV_RETURN_float(msg, 28);
523static inline float mavlink_msg_set_position_target_local_ned_get_afy(
const mavlink_message_t* msg)
525 return _MAV_RETURN_float(msg, 32);
533static inline float mavlink_msg_set_position_target_local_ned_get_afz(
const mavlink_message_t* msg)
535 return _MAV_RETURN_float(msg, 36);
543static inline float mavlink_msg_set_position_target_local_ned_get_yaw(
const mavlink_message_t* msg)
545 return _MAV_RETURN_float(msg, 40);
553static inline float mavlink_msg_set_position_target_local_ned_get_yaw_rate(
const mavlink_message_t* msg)
555 return _MAV_RETURN_float(msg, 44);
564static 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)
566#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
567 set_position_target_local_ned->time_boot_ms = mavlink_msg_set_position_target_local_ned_get_time_boot_ms(msg);
568 set_position_target_local_ned->x = mavlink_msg_set_position_target_local_ned_get_x(msg);
569 set_position_target_local_ned->y = mavlink_msg_set_position_target_local_ned_get_y(msg);
570 set_position_target_local_ned->z = mavlink_msg_set_position_target_local_ned_get_z(msg);
571 set_position_target_local_ned->vx = mavlink_msg_set_position_target_local_ned_get_vx(msg);
572 set_position_target_local_ned->vy = mavlink_msg_set_position_target_local_ned_get_vy(msg);
573 set_position_target_local_ned->vz = mavlink_msg_set_position_target_local_ned_get_vz(msg);
574 set_position_target_local_ned->afx = mavlink_msg_set_position_target_local_ned_get_afx(msg);
575 set_position_target_local_ned->afy = mavlink_msg_set_position_target_local_ned_get_afy(msg);
576 set_position_target_local_ned->afz = mavlink_msg_set_position_target_local_ned_get_afz(msg);
577 set_position_target_local_ned->yaw = mavlink_msg_set_position_target_local_ned_get_yaw(msg);
578 set_position_target_local_ned->yaw_rate = mavlink_msg_set_position_target_local_ned_get_yaw_rate(msg);
579 set_position_target_local_ned->type_mask = mavlink_msg_set_position_target_local_ned_get_type_mask(msg);
580 set_position_target_local_ned->target_system = mavlink_msg_set_position_target_local_ned_get_target_system(msg);
581 set_position_target_local_ned->target_component = mavlink_msg_set_position_target_local_ned_get_target_component(msg);
582 set_position_target_local_ned->coordinate_frame = mavlink_msg_set_position_target_local_ned_get_coordinate_frame(msg);
584 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;
585 memset(set_position_target_local_ned, 0, MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED_LEN);
586 memcpy(set_position_target_local_ned, _MAV_PAYLOAD(msg), len);