4#define MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS 332
22} mavlink_trajectory_representation_waypoints_t;
24#define MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN 239
25#define MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_MIN_LEN 239
26#define MAVLINK_MSG_ID_332_LEN 239
27#define MAVLINK_MSG_ID_332_MIN_LEN 239
29#define MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_CRC 236
30#define MAVLINK_MSG_ID_332_CRC 236
32#define MAVLINK_MSG_TRAJECTORY_REPRESENTATION_WAYPOINTS_FIELD_POS_X_LEN 5
33#define MAVLINK_MSG_TRAJECTORY_REPRESENTATION_WAYPOINTS_FIELD_POS_Y_LEN 5
34#define MAVLINK_MSG_TRAJECTORY_REPRESENTATION_WAYPOINTS_FIELD_POS_Z_LEN 5
35#define MAVLINK_MSG_TRAJECTORY_REPRESENTATION_WAYPOINTS_FIELD_VEL_X_LEN 5
36#define MAVLINK_MSG_TRAJECTORY_REPRESENTATION_WAYPOINTS_FIELD_VEL_Y_LEN 5
37#define MAVLINK_MSG_TRAJECTORY_REPRESENTATION_WAYPOINTS_FIELD_VEL_Z_LEN 5
38#define MAVLINK_MSG_TRAJECTORY_REPRESENTATION_WAYPOINTS_FIELD_ACC_X_LEN 5
39#define MAVLINK_MSG_TRAJECTORY_REPRESENTATION_WAYPOINTS_FIELD_ACC_Y_LEN 5
40#define MAVLINK_MSG_TRAJECTORY_REPRESENTATION_WAYPOINTS_FIELD_ACC_Z_LEN 5
41#define MAVLINK_MSG_TRAJECTORY_REPRESENTATION_WAYPOINTS_FIELD_POS_YAW_LEN 5
42#define MAVLINK_MSG_TRAJECTORY_REPRESENTATION_WAYPOINTS_FIELD_VEL_YAW_LEN 5
43#define MAVLINK_MSG_TRAJECTORY_REPRESENTATION_WAYPOINTS_FIELD_COMMAND_LEN 5
45#if MAVLINK_COMMAND_24BIT
46#define MAVLINK_MESSAGE_INFO_TRAJECTORY_REPRESENTATION_WAYPOINTS {
48 "TRAJECTORY_REPRESENTATION_WAYPOINTS",
50 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_trajectory_representation_waypoints_t, time_usec) },
51 { "valid_points", NULL, MAVLINK_TYPE_UINT8_T, 0
, 238
, offsetof(mavlink_trajectory_representation_waypoints_t, valid_points) },
52 { "pos_x", NULL, MAVLINK_TYPE_FLOAT, 5
, 8
, offsetof(mavlink_trajectory_representation_waypoints_t, pos_x) },
53 { "pos_y", NULL, MAVLINK_TYPE_FLOAT, 5
, 28
, offsetof(mavlink_trajectory_representation_waypoints_t, pos_y) },
54 { "pos_z", NULL, MAVLINK_TYPE_FLOAT, 5
, 48
, offsetof(mavlink_trajectory_representation_waypoints_t, pos_z) },
55 { "vel_x", NULL, MAVLINK_TYPE_FLOAT, 5
, 68
, offsetof(mavlink_trajectory_representation_waypoints_t, vel_x) },
56 { "vel_y", NULL, MAVLINK_TYPE_FLOAT, 5
, 88
, offsetof(mavlink_trajectory_representation_waypoints_t, vel_y) },
57 { "vel_z", NULL, MAVLINK_TYPE_FLOAT, 5
, 108
, offsetof(mavlink_trajectory_representation_waypoints_t, vel_z) },
58 { "acc_x", NULL, MAVLINK_TYPE_FLOAT, 5
, 128
, offsetof(mavlink_trajectory_representation_waypoints_t, acc_x) },
59 { "acc_y", NULL, MAVLINK_TYPE_FLOAT, 5
, 148
, offsetof(mavlink_trajectory_representation_waypoints_t, acc_y) },
60 { "acc_z", NULL, MAVLINK_TYPE_FLOAT, 5
, 168
, offsetof(mavlink_trajectory_representation_waypoints_t, acc_z) },
61 { "pos_yaw", NULL, MAVLINK_TYPE_FLOAT, 5
, 188
, offsetof(mavlink_trajectory_representation_waypoints_t, pos_yaw) },
62 { "vel_yaw", NULL, MAVLINK_TYPE_FLOAT, 5
, 208
, offsetof(mavlink_trajectory_representation_waypoints_t, vel_yaw) },
63 { "command", NULL, MAVLINK_TYPE_UINT16_T, 5
, 228
, offsetof(mavlink_trajectory_representation_waypoints_t, command) },
65}
67#define MAVLINK_MESSAGE_INFO_TRAJECTORY_REPRESENTATION_WAYPOINTS {
68 "TRAJECTORY_REPRESENTATION_WAYPOINTS",
70 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_trajectory_representation_waypoints_t, time_usec) },
71 { "valid_points", NULL, MAVLINK_TYPE_UINT8_T, 0
, 238
, offsetof(mavlink_trajectory_representation_waypoints_t, valid_points) },
72 { "pos_x", NULL, MAVLINK_TYPE_FLOAT, 5
, 8
, offsetof(mavlink_trajectory_representation_waypoints_t, pos_x) },
73 { "pos_y", NULL, MAVLINK_TYPE_FLOAT, 5
, 28
, offsetof(mavlink_trajectory_representation_waypoints_t, pos_y) },
74 { "pos_z", NULL, MAVLINK_TYPE_FLOAT, 5
, 48
, offsetof(mavlink_trajectory_representation_waypoints_t, pos_z) },
75 { "vel_x", NULL, MAVLINK_TYPE_FLOAT, 5
, 68
, offsetof(mavlink_trajectory_representation_waypoints_t, vel_x) },
76 { "vel_y", NULL, MAVLINK_TYPE_FLOAT, 5
, 88
, offsetof(mavlink_trajectory_representation_waypoints_t, vel_y) },
77 { "vel_z", NULL, MAVLINK_TYPE_FLOAT, 5
, 108
, offsetof(mavlink_trajectory_representation_waypoints_t, vel_z) },
78 { "acc_x", NULL, MAVLINK_TYPE_FLOAT, 5
, 128
, offsetof(mavlink_trajectory_representation_waypoints_t, acc_x) },
79 { "acc_y", NULL, MAVLINK_TYPE_FLOAT, 5
, 148
, offsetof(mavlink_trajectory_representation_waypoints_t, acc_y) },
80 { "acc_z", NULL, MAVLINK_TYPE_FLOAT, 5
, 168
, offsetof(mavlink_trajectory_representation_waypoints_t, acc_z) },
81 { "pos_yaw", NULL, MAVLINK_TYPE_FLOAT, 5
, 188
, offsetof(mavlink_trajectory_representation_waypoints_t, pos_yaw) },
82 { "vel_yaw", NULL, MAVLINK_TYPE_FLOAT, 5
, 208
, offsetof(mavlink_trajectory_representation_waypoints_t, vel_yaw) },
83 { "command", NULL, MAVLINK_TYPE_UINT16_T, 5
, 228
, offsetof(mavlink_trajectory_representation_waypoints_t, command) },
85}
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110static inline uint16_t mavlink_msg_trajectory_representation_waypoints_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
111 uint64_t time_usec, uint8_t valid_points,
const float *pos_x,
const float *pos_y,
const float *pos_z,
const float *vel_x,
const float *vel_y,
const float *vel_z,
const float *acc_x,
const float *acc_y,
const float *acc_z,
const float *pos_yaw,
const float *vel_yaw,
const uint16_t *command)
113#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
115 _mav_put_uint64_t(buf, 0, time_usec);
116 _mav_put_uint8_t(buf, 238, valid_points);
117 _mav_put_float_array(buf, 8, pos_x, 5);
118 _mav_put_float_array(buf, 28, pos_y, 5);
119 _mav_put_float_array(buf, 48, pos_z, 5);
120 _mav_put_float_array(buf, 68, vel_x, 5);
121 _mav_put_float_array(buf, 88, vel_y, 5);
122 _mav_put_float_array(buf, 108, vel_z, 5);
123 _mav_put_float_array(buf, 128, acc_x, 5);
124 _mav_put_float_array(buf, 148, acc_y, 5);
125 _mav_put_float_array(buf, 168, acc_z, 5);
126 _mav_put_float_array(buf, 188, pos_yaw, 5);
127 _mav_put_float_array(buf, 208, vel_yaw, 5);
128 _mav_put_uint16_t_array(buf, 228, command, 5);
131 mavlink_trajectory_representation_waypoints_t packet;
132 packet.time_usec = time_usec;
133 packet.valid_points = valid_points;
134 mav_array_memcpy(packet.pos_x, pos_x,
sizeof(
float)*5);
135 mav_array_memcpy(packet.pos_y, pos_y,
sizeof(
float)*5);
136 mav_array_memcpy(packet.pos_z, pos_z,
sizeof(
float)*5);
137 mav_array_memcpy(packet.vel_x, vel_x,
sizeof(
float)*5);
138 mav_array_memcpy(packet.vel_y, vel_y,
sizeof(
float)*5);
139 mav_array_memcpy(packet.vel_z, vel_z,
sizeof(
float)*5);
140 mav_array_memcpy(packet.acc_x, acc_x,
sizeof(
float)*5);
141 mav_array_memcpy(packet.acc_y, acc_y,
sizeof(
float)*5);
142 mav_array_memcpy(packet.acc_z, acc_z,
sizeof(
float)*5);
143 mav_array_memcpy(packet.pos_yaw, pos_yaw,
sizeof(
float)*5);
144 mav_array_memcpy(packet.vel_yaw, vel_yaw,
sizeof(
float)*5);
145 mav_array_memcpy(packet.command, command,
sizeof(uint16_t)*5);
146 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN);
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176static inline uint16_t mavlink_msg_trajectory_representation_waypoints_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
177 uint64_t time_usec, uint8_t valid_points,
const float *pos_x,
const float *pos_y,
const float *pos_z,
const float *vel_x,
const float *vel_y,
const float *vel_z,
const float *acc_x,
const float *acc_y,
const float *acc_z,
const float *pos_yaw,
const float *vel_yaw,
const uint16_t *command)
179#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
181 _mav_put_uint64_t(buf, 0, time_usec);
182 _mav_put_uint8_t(buf, 238, valid_points);
183 _mav_put_float_array(buf, 8, pos_x, 5);
184 _mav_put_float_array(buf, 28, pos_y, 5);
185 _mav_put_float_array(buf, 48, pos_z, 5);
186 _mav_put_float_array(buf, 68, vel_x, 5);
187 _mav_put_float_array(buf, 88, vel_y, 5);
188 _mav_put_float_array(buf, 108, vel_z, 5);
189 _mav_put_float_array(buf, 128, acc_x, 5);
190 _mav_put_float_array(buf, 148, acc_y, 5);
191 _mav_put_float_array(buf, 168, acc_z, 5);
192 _mav_put_float_array(buf, 188, pos_yaw, 5);
193 _mav_put_float_array(buf, 208, vel_yaw, 5);
194 _mav_put_uint16_t_array(buf, 228, command, 5);
197 mavlink_trajectory_representation_waypoints_t packet;
198 packet.time_usec = time_usec;
199 packet.valid_points = valid_points;
200 mav_array_memcpy(packet.pos_x, pos_x,
sizeof(
float)*5);
201 mav_array_memcpy(packet.pos_y, pos_y,
sizeof(
float)*5);
202 mav_array_memcpy(packet.pos_z, pos_z,
sizeof(
float)*5);
203 mav_array_memcpy(packet.vel_x, vel_x,
sizeof(
float)*5);
204 mav_array_memcpy(packet.vel_y, vel_y,
sizeof(
float)*5);
205 mav_array_memcpy(packet.vel_z, vel_z,
sizeof(
float)*5);
206 mav_array_memcpy(packet.acc_x, acc_x,
sizeof(
float)*5);
207 mav_array_memcpy(packet.acc_y, acc_y,
sizeof(
float)*5);
208 mav_array_memcpy(packet.acc_z, acc_z,
sizeof(
float)*5);
209 mav_array_memcpy(packet.pos_yaw, pos_yaw,
sizeof(
float)*5);
210 mav_array_memcpy(packet.vel_yaw, vel_yaw,
sizeof(
float)*5);
211 mav_array_memcpy(packet.command, command,
sizeof(uint16_t)*5);
212 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN);
217 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_MIN_LEN, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_CRC);
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245static inline uint16_t mavlink_msg_trajectory_representation_waypoints_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
246 mavlink_message_t* msg,
247 uint64_t time_usec,uint8_t valid_points,
const float *pos_x,
const float *pos_y,
const float *pos_z,
const float *vel_x,
const float *vel_y,
const float *vel_z,
const float *acc_x,
const float *acc_y,
const float *acc_z,
const float *pos_yaw,
const float *vel_yaw,
const uint16_t *command)
249#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
251 _mav_put_uint64_t(buf, 0, time_usec);
252 _mav_put_uint8_t(buf, 238, valid_points);
253 _mav_put_float_array(buf, 8, pos_x, 5);
254 _mav_put_float_array(buf, 28, pos_y, 5);
255 _mav_put_float_array(buf, 48, pos_z, 5);
256 _mav_put_float_array(buf, 68, vel_x, 5);
257 _mav_put_float_array(buf, 88, vel_y, 5);
258 _mav_put_float_array(buf, 108, vel_z, 5);
259 _mav_put_float_array(buf, 128, acc_x, 5);
260 _mav_put_float_array(buf, 148, acc_y, 5);
261 _mav_put_float_array(buf, 168, acc_z, 5);
262 _mav_put_float_array(buf, 188, pos_yaw, 5);
263 _mav_put_float_array(buf, 208, vel_yaw, 5);
264 _mav_put_uint16_t_array(buf, 228, command, 5);
267 mavlink_trajectory_representation_waypoints_t packet;
268 packet.time_usec = time_usec;
269 packet.valid_points = valid_points;
270 mav_array_memcpy(packet.pos_x, pos_x,
sizeof(
float)*5);
271 mav_array_memcpy(packet.pos_y, pos_y,
sizeof(
float)*5);
272 mav_array_memcpy(packet.pos_z, pos_z,
sizeof(
float)*5);
273 mav_array_memcpy(packet.vel_x, vel_x,
sizeof(
float)*5);
274 mav_array_memcpy(packet.vel_y, vel_y,
sizeof(
float)*5);
275 mav_array_memcpy(packet.vel_z, vel_z,
sizeof(
float)*5);
276 mav_array_memcpy(packet.acc_x, acc_x,
sizeof(
float)*5);
277 mav_array_memcpy(packet.acc_y, acc_y,
sizeof(
float)*5);
278 mav_array_memcpy(packet.acc_z, acc_z,
sizeof(
float)*5);
279 mav_array_memcpy(packet.pos_yaw, pos_yaw,
sizeof(
float)*5);
280 mav_array_memcpy(packet.vel_yaw, vel_yaw,
sizeof(
float)*5);
281 mav_array_memcpy(packet.command, command,
sizeof(uint16_t)*5);
282 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN);
290
291
292
293
294
295
296
297static inline uint16_t mavlink_msg_trajectory_representation_waypoints_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_trajectory_representation_waypoints_t* trajectory_representation_waypoints)
299 return mavlink_msg_trajectory_representation_waypoints_pack(system_id, component_id, msg, trajectory_representation_waypoints->time_usec, trajectory_representation_waypoints->valid_points, trajectory_representation_waypoints->pos_x, trajectory_representation_waypoints->pos_y, trajectory_representation_waypoints->pos_z, trajectory_representation_waypoints->vel_x, trajectory_representation_waypoints->vel_y, trajectory_representation_waypoints->vel_z, trajectory_representation_waypoints->acc_x, trajectory_representation_waypoints->acc_y, trajectory_representation_waypoints->acc_z, trajectory_representation_waypoints->pos_yaw, trajectory_representation_waypoints->vel_yaw, trajectory_representation_waypoints->command);
303
304
305
306
307
308
309
310
311static inline uint16_t mavlink_msg_trajectory_representation_waypoints_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_trajectory_representation_waypoints_t* trajectory_representation_waypoints)
313 return mavlink_msg_trajectory_representation_waypoints_pack_chan(system_id, component_id, chan, msg, trajectory_representation_waypoints->time_usec, trajectory_representation_waypoints->valid_points, trajectory_representation_waypoints->pos_x, trajectory_representation_waypoints->pos_y, trajectory_representation_waypoints->pos_z, trajectory_representation_waypoints->vel_x, trajectory_representation_waypoints->vel_y, trajectory_representation_waypoints->vel_z, trajectory_representation_waypoints->acc_x, trajectory_representation_waypoints->acc_y, trajectory_representation_waypoints->acc_z, trajectory_representation_waypoints->pos_yaw, trajectory_representation_waypoints->vel_yaw, trajectory_representation_waypoints->command);
317
318
319
320
321
322
323
324
325static inline uint16_t mavlink_msg_trajectory_representation_waypoints_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_trajectory_representation_waypoints_t* trajectory_representation_waypoints)
327 return mavlink_msg_trajectory_representation_waypoints_pack_status(system_id, component_id, _status, msg, trajectory_representation_waypoints->time_usec, trajectory_representation_waypoints->valid_points, trajectory_representation_waypoints->pos_x, trajectory_representation_waypoints->pos_y, trajectory_representation_waypoints->pos_z, trajectory_representation_waypoints->vel_x, trajectory_representation_waypoints->vel_y, trajectory_representation_waypoints->vel_z, trajectory_representation_waypoints->acc_x, trajectory_representation_waypoints->acc_y, trajectory_representation_waypoints->acc_z, trajectory_representation_waypoints->pos_yaw, trajectory_representation_waypoints->vel_yaw, trajectory_representation_waypoints->command);
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
351static inline void mavlink_msg_trajectory_representation_waypoints_send(mavlink_channel_t chan, uint64_t time_usec, uint8_t valid_points,
const float *pos_x,
const float *pos_y,
const float *pos_z,
const float *vel_x,
const float *vel_y,
const float *vel_z,
const float *acc_x,
const float *acc_y,
const float *acc_z,
const float *pos_yaw,
const float *vel_yaw,
const uint16_t *command)
353#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
354 char buf[MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN];
355 _mav_put_uint64_t(buf, 0, time_usec);
356 _mav_put_uint8_t(buf, 238, valid_points);
357 _mav_put_float_array(buf, 8, pos_x, 5);
358 _mav_put_float_array(buf, 28, pos_y, 5);
359 _mav_put_float_array(buf, 48, pos_z, 5);
360 _mav_put_float_array(buf, 68, vel_x, 5);
361 _mav_put_float_array(buf, 88, vel_y, 5);
362 _mav_put_float_array(buf, 108, vel_z, 5);
363 _mav_put_float_array(buf, 128, acc_x, 5);
364 _mav_put_float_array(buf, 148, acc_y, 5);
365 _mav_put_float_array(buf, 168, acc_z, 5);
366 _mav_put_float_array(buf, 188, pos_yaw, 5);
367 _mav_put_float_array(buf, 208, vel_yaw, 5);
368 _mav_put_uint16_t_array(buf, 228, command, 5);
369 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS, buf, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_MIN_LEN, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_CRC);
371 mavlink_trajectory_representation_waypoints_t packet;
372 packet.time_usec = time_usec;
373 packet.valid_points = valid_points;
374 mav_array_memcpy(packet.pos_x, pos_x,
sizeof(
float)*5);
375 mav_array_memcpy(packet.pos_y, pos_y,
sizeof(
float)*5);
376 mav_array_memcpy(packet.pos_z, pos_z,
sizeof(
float)*5);
377 mav_array_memcpy(packet.vel_x, vel_x,
sizeof(
float)*5);
378 mav_array_memcpy(packet.vel_y, vel_y,
sizeof(
float)*5);
379 mav_array_memcpy(packet.vel_z, vel_z,
sizeof(
float)*5);
380 mav_array_memcpy(packet.acc_x, acc_x,
sizeof(
float)*5);
381 mav_array_memcpy(packet.acc_y, acc_y,
sizeof(
float)*5);
382 mav_array_memcpy(packet.acc_z, acc_z,
sizeof(
float)*5);
383 mav_array_memcpy(packet.pos_yaw, pos_yaw,
sizeof(
float)*5);
384 mav_array_memcpy(packet.vel_yaw, vel_yaw,
sizeof(
float)*5);
385 mav_array_memcpy(packet.command, command,
sizeof(uint16_t)*5);
386 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS, (
const char *)&packet, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_MIN_LEN, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_CRC);
391
392
393
394
395static inline void mavlink_msg_trajectory_representation_waypoints_send_struct(mavlink_channel_t chan,
const mavlink_trajectory_representation_waypoints_t* trajectory_representation_waypoints)
397#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
398 mavlink_msg_trajectory_representation_waypoints_send(chan, trajectory_representation_waypoints->time_usec, trajectory_representation_waypoints->valid_points, trajectory_representation_waypoints->pos_x, trajectory_representation_waypoints->pos_y, trajectory_representation_waypoints->pos_z, trajectory_representation_waypoints->vel_x, trajectory_representation_waypoints->vel_y, trajectory_representation_waypoints->vel_z, trajectory_representation_waypoints->acc_x, trajectory_representation_waypoints->acc_y, trajectory_representation_waypoints->acc_z, trajectory_representation_waypoints->pos_yaw, trajectory_representation_waypoints->vel_yaw, trajectory_representation_waypoints->command);
400 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS, (
const char *)trajectory_representation_waypoints, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_MIN_LEN, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_CRC);
404#if MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
406
407
408
409
410
411
412static inline void mavlink_msg_trajectory_representation_waypoints_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t time_usec, uint8_t valid_points,
const float *pos_x,
const float *pos_y,
const float *pos_z,
const float *vel_x,
const float *vel_y,
const float *vel_z,
const float *acc_x,
const float *acc_y,
const float *acc_z,
const float *pos_yaw,
const float *vel_yaw,
const uint16_t *command)
414#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
415 char *buf = (
char *)msgbuf;
416 _mav_put_uint64_t(buf, 0, time_usec);
417 _mav_put_uint8_t(buf, 238, valid_points);
418 _mav_put_float_array(buf, 8, pos_x, 5);
419 _mav_put_float_array(buf, 28, pos_y, 5);
420 _mav_put_float_array(buf, 48, pos_z, 5);
421 _mav_put_float_array(buf, 68, vel_x, 5);
422 _mav_put_float_array(buf, 88, vel_y, 5);
423 _mav_put_float_array(buf, 108, vel_z, 5);
424 _mav_put_float_array(buf, 128, acc_x, 5);
425 _mav_put_float_array(buf, 148, acc_y, 5);
426 _mav_put_float_array(buf, 168, acc_z, 5);
427 _mav_put_float_array(buf, 188, pos_yaw, 5);
428 _mav_put_float_array(buf, 208, vel_yaw, 5);
429 _mav_put_uint16_t_array(buf, 228, command, 5);
430 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS, buf, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_MIN_LEN, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_CRC);
432 mavlink_trajectory_representation_waypoints_t *packet = (mavlink_trajectory_representation_waypoints_t *)msgbuf;
433 packet->time_usec = time_usec;
434 packet->valid_points = valid_points;
435 mav_array_memcpy(packet->pos_x, pos_x,
sizeof(
float)*5);
436 mav_array_memcpy(packet->pos_y, pos_y,
sizeof(
float)*5);
437 mav_array_memcpy(packet->pos_z, pos_z,
sizeof(
float)*5);
438 mav_array_memcpy(packet->vel_x, vel_x,
sizeof(
float)*5);
439 mav_array_memcpy(packet->vel_y, vel_y,
sizeof(
float)*5);
440 mav_array_memcpy(packet->vel_z, vel_z,
sizeof(
float)*5);
441 mav_array_memcpy(packet->acc_x, acc_x,
sizeof(
float)*5);
442 mav_array_memcpy(packet->acc_y, acc_y,
sizeof(
float)*5);
443 mav_array_memcpy(packet->acc_z, acc_z,
sizeof(
float)*5);
444 mav_array_memcpy(packet->pos_yaw, pos_yaw,
sizeof(
float)*5);
445 mav_array_memcpy(packet->vel_yaw, vel_yaw,
sizeof(
float)*5);
446 mav_array_memcpy(packet->command, command,
sizeof(uint16_t)*5);
447 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS, (
const char *)packet, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_MIN_LEN, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_CRC);
458
459
460
461
462static inline uint64_t mavlink_msg_trajectory_representation_waypoints_get_time_usec(
const mavlink_message_t* msg)
464 return _MAV_RETURN_uint64_t(msg, 0);
468
469
470
471
472static inline uint8_t mavlink_msg_trajectory_representation_waypoints_get_valid_points(
const mavlink_message_t* msg)
474 return _MAV_RETURN_uint8_t(msg, 238);
478
479
480
481
482static inline uint16_t mavlink_msg_trajectory_representation_waypoints_get_pos_x(
const mavlink_message_t* msg,
float *pos_x)
484 return _MAV_RETURN_float_array(msg, pos_x, 5, 8);
488
489
490
491
492static inline uint16_t mavlink_msg_trajectory_representation_waypoints_get_pos_y(
const mavlink_message_t* msg,
float *pos_y)
494 return _MAV_RETURN_float_array(msg, pos_y, 5, 28);
498
499
500
501
502static inline uint16_t mavlink_msg_trajectory_representation_waypoints_get_pos_z(
const mavlink_message_t* msg,
float *pos_z)
504 return _MAV_RETURN_float_array(msg, pos_z, 5, 48);
508
509
510
511
512static inline uint16_t mavlink_msg_trajectory_representation_waypoints_get_vel_x(
const mavlink_message_t* msg,
float *vel_x)
514 return _MAV_RETURN_float_array(msg, vel_x, 5, 68);
518
519
520
521
522static inline uint16_t mavlink_msg_trajectory_representation_waypoints_get_vel_y(
const mavlink_message_t* msg,
float *vel_y)
524 return _MAV_RETURN_float_array(msg, vel_y, 5, 88);
528
529
530
531
532static inline uint16_t mavlink_msg_trajectory_representation_waypoints_get_vel_z(
const mavlink_message_t* msg,
float *vel_z)
534 return _MAV_RETURN_float_array(msg, vel_z, 5, 108);
538
539
540
541
542static inline uint16_t mavlink_msg_trajectory_representation_waypoints_get_acc_x(
const mavlink_message_t* msg,
float *acc_x)
544 return _MAV_RETURN_float_array(msg, acc_x, 5, 128);
548
549
550
551
552static inline uint16_t mavlink_msg_trajectory_representation_waypoints_get_acc_y(
const mavlink_message_t* msg,
float *acc_y)
554 return _MAV_RETURN_float_array(msg, acc_y, 5, 148);
558
559
560
561
562static inline uint16_t mavlink_msg_trajectory_representation_waypoints_get_acc_z(
const mavlink_message_t* msg,
float *acc_z)
564 return _MAV_RETURN_float_array(msg, acc_z, 5, 168);
568
569
570
571
572static inline uint16_t mavlink_msg_trajectory_representation_waypoints_get_pos_yaw(
const mavlink_message_t* msg,
float *pos_yaw)
574 return _MAV_RETURN_float_array(msg, pos_yaw, 5, 188);
578
579
580
581
582static inline uint16_t mavlink_msg_trajectory_representation_waypoints_get_vel_yaw(
const mavlink_message_t* msg,
float *vel_yaw)
584 return _MAV_RETURN_float_array(msg, vel_yaw, 5, 208);
588
589
590
591
592static inline uint16_t mavlink_msg_trajectory_representation_waypoints_get_command(
const mavlink_message_t* msg, uint16_t *command)
594 return _MAV_RETURN_uint16_t_array(msg, command, 5, 228);
598
599
600
601
602
603static inline void mavlink_msg_trajectory_representation_waypoints_decode(
const mavlink_message_t* msg, mavlink_trajectory_representation_waypoints_t* trajectory_representation_waypoints)
605#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
606 trajectory_representation_waypoints->time_usec = mavlink_msg_trajectory_representation_waypoints_get_time_usec(msg);
607 mavlink_msg_trajectory_representation_waypoints_get_pos_x(msg, trajectory_representation_waypoints->pos_x);
608 mavlink_msg_trajectory_representation_waypoints_get_pos_y(msg, trajectory_representation_waypoints->pos_y);
609 mavlink_msg_trajectory_representation_waypoints_get_pos_z(msg, trajectory_representation_waypoints->pos_z);
610 mavlink_msg_trajectory_representation_waypoints_get_vel_x(msg, trajectory_representation_waypoints->vel_x);
611 mavlink_msg_trajectory_representation_waypoints_get_vel_y(msg, trajectory_representation_waypoints->vel_y);
612 mavlink_msg_trajectory_representation_waypoints_get_vel_z(msg, trajectory_representation_waypoints->vel_z);
613 mavlink_msg_trajectory_representation_waypoints_get_acc_x(msg, trajectory_representation_waypoints->acc_x);
614 mavlink_msg_trajectory_representation_waypoints_get_acc_y(msg, trajectory_representation_waypoints->acc_y);
615 mavlink_msg_trajectory_representation_waypoints_get_acc_z(msg, trajectory_representation_waypoints->acc_z);
616 mavlink_msg_trajectory_representation_waypoints_get_pos_yaw(msg, trajectory_representation_waypoints->pos_yaw);
617 mavlink_msg_trajectory_representation_waypoints_get_vel_yaw(msg, trajectory_representation_waypoints->vel_yaw);
618 mavlink_msg_trajectory_representation_waypoints_get_command(msg, trajectory_representation_waypoints->command);
619 trajectory_representation_waypoints->valid_points = mavlink_msg_trajectory_representation_waypoints_get_valid_points(msg);
621 uint8_t len = msg->len < MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN? msg->len : MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN;
622 memset(trajectory_representation_waypoints, 0, MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN);
623 memcpy(trajectory_representation_waypoints, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS
Definition: mavlink_msg_trajectory_representation_waypoints.h:4
#define MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_CRC
Definition: mavlink_msg_trajectory_representation_waypoints.h:29
#define MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_LEN
Definition: mavlink_msg_trajectory_representation_waypoints.h:24
#define MAVLINK_MSG_ID_TRAJECTORY_REPRESENTATION_WAYPOINTS_MIN_LEN
Definition: mavlink_msg_trajectory_representation_waypoints.h:25
Definition: mavlink_msg_trajectory_representation_waypoints.h:7
float vel_z[5]
Definition: mavlink_msg_trajectory_representation_waypoints.h:14
float pos_yaw[5]
Definition: mavlink_msg_trajectory_representation_waypoints.h:18
uint64_t time_usec
Definition: mavlink_msg_trajectory_representation_waypoints.h:8
float acc_y[5]
Definition: mavlink_msg_trajectory_representation_waypoints.h:16
float pos_y[5]
Definition: mavlink_msg_trajectory_representation_waypoints.h:10
float vel_yaw[5]
Definition: mavlink_msg_trajectory_representation_waypoints.h:19
float acc_x[5]
Definition: mavlink_msg_trajectory_representation_waypoints.h:15
float pos_x[5]
Definition: mavlink_msg_trajectory_representation_waypoints.h:9
float vel_y[5]
Definition: mavlink_msg_trajectory_representation_waypoints.h:13
float acc_z[5]
Definition: mavlink_msg_trajectory_representation_waypoints.h:17
float vel_x[5]
Definition: mavlink_msg_trajectory_representation_waypoints.h:12
uint8_t valid_points
Definition: mavlink_msg_trajectory_representation_waypoints.h:21
float pos_z[5]
Definition: mavlink_msg_trajectory_representation_waypoints.h:11