4#define MAVLINK_MSG_ID_HIGH_LATENCY2 235
35} mavlink_high_latency2_t;
37#define MAVLINK_MSG_ID_HIGH_LATENCY2_LEN 42
38#define MAVLINK_MSG_ID_HIGH_LATENCY2_MIN_LEN 42
39#define MAVLINK_MSG_ID_235_LEN 42
40#define MAVLINK_MSG_ID_235_MIN_LEN 42
42#define MAVLINK_MSG_ID_HIGH_LATENCY2_CRC 179
43#define MAVLINK_MSG_ID_235_CRC 179
47#if MAVLINK_COMMAND_24BIT
48#define MAVLINK_MESSAGE_INFO_HIGH_LATENCY2 {
52 { { "timestamp", NULL, MAVLINK_TYPE_UINT32_T, 0
, 0
, offsetof(mavlink_high_latency2_t, timestamp) },
53 { "type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 24
, offsetof(mavlink_high_latency2_t, type) },
54 { "autopilot", NULL, MAVLINK_TYPE_UINT8_T, 0
, 25
, offsetof(mavlink_high_latency2_t, autopilot) },
55 { "custom_mode", NULL, MAVLINK_TYPE_UINT16_T, 0
, 12
, offsetof(mavlink_high_latency2_t, custom_mode) },
56 { "latitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 4
, offsetof(mavlink_high_latency2_t, latitude) },
57 { "longitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_high_latency2_t, longitude) },
58 { "altitude", NULL, MAVLINK_TYPE_INT16_T, 0
, 14
, offsetof(mavlink_high_latency2_t, altitude) },
59 { "target_altitude", NULL, MAVLINK_TYPE_INT16_T, 0
, 16
, offsetof(mavlink_high_latency2_t, target_altitude) },
60 { "heading", NULL, MAVLINK_TYPE_UINT8_T, 0
, 26
, offsetof(mavlink_high_latency2_t, heading) },
61 { "target_heading", NULL, MAVLINK_TYPE_UINT8_T, 0
, 27
, offsetof(mavlink_high_latency2_t, target_heading) },
62 { "target_distance", NULL, MAVLINK_TYPE_UINT16_T, 0
, 18
, offsetof(mavlink_high_latency2_t, target_distance) },
63 { "throttle", NULL, MAVLINK_TYPE_UINT8_T, 0
, 28
, offsetof(mavlink_high_latency2_t, throttle) },
64 { "airspeed", NULL, MAVLINK_TYPE_UINT8_T, 0
, 29
, offsetof(mavlink_high_latency2_t, airspeed) },
65 { "airspeed_sp", NULL, MAVLINK_TYPE_UINT8_T, 0
, 30
, offsetof(mavlink_high_latency2_t, airspeed_sp) },
66 { "groundspeed", NULL, MAVLINK_TYPE_UINT8_T, 0
, 31
, offsetof(mavlink_high_latency2_t, groundspeed) },
67 { "windspeed", NULL, MAVLINK_TYPE_UINT8_T, 0
, 32
, offsetof(mavlink_high_latency2_t, windspeed) },
68 { "wind_heading", NULL, MAVLINK_TYPE_UINT8_T, 0
, 33
, offsetof(mavlink_high_latency2_t, wind_heading) },
69 { "eph", NULL, MAVLINK_TYPE_UINT8_T, 0
, 34
, offsetof(mavlink_high_latency2_t, eph) },
70 { "epv", NULL, MAVLINK_TYPE_UINT8_T, 0
, 35
, offsetof(mavlink_high_latency2_t, epv) },
71 { "temperature_air", NULL, MAVLINK_TYPE_INT8_T, 0
, 36
, offsetof(mavlink_high_latency2_t, temperature_air) },
72 { "climb_rate", NULL, MAVLINK_TYPE_INT8_T, 0
, 37
, offsetof(mavlink_high_latency2_t, climb_rate) },
73 { "battery", NULL, MAVLINK_TYPE_INT8_T, 0
, 38
, offsetof(mavlink_high_latency2_t, battery) },
74 { "wp_num", NULL, MAVLINK_TYPE_UINT16_T, 0
, 20
, offsetof(mavlink_high_latency2_t, wp_num) },
75 { "failure_flags", NULL, MAVLINK_TYPE_UINT16_T, 0
, 22
, offsetof(mavlink_high_latency2_t, failure_flags) },
76 { "custom0", NULL, MAVLINK_TYPE_INT8_T, 0
, 39
, offsetof(mavlink_high_latency2_t, custom0) },
77 { "custom1", NULL, MAVLINK_TYPE_INT8_T, 0
, 40
, offsetof(mavlink_high_latency2_t, custom1) },
78 { "custom2", NULL, MAVLINK_TYPE_INT8_T, 0
, 41
, offsetof(mavlink_high_latency2_t, custom2) },
80}
82#define MAVLINK_MESSAGE_INFO_HIGH_LATENCY2 {
85 { { "timestamp", NULL, MAVLINK_TYPE_UINT32_T, 0
, 0
, offsetof(mavlink_high_latency2_t, timestamp) },
86 { "type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 24
, offsetof(mavlink_high_latency2_t, type) },
87 { "autopilot", NULL, MAVLINK_TYPE_UINT8_T, 0
, 25
, offsetof(mavlink_high_latency2_t, autopilot) },
88 { "custom_mode", NULL, MAVLINK_TYPE_UINT16_T, 0
, 12
, offsetof(mavlink_high_latency2_t, custom_mode) },
89 { "latitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 4
, offsetof(mavlink_high_latency2_t, latitude) },
90 { "longitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_high_latency2_t, longitude) },
91 { "altitude", NULL, MAVLINK_TYPE_INT16_T, 0
, 14
, offsetof(mavlink_high_latency2_t, altitude) },
92 { "target_altitude", NULL, MAVLINK_TYPE_INT16_T, 0
, 16
, offsetof(mavlink_high_latency2_t, target_altitude) },
93 { "heading", NULL, MAVLINK_TYPE_UINT8_T, 0
, 26
, offsetof(mavlink_high_latency2_t, heading) },
94 { "target_heading", NULL, MAVLINK_TYPE_UINT8_T, 0
, 27
, offsetof(mavlink_high_latency2_t, target_heading) },
95 { "target_distance", NULL, MAVLINK_TYPE_UINT16_T, 0
, 18
, offsetof(mavlink_high_latency2_t, target_distance) },
96 { "throttle", NULL, MAVLINK_TYPE_UINT8_T, 0
, 28
, offsetof(mavlink_high_latency2_t, throttle) },
97 { "airspeed", NULL, MAVLINK_TYPE_UINT8_T, 0
, 29
, offsetof(mavlink_high_latency2_t, airspeed) },
98 { "airspeed_sp", NULL, MAVLINK_TYPE_UINT8_T, 0
, 30
, offsetof(mavlink_high_latency2_t, airspeed_sp) },
99 { "groundspeed", NULL, MAVLINK_TYPE_UINT8_T, 0
, 31
, offsetof(mavlink_high_latency2_t, groundspeed) },
100 { "windspeed", NULL, MAVLINK_TYPE_UINT8_T, 0
, 32
, offsetof(mavlink_high_latency2_t, windspeed) },
101 { "wind_heading", NULL, MAVLINK_TYPE_UINT8_T, 0
, 33
, offsetof(mavlink_high_latency2_t, wind_heading) },
102 { "eph", NULL, MAVLINK_TYPE_UINT8_T, 0
, 34
, offsetof(mavlink_high_latency2_t, eph) },
103 { "epv", NULL, MAVLINK_TYPE_UINT8_T, 0
, 35
, offsetof(mavlink_high_latency2_t, epv) },
104 { "temperature_air", NULL, MAVLINK_TYPE_INT8_T, 0
, 36
, offsetof(mavlink_high_latency2_t, temperature_air) },
105 { "climb_rate", NULL, MAVLINK_TYPE_INT8_T, 0
, 37
, offsetof(mavlink_high_latency2_t, climb_rate) },
106 { "battery", NULL, MAVLINK_TYPE_INT8_T, 0
, 38
, offsetof(mavlink_high_latency2_t, battery) },
107 { "wp_num", NULL, MAVLINK_TYPE_UINT16_T, 0
, 20
, offsetof(mavlink_high_latency2_t, wp_num) },
108 { "failure_flags", NULL, MAVLINK_TYPE_UINT16_T, 0
, 22
, offsetof(mavlink_high_latency2_t, failure_flags) },
109 { "custom0", NULL, MAVLINK_TYPE_INT8_T, 0
, 39
, offsetof(mavlink_high_latency2_t, custom0) },
110 { "custom1", NULL, MAVLINK_TYPE_INT8_T, 0
, 40
, offsetof(mavlink_high_latency2_t, custom1) },
111 { "custom2", NULL, MAVLINK_TYPE_INT8_T, 0
, 41
, offsetof(mavlink_high_latency2_t, custom2) },
113}
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151static inline uint16_t mavlink_msg_high_latency2_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
152 uint32_t timestamp, uint8_t type, uint8_t autopilot, uint16_t custom_mode, int32_t latitude, int32_t longitude, int16_t altitude, int16_t target_altitude, uint8_t heading, uint8_t target_heading, uint16_t target_distance, uint8_t throttle, uint8_t airspeed, uint8_t airspeed_sp, uint8_t groundspeed, uint8_t windspeed, uint8_t wind_heading, uint8_t eph, uint8_t epv, int8_t temperature_air, int8_t climb_rate, int8_t battery, uint16_t wp_num, uint16_t failure_flags, int8_t custom0, int8_t custom1, int8_t custom2)
154#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
156 _mav_put_uint32_t(buf, 0, timestamp);
157 _mav_put_int32_t(buf, 4, latitude);
158 _mav_put_int32_t(buf, 8, longitude);
159 _mav_put_uint16_t(buf, 12, custom_mode);
160 _mav_put_int16_t(buf, 14, altitude);
161 _mav_put_int16_t(buf, 16, target_altitude);
162 _mav_put_uint16_t(buf, 18, target_distance);
163 _mav_put_uint16_t(buf, 20, wp_num);
164 _mav_put_uint16_t(buf, 22, failure_flags);
165 _mav_put_uint8_t(buf, 24, type);
166 _mav_put_uint8_t(buf, 25, autopilot);
167 _mav_put_uint8_t(buf, 26, heading);
168 _mav_put_uint8_t(buf, 27, target_heading);
169 _mav_put_uint8_t(buf, 28, throttle);
170 _mav_put_uint8_t(buf, 29, airspeed);
171 _mav_put_uint8_t(buf, 30, airspeed_sp);
172 _mav_put_uint8_t(buf, 31, groundspeed);
173 _mav_put_uint8_t(buf, 32, windspeed);
174 _mav_put_uint8_t(buf, 33, wind_heading);
175 _mav_put_uint8_t(buf, 34, eph);
176 _mav_put_uint8_t(buf, 35, epv);
177 _mav_put_int8_t(buf, 36, temperature_air);
178 _mav_put_int8_t(buf, 37, climb_rate);
179 _mav_put_int8_t(buf, 38, battery);
180 _mav_put_int8_t(buf, 39, custom0);
181 _mav_put_int8_t(buf, 40, custom1);
182 _mav_put_int8_t(buf, 41, custom2);
186 mavlink_high_latency2_t packet;
187 packet.timestamp = timestamp;
188 packet.latitude = latitude;
189 packet.longitude = longitude;
190 packet.custom_mode = custom_mode;
191 packet.altitude = altitude;
192 packet.target_altitude = target_altitude;
193 packet.target_distance = target_distance;
194 packet.wp_num = wp_num;
195 packet.failure_flags = failure_flags;
197 packet.autopilot = autopilot;
198 packet.heading = heading;
199 packet.target_heading = target_heading;
200 packet.throttle = throttle;
201 packet.airspeed = airspeed;
202 packet.airspeed_sp = airspeed_sp;
203 packet.groundspeed = groundspeed;
204 packet.windspeed = windspeed;
205 packet.wind_heading = wind_heading;
208 packet.temperature_air = temperature_air;
209 packet.climb_rate = climb_rate;
210 packet.battery = battery;
211 packet.custom0 = custom0;
212 packet.custom1 = custom1;
213 packet.custom2 = custom2;
215 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_HIGH_LATENCY2_LEN);
223
224
225
226
227
228
229
230
231
232
233
234
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_high_latency2_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
259 uint32_t timestamp, uint8_t type, uint8_t autopilot, uint16_t custom_mode, int32_t latitude, int32_t longitude, int16_t altitude, int16_t target_altitude, uint8_t heading, uint8_t target_heading, uint16_t target_distance, uint8_t throttle, uint8_t airspeed, uint8_t airspeed_sp, uint8_t groundspeed, uint8_t windspeed, uint8_t wind_heading, uint8_t eph, uint8_t epv, int8_t temperature_air, int8_t climb_rate, int8_t battery, uint16_t wp_num, uint16_t failure_flags, int8_t custom0, int8_t custom1, int8_t custom2)
261#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
263 _mav_put_uint32_t(buf, 0, timestamp);
264 _mav_put_int32_t(buf, 4, latitude);
265 _mav_put_int32_t(buf, 8, longitude);
266 _mav_put_uint16_t(buf, 12, custom_mode);
267 _mav_put_int16_t(buf, 14, altitude);
268 _mav_put_int16_t(buf, 16, target_altitude);
269 _mav_put_uint16_t(buf, 18, target_distance);
270 _mav_put_uint16_t(buf, 20, wp_num);
271 _mav_put_uint16_t(buf, 22, failure_flags);
272 _mav_put_uint8_t(buf, 24, type);
273 _mav_put_uint8_t(buf, 25, autopilot);
274 _mav_put_uint8_t(buf, 26, heading);
275 _mav_put_uint8_t(buf, 27, target_heading);
276 _mav_put_uint8_t(buf, 28, throttle);
277 _mav_put_uint8_t(buf, 29, airspeed);
278 _mav_put_uint8_t(buf, 30, airspeed_sp);
279 _mav_put_uint8_t(buf, 31, groundspeed);
280 _mav_put_uint8_t(buf, 32, windspeed);
281 _mav_put_uint8_t(buf, 33, wind_heading);
282 _mav_put_uint8_t(buf, 34, eph);
283 _mav_put_uint8_t(buf, 35, epv);
284 _mav_put_int8_t(buf, 36, temperature_air);
285 _mav_put_int8_t(buf, 37, climb_rate);
286 _mav_put_int8_t(buf, 38, battery);
287 _mav_put_int8_t(buf, 39, custom0);
288 _mav_put_int8_t(buf, 40, custom1);
289 _mav_put_int8_t(buf, 41, custom2);
293 mavlink_high_latency2_t packet;
294 packet.timestamp = timestamp;
295 packet.latitude = latitude;
296 packet.longitude = longitude;
297 packet.custom_mode = custom_mode;
298 packet.altitude = altitude;
299 packet.target_altitude = target_altitude;
300 packet.target_distance = target_distance;
301 packet.wp_num = wp_num;
302 packet.failure_flags = failure_flags;
304 packet.autopilot = autopilot;
305 packet.heading = heading;
306 packet.target_heading = target_heading;
307 packet.throttle = throttle;
308 packet.airspeed = airspeed;
309 packet.airspeed_sp = airspeed_sp;
310 packet.groundspeed = groundspeed;
311 packet.windspeed = windspeed;
312 packet.wind_heading = wind_heading;
315 packet.temperature_air = temperature_air;
316 packet.climb_rate = climb_rate;
317 packet.battery = battery;
318 packet.custom0 = custom0;
319 packet.custom1 = custom1;
320 packet.custom2 = custom2;
322 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_HIGH_LATENCY2_LEN);
327 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_HIGH_LATENCY2_MIN_LEN, MAVLINK_MSG_ID_HIGH_LATENCY2_LEN, MAVLINK_MSG_ID_HIGH_LATENCY2_CRC);
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368static inline uint16_t mavlink_msg_high_latency2_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
369 mavlink_message_t* msg,
370 uint32_t timestamp,uint8_t type,uint8_t autopilot,uint16_t custom_mode,int32_t latitude,int32_t longitude,int16_t altitude,int16_t target_altitude,uint8_t heading,uint8_t target_heading,uint16_t target_distance,uint8_t throttle,uint8_t airspeed,uint8_t airspeed_sp,uint8_t groundspeed,uint8_t windspeed,uint8_t wind_heading,uint8_t eph,uint8_t epv,int8_t temperature_air,int8_t climb_rate,int8_t battery,uint16_t wp_num,uint16_t failure_flags,int8_t custom0,int8_t custom1,int8_t custom2)
372#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
374 _mav_put_uint32_t(buf, 0, timestamp);
375 _mav_put_int32_t(buf, 4, latitude);
376 _mav_put_int32_t(buf, 8, longitude);
377 _mav_put_uint16_t(buf, 12, custom_mode);
378 _mav_put_int16_t(buf, 14, altitude);
379 _mav_put_int16_t(buf, 16, target_altitude);
380 _mav_put_uint16_t(buf, 18, target_distance);
381 _mav_put_uint16_t(buf, 20, wp_num);
382 _mav_put_uint16_t(buf, 22, failure_flags);
383 _mav_put_uint8_t(buf, 24, type);
384 _mav_put_uint8_t(buf, 25, autopilot);
385 _mav_put_uint8_t(buf, 26, heading);
386 _mav_put_uint8_t(buf, 27, target_heading);
387 _mav_put_uint8_t(buf, 28, throttle);
388 _mav_put_uint8_t(buf, 29, airspeed);
389 _mav_put_uint8_t(buf, 30, airspeed_sp);
390 _mav_put_uint8_t(buf, 31, groundspeed);
391 _mav_put_uint8_t(buf, 32, windspeed);
392 _mav_put_uint8_t(buf, 33, wind_heading);
393 _mav_put_uint8_t(buf, 34, eph);
394 _mav_put_uint8_t(buf, 35, epv);
395 _mav_put_int8_t(buf, 36, temperature_air);
396 _mav_put_int8_t(buf, 37, climb_rate);
397 _mav_put_int8_t(buf, 38, battery);
398 _mav_put_int8_t(buf, 39, custom0);
399 _mav_put_int8_t(buf, 40, custom1);
400 _mav_put_int8_t(buf, 41, custom2);
404 mavlink_high_latency2_t packet;
405 packet.timestamp = timestamp;
406 packet.latitude = latitude;
407 packet.longitude = longitude;
408 packet.custom_mode = custom_mode;
409 packet.altitude = altitude;
410 packet.target_altitude = target_altitude;
411 packet.target_distance = target_distance;
412 packet.wp_num = wp_num;
413 packet.failure_flags = failure_flags;
415 packet.autopilot = autopilot;
416 packet.heading = heading;
417 packet.target_heading = target_heading;
418 packet.throttle = throttle;
419 packet.airspeed = airspeed;
420 packet.airspeed_sp = airspeed_sp;
421 packet.groundspeed = groundspeed;
422 packet.windspeed = windspeed;
423 packet.wind_heading = wind_heading;
426 packet.temperature_air = temperature_air;
427 packet.climb_rate = climb_rate;
428 packet.battery = battery;
429 packet.custom0 = custom0;
430 packet.custom1 = custom1;
431 packet.custom2 = custom2;
433 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_HIGH_LATENCY2_LEN);
441
442
443
444
445
446
447
448static inline uint16_t mavlink_msg_high_latency2_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_high_latency2_t* high_latency2)
450 return mavlink_msg_high_latency2_pack(system_id, component_id, msg, high_latency2->timestamp, high_latency2->type, high_latency2->autopilot, high_latency2->custom_mode, high_latency2->latitude, high_latency2->longitude, high_latency2->altitude, high_latency2->target_altitude, high_latency2->heading, high_latency2->target_heading, high_latency2->target_distance, high_latency2->throttle, high_latency2->airspeed, high_latency2->airspeed_sp, high_latency2->groundspeed, high_latency2->windspeed, high_latency2->wind_heading, high_latency2->eph, high_latency2->epv, high_latency2->temperature_air, high_latency2->climb_rate, high_latency2->battery, high_latency2->wp_num, high_latency2->failure_flags, high_latency2->custom0, high_latency2->custom1, high_latency2->custom2);
454
455
456
457
458
459
460
461
462static inline uint16_t mavlink_msg_high_latency2_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_high_latency2_t* high_latency2)
464 return mavlink_msg_high_latency2_pack_chan(system_id, component_id, chan, msg, high_latency2->timestamp, high_latency2->type, high_latency2->autopilot, high_latency2->custom_mode, high_latency2->latitude, high_latency2->longitude, high_latency2->altitude, high_latency2->target_altitude, high_latency2->heading, high_latency2->target_heading, high_latency2->target_distance, high_latency2->throttle, high_latency2->airspeed, high_latency2->airspeed_sp, high_latency2->groundspeed, high_latency2->windspeed, high_latency2->wind_heading, high_latency2->eph, high_latency2->epv, high_latency2->temperature_air, high_latency2->climb_rate, high_latency2->battery, high_latency2->wp_num, high_latency2->failure_flags, high_latency2->custom0, high_latency2->custom1, high_latency2->custom2);
468
469
470
471
472
473
474
475
476static inline uint16_t mavlink_msg_high_latency2_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_high_latency2_t* high_latency2)
478 return mavlink_msg_high_latency2_pack_status(system_id, component_id, _status, msg, high_latency2->timestamp, high_latency2->type, high_latency2->autopilot, high_latency2->custom_mode, high_latency2->latitude, high_latency2->longitude, high_latency2->altitude, high_latency2->target_altitude, high_latency2->heading, high_latency2->target_heading, high_latency2->target_distance, high_latency2->throttle, high_latency2->airspeed, high_latency2->airspeed_sp, high_latency2->groundspeed, high_latency2->windspeed, high_latency2->wind_heading, high_latency2->eph, high_latency2->epv, high_latency2->temperature_air, high_latency2->climb_rate, high_latency2->battery, high_latency2->wp_num, high_latency2->failure_flags, high_latency2->custom0, high_latency2->custom1, high_latency2->custom2);
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
515static inline void mavlink_msg_high_latency2_send(mavlink_channel_t chan, uint32_t timestamp, uint8_t type, uint8_t autopilot, uint16_t custom_mode, int32_t latitude, int32_t longitude, int16_t altitude, int16_t target_altitude, uint8_t heading, uint8_t target_heading, uint16_t target_distance, uint8_t throttle, uint8_t airspeed, uint8_t airspeed_sp, uint8_t groundspeed, uint8_t windspeed, uint8_t wind_heading, uint8_t eph, uint8_t epv, int8_t temperature_air, int8_t climb_rate, int8_t battery, uint16_t wp_num, uint16_t failure_flags, int8_t custom0, int8_t custom1, int8_t custom2)
517#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
518 char buf[MAVLINK_MSG_ID_HIGH_LATENCY2_LEN];
519 _mav_put_uint32_t(buf, 0, timestamp);
520 _mav_put_int32_t(buf, 4, latitude);
521 _mav_put_int32_t(buf, 8, longitude);
522 _mav_put_uint16_t(buf, 12, custom_mode);
523 _mav_put_int16_t(buf, 14, altitude);
524 _mav_put_int16_t(buf, 16, target_altitude);
525 _mav_put_uint16_t(buf, 18, target_distance);
526 _mav_put_uint16_t(buf, 20, wp_num);
527 _mav_put_uint16_t(buf, 22, failure_flags);
528 _mav_put_uint8_t(buf, 24, type);
529 _mav_put_uint8_t(buf, 25, autopilot);
530 _mav_put_uint8_t(buf, 26, heading);
531 _mav_put_uint8_t(buf, 27, target_heading);
532 _mav_put_uint8_t(buf, 28, throttle);
533 _mav_put_uint8_t(buf, 29, airspeed);
534 _mav_put_uint8_t(buf, 30, airspeed_sp);
535 _mav_put_uint8_t(buf, 31, groundspeed);
536 _mav_put_uint8_t(buf, 32, windspeed);
537 _mav_put_uint8_t(buf, 33, wind_heading);
538 _mav_put_uint8_t(buf, 34, eph);
539 _mav_put_uint8_t(buf, 35, epv);
540 _mav_put_int8_t(buf, 36, temperature_air);
541 _mav_put_int8_t(buf, 37, climb_rate);
542 _mav_put_int8_t(buf, 38, battery);
543 _mav_put_int8_t(buf, 39, custom0);
544 _mav_put_int8_t(buf, 40, custom1);
545 _mav_put_int8_t(buf, 41, custom2);
547 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIGH_LATENCY2, buf, MAVLINK_MSG_ID_HIGH_LATENCY2_MIN_LEN, MAVLINK_MSG_ID_HIGH_LATENCY2_LEN, MAVLINK_MSG_ID_HIGH_LATENCY2_CRC);
549 mavlink_high_latency2_t packet;
550 packet.timestamp = timestamp;
551 packet.latitude = latitude;
552 packet.longitude = longitude;
553 packet.custom_mode = custom_mode;
554 packet.altitude = altitude;
555 packet.target_altitude = target_altitude;
556 packet.target_distance = target_distance;
557 packet.wp_num = wp_num;
558 packet.failure_flags = failure_flags;
560 packet.autopilot = autopilot;
561 packet.heading = heading;
562 packet.target_heading = target_heading;
563 packet.throttle = throttle;
564 packet.airspeed = airspeed;
565 packet.airspeed_sp = airspeed_sp;
566 packet.groundspeed = groundspeed;
567 packet.windspeed = windspeed;
568 packet.wind_heading = wind_heading;
571 packet.temperature_air = temperature_air;
572 packet.climb_rate = climb_rate;
573 packet.battery = battery;
574 packet.custom0 = custom0;
575 packet.custom1 = custom1;
576 packet.custom2 = custom2;
578 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIGH_LATENCY2, (
const char *)&packet, MAVLINK_MSG_ID_HIGH_LATENCY2_MIN_LEN, MAVLINK_MSG_ID_HIGH_LATENCY2_LEN, MAVLINK_MSG_ID_HIGH_LATENCY2_CRC);
583
584
585
586
587static inline void mavlink_msg_high_latency2_send_struct(mavlink_channel_t chan,
const mavlink_high_latency2_t* high_latency2)
589#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
590 mavlink_msg_high_latency2_send(chan, high_latency2->timestamp, high_latency2->type, high_latency2->autopilot, high_latency2->custom_mode, high_latency2->latitude, high_latency2->longitude, high_latency2->altitude, high_latency2->target_altitude, high_latency2->heading, high_latency2->target_heading, high_latency2->target_distance, high_latency2->throttle, high_latency2->airspeed, high_latency2->airspeed_sp, high_latency2->groundspeed, high_latency2->windspeed, high_latency2->wind_heading, high_latency2->eph, high_latency2->epv, high_latency2->temperature_air, high_latency2->climb_rate, high_latency2->battery, high_latency2->wp_num, high_latency2->failure_flags, high_latency2->custom0, high_latency2->custom1, high_latency2->custom2);
592 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIGH_LATENCY2, (
const char *)high_latency2, MAVLINK_MSG_ID_HIGH_LATENCY2_MIN_LEN, MAVLINK_MSG_ID_HIGH_LATENCY2_LEN, MAVLINK_MSG_ID_HIGH_LATENCY2_CRC);
596#if MAVLINK_MSG_ID_HIGH_LATENCY2_LEN <= MAVLINK_MAX_PAYLOAD_LEN
598
599
600
601
602
603
604static inline void mavlink_msg_high_latency2_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t timestamp, uint8_t type, uint8_t autopilot, uint16_t custom_mode, int32_t latitude, int32_t longitude, int16_t altitude, int16_t target_altitude, uint8_t heading, uint8_t target_heading, uint16_t target_distance, uint8_t throttle, uint8_t airspeed, uint8_t airspeed_sp, uint8_t groundspeed, uint8_t windspeed, uint8_t wind_heading, uint8_t eph, uint8_t epv, int8_t temperature_air, int8_t climb_rate, int8_t battery, uint16_t wp_num, uint16_t failure_flags, int8_t custom0, int8_t custom1, int8_t custom2)
606#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
607 char *buf = (
char *)msgbuf;
608 _mav_put_uint32_t(buf, 0, timestamp);
609 _mav_put_int32_t(buf, 4, latitude);
610 _mav_put_int32_t(buf, 8, longitude);
611 _mav_put_uint16_t(buf, 12, custom_mode);
612 _mav_put_int16_t(buf, 14, altitude);
613 _mav_put_int16_t(buf, 16, target_altitude);
614 _mav_put_uint16_t(buf, 18, target_distance);
615 _mav_put_uint16_t(buf, 20, wp_num);
616 _mav_put_uint16_t(buf, 22, failure_flags);
617 _mav_put_uint8_t(buf, 24, type);
618 _mav_put_uint8_t(buf, 25, autopilot);
619 _mav_put_uint8_t(buf, 26, heading);
620 _mav_put_uint8_t(buf, 27, target_heading);
621 _mav_put_uint8_t(buf, 28, throttle);
622 _mav_put_uint8_t(buf, 29, airspeed);
623 _mav_put_uint8_t(buf, 30, airspeed_sp);
624 _mav_put_uint8_t(buf, 31, groundspeed);
625 _mav_put_uint8_t(buf, 32, windspeed);
626 _mav_put_uint8_t(buf, 33, wind_heading);
627 _mav_put_uint8_t(buf, 34, eph);
628 _mav_put_uint8_t(buf, 35, epv);
629 _mav_put_int8_t(buf, 36, temperature_air);
630 _mav_put_int8_t(buf, 37, climb_rate);
631 _mav_put_int8_t(buf, 38, battery);
632 _mav_put_int8_t(buf, 39, custom0);
633 _mav_put_int8_t(buf, 40, custom1);
634 _mav_put_int8_t(buf, 41, custom2);
636 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIGH_LATENCY2, buf, MAVLINK_MSG_ID_HIGH_LATENCY2_MIN_LEN, MAVLINK_MSG_ID_HIGH_LATENCY2_LEN, MAVLINK_MSG_ID_HIGH_LATENCY2_CRC);
638 mavlink_high_latency2_t *packet = (mavlink_high_latency2_t *)msgbuf;
639 packet->timestamp = timestamp;
640 packet->latitude = latitude;
641 packet->longitude = longitude;
642 packet->custom_mode = custom_mode;
643 packet->altitude = altitude;
644 packet->target_altitude = target_altitude;
645 packet->target_distance = target_distance;
646 packet->wp_num = wp_num;
647 packet->failure_flags = failure_flags;
649 packet->autopilot = autopilot;
650 packet->heading = heading;
651 packet->target_heading = target_heading;
652 packet->throttle = throttle;
653 packet->airspeed = airspeed;
654 packet->airspeed_sp = airspeed_sp;
655 packet->groundspeed = groundspeed;
656 packet->windspeed = windspeed;
657 packet->wind_heading = wind_heading;
660 packet->temperature_air = temperature_air;
661 packet->climb_rate = climb_rate;
662 packet->battery = battery;
663 packet->custom0 = custom0;
664 packet->custom1 = custom1;
665 packet->custom2 = custom2;
667 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIGH_LATENCY2, (
const char *)packet, MAVLINK_MSG_ID_HIGH_LATENCY2_MIN_LEN, MAVLINK_MSG_ID_HIGH_LATENCY2_LEN, MAVLINK_MSG_ID_HIGH_LATENCY2_CRC);
678
679
680
681
682static inline uint32_t mavlink_msg_high_latency2_get_timestamp(
const mavlink_message_t* msg)
684 return _MAV_RETURN_uint32_t(msg, 0);
688
689
690
691
692static inline uint8_t mavlink_msg_high_latency2_get_type(
const mavlink_message_t* msg)
694 return _MAV_RETURN_uint8_t(msg, 24);
698
699
700
701
702static inline uint8_t mavlink_msg_high_latency2_get_autopilot(
const mavlink_message_t* msg)
704 return _MAV_RETURN_uint8_t(msg, 25);
708
709
710
711
712static inline uint16_t mavlink_msg_high_latency2_get_custom_mode(
const mavlink_message_t* msg)
714 return _MAV_RETURN_uint16_t(msg, 12);
718
719
720
721
722static inline int32_t mavlink_msg_high_latency2_get_latitude(
const mavlink_message_t* msg)
724 return _MAV_RETURN_int32_t(msg, 4);
728
729
730
731
732static inline int32_t mavlink_msg_high_latency2_get_longitude(
const mavlink_message_t* msg)
734 return _MAV_RETURN_int32_t(msg, 8);
738
739
740
741
742static inline int16_t mavlink_msg_high_latency2_get_altitude(
const mavlink_message_t* msg)
744 return _MAV_RETURN_int16_t(msg, 14);
748
749
750
751
752static inline int16_t mavlink_msg_high_latency2_get_target_altitude(
const mavlink_message_t* msg)
754 return _MAV_RETURN_int16_t(msg, 16);
758
759
760
761
762static inline uint8_t mavlink_msg_high_latency2_get_heading(
const mavlink_message_t* msg)
764 return _MAV_RETURN_uint8_t(msg, 26);
768
769
770
771
772static inline uint8_t mavlink_msg_high_latency2_get_target_heading(
const mavlink_message_t* msg)
774 return _MAV_RETURN_uint8_t(msg, 27);
778
779
780
781
782static inline uint16_t mavlink_msg_high_latency2_get_target_distance(
const mavlink_message_t* msg)
784 return _MAV_RETURN_uint16_t(msg, 18);
788
789
790
791
792static inline uint8_t mavlink_msg_high_latency2_get_throttle(
const mavlink_message_t* msg)
794 return _MAV_RETURN_uint8_t(msg, 28);
798
799
800
801
802static inline uint8_t mavlink_msg_high_latency2_get_airspeed(
const mavlink_message_t* msg)
804 return _MAV_RETURN_uint8_t(msg, 29);
808
809
810
811
812static inline uint8_t mavlink_msg_high_latency2_get_airspeed_sp(
const mavlink_message_t* msg)
814 return _MAV_RETURN_uint8_t(msg, 30);
818
819
820
821
822static inline uint8_t mavlink_msg_high_latency2_get_groundspeed(
const mavlink_message_t* msg)
824 return _MAV_RETURN_uint8_t(msg, 31);
828
829
830
831
832static inline uint8_t mavlink_msg_high_latency2_get_windspeed(
const mavlink_message_t* msg)
834 return _MAV_RETURN_uint8_t(msg, 32);
838
839
840
841
842static inline uint8_t mavlink_msg_high_latency2_get_wind_heading(
const mavlink_message_t* msg)
844 return _MAV_RETURN_uint8_t(msg, 33);
848
849
850
851
852static inline uint8_t mavlink_msg_high_latency2_get_eph(
const mavlink_message_t* msg)
854 return _MAV_RETURN_uint8_t(msg, 34);
858
859
860
861
862static inline uint8_t mavlink_msg_high_latency2_get_epv(
const mavlink_message_t* msg)
864 return _MAV_RETURN_uint8_t(msg, 35);
868
869
870
871
872static inline int8_t mavlink_msg_high_latency2_get_temperature_air(
const mavlink_message_t* msg)
874 return _MAV_RETURN_int8_t(msg, 36);
878
879
880
881
882static inline int8_t mavlink_msg_high_latency2_get_climb_rate(
const mavlink_message_t* msg)
884 return _MAV_RETURN_int8_t(msg, 37);
888
889
890
891
892static inline int8_t mavlink_msg_high_latency2_get_battery(
const mavlink_message_t* msg)
894 return _MAV_RETURN_int8_t(msg, 38);
898
899
900
901
902static inline uint16_t mavlink_msg_high_latency2_get_wp_num(
const mavlink_message_t* msg)
904 return _MAV_RETURN_uint16_t(msg, 20);
908
909
910
911
912static inline uint16_t mavlink_msg_high_latency2_get_failure_flags(
const mavlink_message_t* msg)
914 return _MAV_RETURN_uint16_t(msg, 22);
918
919
920
921
922static inline int8_t mavlink_msg_high_latency2_get_custom0(
const mavlink_message_t* msg)
924 return _MAV_RETURN_int8_t(msg, 39);
928
929
930
931
932static inline int8_t mavlink_msg_high_latency2_get_custom1(
const mavlink_message_t* msg)
934 return _MAV_RETURN_int8_t(msg, 40);
938
939
940
941
942static inline int8_t mavlink_msg_high_latency2_get_custom2(
const mavlink_message_t* msg)
944 return _MAV_RETURN_int8_t(msg, 41);
948
949
950
951
952
953static inline void mavlink_msg_high_latency2_decode(
const mavlink_message_t* msg, mavlink_high_latency2_t* high_latency2)
955#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
956 high_latency2->timestamp = mavlink_msg_high_latency2_get_timestamp(msg);
957 high_latency2->latitude = mavlink_msg_high_latency2_get_latitude(msg);
958 high_latency2->longitude = mavlink_msg_high_latency2_get_longitude(msg);
959 high_latency2->custom_mode = mavlink_msg_high_latency2_get_custom_mode(msg);
960 high_latency2->altitude = mavlink_msg_high_latency2_get_altitude(msg);
961 high_latency2->target_altitude = mavlink_msg_high_latency2_get_target_altitude(msg);
962 high_latency2->target_distance = mavlink_msg_high_latency2_get_target_distance(msg);
963 high_latency2->wp_num = mavlink_msg_high_latency2_get_wp_num(msg);
964 high_latency2->failure_flags = mavlink_msg_high_latency2_get_failure_flags(msg);
965 high_latency2->type = mavlink_msg_high_latency2_get_type(msg);
966 high_latency2->autopilot = mavlink_msg_high_latency2_get_autopilot(msg);
967 high_latency2->heading = mavlink_msg_high_latency2_get_heading(msg);
968 high_latency2->target_heading = mavlink_msg_high_latency2_get_target_heading(msg);
969 high_latency2->throttle = mavlink_msg_high_latency2_get_throttle(msg);
970 high_latency2->airspeed = mavlink_msg_high_latency2_get_airspeed(msg);
971 high_latency2->airspeed_sp = mavlink_msg_high_latency2_get_airspeed_sp(msg);
972 high_latency2->groundspeed = mavlink_msg_high_latency2_get_groundspeed(msg);
973 high_latency2->windspeed = mavlink_msg_high_latency2_get_windspeed(msg);
974 high_latency2->wind_heading = mavlink_msg_high_latency2_get_wind_heading(msg);
975 high_latency2->eph = mavlink_msg_high_latency2_get_eph(msg);
976 high_latency2->epv = mavlink_msg_high_latency2_get_epv(msg);
977 high_latency2->temperature_air = mavlink_msg_high_latency2_get_temperature_air(msg);
978 high_latency2->climb_rate = mavlink_msg_high_latency2_get_climb_rate(msg);
979 high_latency2->battery = mavlink_msg_high_latency2_get_battery(msg);
980 high_latency2->custom0 = mavlink_msg_high_latency2_get_custom0(msg);
981 high_latency2->custom1 = mavlink_msg_high_latency2_get_custom1(msg);
982 high_latency2->custom2 = mavlink_msg_high_latency2_get_custom2(msg);
984 uint8_t len = msg->len < MAVLINK_MSG_ID_HIGH_LATENCY2_LEN? msg->len : MAVLINK_MSG_ID_HIGH_LATENCY2_LEN;
985 memset(high_latency2, 0, MAVLINK_MSG_ID_HIGH_LATENCY2_LEN);
986 memcpy(high_latency2, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_HIGH_LATENCY2_MIN_LEN
Definition: mavlink_msg_high_latency2.h:38
#define MAVLINK_MSG_ID_HIGH_LATENCY2_CRC
Definition: mavlink_msg_high_latency2.h:42
#define MAVLINK_MSG_ID_HIGH_LATENCY2
Definition: mavlink_msg_high_latency2.h:4
#define MAVLINK_MSG_ID_HIGH_LATENCY2_LEN
Definition: mavlink_msg_high_latency2.h:37
Definition: mavlink_msg_high_latency2.h:7
uint8_t autopilot
Definition: mavlink_msg_high_latency2.h:18
int8_t climb_rate
Definition: mavlink_msg_high_latency2.h:30
int8_t temperature_air
Definition: mavlink_msg_high_latency2.h:29
uint16_t failure_flags
Definition: mavlink_msg_high_latency2.h:16
uint16_t custom_mode
Definition: mavlink_msg_high_latency2.h:11
uint8_t type
Definition: mavlink_msg_high_latency2.h:17
uint8_t wind_heading
Definition: mavlink_msg_high_latency2.h:26
int16_t altitude
Definition: mavlink_msg_high_latency2.h:12
uint8_t heading
Definition: mavlink_msg_high_latency2.h:19
int16_t target_altitude
Definition: mavlink_msg_high_latency2.h:13
uint8_t target_heading
Definition: mavlink_msg_high_latency2.h:20
uint8_t throttle
Definition: mavlink_msg_high_latency2.h:21
int8_t custom1
Definition: mavlink_msg_high_latency2.h:33
uint16_t wp_num
Definition: mavlink_msg_high_latency2.h:15
int8_t custom2
Definition: mavlink_msg_high_latency2.h:34
uint8_t epv
Definition: mavlink_msg_high_latency2.h:28
uint8_t airspeed_sp
Definition: mavlink_msg_high_latency2.h:23
uint16_t target_distance
Definition: mavlink_msg_high_latency2.h:14
int8_t custom0
Definition: mavlink_msg_high_latency2.h:32
uint8_t airspeed
Definition: mavlink_msg_high_latency2.h:22
uint32_t timestamp
Definition: mavlink_msg_high_latency2.h:8
int32_t latitude
Definition: mavlink_msg_high_latency2.h:9
uint8_t windspeed
Definition: mavlink_msg_high_latency2.h:25
int8_t battery
Definition: mavlink_msg_high_latency2.h:31
uint8_t groundspeed
Definition: mavlink_msg_high_latency2.h:24
uint8_t eph
Definition: mavlink_msg_high_latency2.h:27
int32_t longitude
Definition: mavlink_msg_high_latency2.h:10