MAV'RIC
mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust.h
1 // MESSAGE SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST PACKING
2 
3 #define MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST 163
4 
6 {
7  int16_t roll[4];
8  int16_t pitch[4];
9  int16_t yaw[4];
10  uint16_t thrust[4];
11  uint8_t group;
12  uint8_t mode;
13  uint8_t led_red[4];
14  uint8_t led_blue[4];
15  uint8_t led_green[4];
17 
18 #define MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN 46
19 #define MAVLINK_MSG_ID_163_LEN 46
20 
21 #define MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_CRC 130
22 #define MAVLINK_MSG_ID_163_CRC 130
23 
24 #define MAVLINK_MSG_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_FIELD_ROLL_LEN 4
25 #define MAVLINK_MSG_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_FIELD_PITCH_LEN 4
26 #define MAVLINK_MSG_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_FIELD_YAW_LEN 4
27 #define MAVLINK_MSG_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_FIELD_THRUST_LEN 4
28 #define MAVLINK_MSG_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_FIELD_LED_RED_LEN 4
29 #define MAVLINK_MSG_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_FIELD_LED_BLUE_LEN 4
30 #define MAVLINK_MSG_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_FIELD_LED_GREEN_LEN 4
31 
32 #define MAVLINK_MESSAGE_INFO_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST { \
33  "SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST", \
34  9, \
35  { { "roll", NULL, MAVLINK_TYPE_INT16_T, 4, 0, offsetof(mavlink_set_quad_swarm_led_roll_pitch_yaw_thrust_t, roll) }, \
36  { "pitch", NULL, MAVLINK_TYPE_INT16_T, 4, 8, offsetof(mavlink_set_quad_swarm_led_roll_pitch_yaw_thrust_t, pitch) }, \
37  { "yaw", NULL, MAVLINK_TYPE_INT16_T, 4, 16, offsetof(mavlink_set_quad_swarm_led_roll_pitch_yaw_thrust_t, yaw) }, \
38  { "thrust", NULL, MAVLINK_TYPE_UINT16_T, 4, 24, offsetof(mavlink_set_quad_swarm_led_roll_pitch_yaw_thrust_t, thrust) }, \
39  { "group", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_set_quad_swarm_led_roll_pitch_yaw_thrust_t, group) }, \
40  { "mode", NULL, MAVLINK_TYPE_UINT8_T, 0, 33, offsetof(mavlink_set_quad_swarm_led_roll_pitch_yaw_thrust_t, mode) }, \
41  { "led_red", NULL, MAVLINK_TYPE_UINT8_T, 4, 34, offsetof(mavlink_set_quad_swarm_led_roll_pitch_yaw_thrust_t, led_red) }, \
42  { "led_blue", NULL, MAVLINK_TYPE_UINT8_T, 4, 38, offsetof(mavlink_set_quad_swarm_led_roll_pitch_yaw_thrust_t, led_blue) }, \
43  { "led_green", NULL, MAVLINK_TYPE_UINT8_T, 4, 42, offsetof(mavlink_set_quad_swarm_led_roll_pitch_yaw_thrust_t, led_green) }, \
44  } \
45 }
46 
47 
65 static inline uint16_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
66  uint8_t group, uint8_t mode, const uint8_t *led_red, const uint8_t *led_blue, const uint8_t *led_green, const int16_t *roll, const int16_t *pitch, const int16_t *yaw, const uint16_t *thrust)
67 {
68 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
69  char buf[MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN];
70  _mav_put_uint8_t(buf, 32, group);
71  _mav_put_uint8_t(buf, 33, mode);
72  _mav_put_int16_t_array(buf, 0, roll, 4);
73  _mav_put_int16_t_array(buf, 8, pitch, 4);
74  _mav_put_int16_t_array(buf, 16, yaw, 4);
75  _mav_put_uint16_t_array(buf, 24, thrust, 4);
76  _mav_put_uint8_t_array(buf, 34, led_red, 4);
77  _mav_put_uint8_t_array(buf, 38, led_blue, 4);
78  _mav_put_uint8_t_array(buf, 42, led_green, 4);
79  memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN);
80 #else
82  packet.group = group;
83  packet.mode = mode;
84  mav_array_memcpy(packet.roll, roll, sizeof(int16_t)*4);
85  mav_array_memcpy(packet.pitch, pitch, sizeof(int16_t)*4);
86  mav_array_memcpy(packet.yaw, yaw, sizeof(int16_t)*4);
87  mav_array_memcpy(packet.thrust, thrust, sizeof(uint16_t)*4);
88  mav_array_memcpy(packet.led_red, led_red, sizeof(uint8_t)*4);
89  mav_array_memcpy(packet.led_blue, led_blue, sizeof(uint8_t)*4);
90  mav_array_memcpy(packet.led_green, led_green, sizeof(uint8_t)*4);
91  memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN);
92 #endif
93 
94  msg->msgid = MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST;
95 #if MAVLINK_CRC_EXTRA
96  return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_CRC);
97 #else
98  return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN);
99 #endif
100 }
101 
119 static inline uint16_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
120  mavlink_message_t* msg,
121  uint8_t group,uint8_t mode,const uint8_t *led_red,const uint8_t *led_blue,const uint8_t *led_green,const int16_t *roll,const int16_t *pitch,const int16_t *yaw,const uint16_t *thrust)
122 {
123 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
124  char buf[MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN];
125  _mav_put_uint8_t(buf, 32, group);
126  _mav_put_uint8_t(buf, 33, mode);
127  _mav_put_int16_t_array(buf, 0, roll, 4);
128  _mav_put_int16_t_array(buf, 8, pitch, 4);
129  _mav_put_int16_t_array(buf, 16, yaw, 4);
130  _mav_put_uint16_t_array(buf, 24, thrust, 4);
131  _mav_put_uint8_t_array(buf, 34, led_red, 4);
132  _mav_put_uint8_t_array(buf, 38, led_blue, 4);
133  _mav_put_uint8_t_array(buf, 42, led_green, 4);
134  memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN);
135 #else
137  packet.group = group;
138  packet.mode = mode;
139  mav_array_memcpy(packet.roll, roll, sizeof(int16_t)*4);
140  mav_array_memcpy(packet.pitch, pitch, sizeof(int16_t)*4);
141  mav_array_memcpy(packet.yaw, yaw, sizeof(int16_t)*4);
142  mav_array_memcpy(packet.thrust, thrust, sizeof(uint16_t)*4);
143  mav_array_memcpy(packet.led_red, led_red, sizeof(uint8_t)*4);
144  mav_array_memcpy(packet.led_blue, led_blue, sizeof(uint8_t)*4);
145  mav_array_memcpy(packet.led_green, led_green, sizeof(uint8_t)*4);
146  memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN);
147 #endif
148 
149  msg->msgid = MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST;
150 #if MAVLINK_CRC_EXTRA
151  return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_CRC);
152 #else
153  return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN);
154 #endif
155 }
156 
165 static inline uint16_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_set_quad_swarm_led_roll_pitch_yaw_thrust_t* set_quad_swarm_led_roll_pitch_yaw_thrust)
166 {
167  return mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_pack(system_id, component_id, msg, set_quad_swarm_led_roll_pitch_yaw_thrust->group, set_quad_swarm_led_roll_pitch_yaw_thrust->mode, set_quad_swarm_led_roll_pitch_yaw_thrust->led_red, set_quad_swarm_led_roll_pitch_yaw_thrust->led_blue, set_quad_swarm_led_roll_pitch_yaw_thrust->led_green, set_quad_swarm_led_roll_pitch_yaw_thrust->roll, set_quad_swarm_led_roll_pitch_yaw_thrust->pitch, set_quad_swarm_led_roll_pitch_yaw_thrust->yaw, set_quad_swarm_led_roll_pitch_yaw_thrust->thrust);
168 }
169 
179 static inline uint16_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_set_quad_swarm_led_roll_pitch_yaw_thrust_t* set_quad_swarm_led_roll_pitch_yaw_thrust)
180 {
181  return mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_pack_chan(system_id, component_id, chan, msg, set_quad_swarm_led_roll_pitch_yaw_thrust->group, set_quad_swarm_led_roll_pitch_yaw_thrust->mode, set_quad_swarm_led_roll_pitch_yaw_thrust->led_red, set_quad_swarm_led_roll_pitch_yaw_thrust->led_blue, set_quad_swarm_led_roll_pitch_yaw_thrust->led_green, set_quad_swarm_led_roll_pitch_yaw_thrust->roll, set_quad_swarm_led_roll_pitch_yaw_thrust->pitch, set_quad_swarm_led_roll_pitch_yaw_thrust->yaw, set_quad_swarm_led_roll_pitch_yaw_thrust->thrust);
182 }
183 
198 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
199 
200 static inline void mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_send(mavlink_channel_t chan, uint8_t group, uint8_t mode, const uint8_t *led_red, const uint8_t *led_blue, const uint8_t *led_green, const int16_t *roll, const int16_t *pitch, const int16_t *yaw, const uint16_t *thrust)
201 {
202 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
203  char buf[MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN];
204  _mav_put_uint8_t(buf, 32, group);
205  _mav_put_uint8_t(buf, 33, mode);
206  _mav_put_int16_t_array(buf, 0, roll, 4);
207  _mav_put_int16_t_array(buf, 8, pitch, 4);
208  _mav_put_int16_t_array(buf, 16, yaw, 4);
209  _mav_put_uint16_t_array(buf, 24, thrust, 4);
210  _mav_put_uint8_t_array(buf, 34, led_red, 4);
211  _mav_put_uint8_t_array(buf, 38, led_blue, 4);
212  _mav_put_uint8_t_array(buf, 42, led_green, 4);
213 #if MAVLINK_CRC_EXTRA
214  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST, buf, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_CRC);
215 #else
216  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST, buf, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN);
217 #endif
218 #else
220  packet.group = group;
221  packet.mode = mode;
222  mav_array_memcpy(packet.roll, roll, sizeof(int16_t)*4);
223  mav_array_memcpy(packet.pitch, pitch, sizeof(int16_t)*4);
224  mav_array_memcpy(packet.yaw, yaw, sizeof(int16_t)*4);
225  mav_array_memcpy(packet.thrust, thrust, sizeof(uint16_t)*4);
226  mav_array_memcpy(packet.led_red, led_red, sizeof(uint8_t)*4);
227  mav_array_memcpy(packet.led_blue, led_blue, sizeof(uint8_t)*4);
228  mav_array_memcpy(packet.led_green, led_green, sizeof(uint8_t)*4);
229 #if MAVLINK_CRC_EXTRA
230  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST, (const char *)&packet, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_CRC);
231 #else
232  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST, (const char *)&packet, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN);
233 #endif
234 #endif
235 }
236 
237 #if MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN <= MAVLINK_MAX_PAYLOAD_LEN
238 /*
239  This varient of _send() can be used to save stack space by re-using
240  memory from the receive buffer. The caller provides a
241  mavlink_message_t which is the size of a full mavlink message. This
242  is usually the receive buffer for the channel, and allows a reply to an
243  incoming message with minimum stack space usage.
244  */
245 static inline void mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t group, uint8_t mode, const uint8_t *led_red, const uint8_t *led_blue, const uint8_t *led_green, const int16_t *roll, const int16_t *pitch, const int16_t *yaw, const uint16_t *thrust)
246 {
247 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
248  char *buf = (char *)msgbuf;
249  _mav_put_uint8_t(buf, 32, group);
250  _mav_put_uint8_t(buf, 33, mode);
251  _mav_put_int16_t_array(buf, 0, roll, 4);
252  _mav_put_int16_t_array(buf, 8, pitch, 4);
253  _mav_put_int16_t_array(buf, 16, yaw, 4);
254  _mav_put_uint16_t_array(buf, 24, thrust, 4);
255  _mav_put_uint8_t_array(buf, 34, led_red, 4);
256  _mav_put_uint8_t_array(buf, 38, led_blue, 4);
257  _mav_put_uint8_t_array(buf, 42, led_green, 4);
258 #if MAVLINK_CRC_EXTRA
259  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST, buf, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_CRC);
260 #else
261  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST, buf, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN);
262 #endif
263 #else
265  packet->group = group;
266  packet->mode = mode;
267  mav_array_memcpy(packet->roll, roll, sizeof(int16_t)*4);
268  mav_array_memcpy(packet->pitch, pitch, sizeof(int16_t)*4);
269  mav_array_memcpy(packet->yaw, yaw, sizeof(int16_t)*4);
270  mav_array_memcpy(packet->thrust, thrust, sizeof(uint16_t)*4);
271  mav_array_memcpy(packet->led_red, led_red, sizeof(uint8_t)*4);
272  mav_array_memcpy(packet->led_blue, led_blue, sizeof(uint8_t)*4);
273  mav_array_memcpy(packet->led_green, led_green, sizeof(uint8_t)*4);
274 #if MAVLINK_CRC_EXTRA
275  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST, (const char *)packet, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_CRC);
276 #else
277  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST, (const char *)packet, MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN);
278 #endif
279 #endif
280 }
281 #endif
282 
283 #endif
284 
285 // MESSAGE SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST UNPACKING
286 
287 
293 static inline uint8_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_group(const mavlink_message_t* msg)
294 {
295  return _MAV_RETURN_uint8_t(msg, 32);
296 }
297 
303 static inline uint8_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_mode(const mavlink_message_t* msg)
304 {
305  return _MAV_RETURN_uint8_t(msg, 33);
306 }
307 
313 static inline uint16_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_led_red(const mavlink_message_t* msg, uint8_t *led_red)
314 {
315  return _MAV_RETURN_uint8_t_array(msg, led_red, 4, 34);
316 }
317 
323 static inline uint16_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_led_blue(const mavlink_message_t* msg, uint8_t *led_blue)
324 {
325  return _MAV_RETURN_uint8_t_array(msg, led_blue, 4, 38);
326 }
327 
333 static inline uint16_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_led_green(const mavlink_message_t* msg, uint8_t *led_green)
334 {
335  return _MAV_RETURN_uint8_t_array(msg, led_green, 4, 42);
336 }
337 
343 static inline uint16_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_roll(const mavlink_message_t* msg, int16_t *roll)
344 {
345  return _MAV_RETURN_int16_t_array(msg, roll, 4, 0);
346 }
347 
353 static inline uint16_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_pitch(const mavlink_message_t* msg, int16_t *pitch)
354 {
355  return _MAV_RETURN_int16_t_array(msg, pitch, 4, 8);
356 }
357 
363 static inline uint16_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_yaw(const mavlink_message_t* msg, int16_t *yaw)
364 {
365  return _MAV_RETURN_int16_t_array(msg, yaw, 4, 16);
366 }
367 
373 static inline uint16_t mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_thrust(const mavlink_message_t* msg, uint16_t *thrust)
374 {
375  return _MAV_RETURN_uint16_t_array(msg, thrust, 4, 24);
376 }
377 
384 static inline void mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_decode(const mavlink_message_t* msg, mavlink_set_quad_swarm_led_roll_pitch_yaw_thrust_t* set_quad_swarm_led_roll_pitch_yaw_thrust)
385 {
386 #if MAVLINK_NEED_BYTE_SWAP
387  mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_roll(msg, set_quad_swarm_led_roll_pitch_yaw_thrust->roll);
388  mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_pitch(msg, set_quad_swarm_led_roll_pitch_yaw_thrust->pitch);
389  mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_yaw(msg, set_quad_swarm_led_roll_pitch_yaw_thrust->yaw);
390  mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_thrust(msg, set_quad_swarm_led_roll_pitch_yaw_thrust->thrust);
391  set_quad_swarm_led_roll_pitch_yaw_thrust->group = mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_group(msg);
392  set_quad_swarm_led_roll_pitch_yaw_thrust->mode = mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_mode(msg);
393  mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_led_red(msg, set_quad_swarm_led_roll_pitch_yaw_thrust->led_red);
394  mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_led_blue(msg, set_quad_swarm_led_roll_pitch_yaw_thrust->led_blue);
395  mavlink_msg_set_quad_swarm_led_roll_pitch_yaw_thrust_get_led_green(msg, set_quad_swarm_led_roll_pitch_yaw_thrust->led_green);
396 #else
397  memcpy(set_quad_swarm_led_roll_pitch_yaw_thrust, _MAV_PAYLOAD(msg), MAVLINK_MSG_ID_SET_QUAD_SWARM_LED_ROLL_PITCH_YAW_THRUST_LEN);
398 #endif
399 }