4#define MAVLINK_MSG_ID_HIGH_LATENCY 234
32} mavlink_high_latency_t;
34#define MAVLINK_MSG_ID_HIGH_LATENCY_LEN 40
35#define MAVLINK_MSG_ID_HIGH_LATENCY_MIN_LEN 40
36#define MAVLINK_MSG_ID_234_LEN 40
37#define MAVLINK_MSG_ID_234_MIN_LEN 40
39#define MAVLINK_MSG_ID_HIGH_LATENCY_CRC 150
40#define MAVLINK_MSG_ID_234_CRC 150
44#if MAVLINK_COMMAND_24BIT
45#define MAVLINK_MESSAGE_INFO_HIGH_LATENCY {
49 { { "base_mode", NULL, MAVLINK_TYPE_UINT8_T, 0
, 26
, offsetof(mavlink_high_latency_t, base_mode) },
50 { "custom_mode", NULL, MAVLINK_TYPE_UINT32_T, 0
, 0
, offsetof(mavlink_high_latency_t, custom_mode) },
51 { "landed_state", NULL, MAVLINK_TYPE_UINT8_T, 0
, 27
, offsetof(mavlink_high_latency_t, landed_state) },
52 { "roll", NULL, MAVLINK_TYPE_INT16_T, 0
, 12
, offsetof(mavlink_high_latency_t, roll) },
53 { "pitch", NULL, MAVLINK_TYPE_INT16_T, 0
, 14
, offsetof(mavlink_high_latency_t, pitch) },
54 { "heading", NULL, MAVLINK_TYPE_UINT16_T, 0
, 16
, offsetof(mavlink_high_latency_t, heading) },
55 { "throttle", NULL, MAVLINK_TYPE_INT8_T, 0
, 28
, offsetof(mavlink_high_latency_t, throttle) },
56 { "heading_sp", NULL, MAVLINK_TYPE_INT16_T, 0
, 18
, offsetof(mavlink_high_latency_t, heading_sp) },
57 { "latitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 4
, offsetof(mavlink_high_latency_t, latitude) },
58 { "longitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_high_latency_t, longitude) },
59 { "altitude_amsl", NULL, MAVLINK_TYPE_INT16_T, 0
, 20
, offsetof(mavlink_high_latency_t, altitude_amsl) },
60 { "altitude_sp", NULL, MAVLINK_TYPE_INT16_T, 0
, 22
, offsetof(mavlink_high_latency_t, altitude_sp) },
61 { "airspeed", NULL, MAVLINK_TYPE_UINT8_T, 0
, 29
, offsetof(mavlink_high_latency_t, airspeed) },
62 { "airspeed_sp", NULL, MAVLINK_TYPE_UINT8_T, 0
, 30
, offsetof(mavlink_high_latency_t, airspeed_sp) },
63 { "groundspeed", NULL, MAVLINK_TYPE_UINT8_T, 0
, 31
, offsetof(mavlink_high_latency_t, groundspeed) },
64 { "climb_rate", NULL, MAVLINK_TYPE_INT8_T, 0
, 32
, offsetof(mavlink_high_latency_t, climb_rate) },
65 { "gps_nsat", NULL, MAVLINK_TYPE_UINT8_T, 0
, 33
, offsetof(mavlink_high_latency_t, gps_nsat) },
66 { "gps_fix_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 34
, offsetof(mavlink_high_latency_t, gps_fix_type) },
67 { "battery_remaining", NULL, MAVLINK_TYPE_UINT8_T, 0
, 35
, offsetof(mavlink_high_latency_t, battery_remaining) },
68 { "temperature", NULL, MAVLINK_TYPE_INT8_T, 0
, 36
, offsetof(mavlink_high_latency_t, temperature) },
69 { "temperature_air", NULL, MAVLINK_TYPE_INT8_T, 0
, 37
, offsetof(mavlink_high_latency_t, temperature_air) },
70 { "failsafe", NULL, MAVLINK_TYPE_UINT8_T, 0
, 38
, offsetof(mavlink_high_latency_t, failsafe) },
71 { "wp_num", NULL, MAVLINK_TYPE_UINT8_T, 0
, 39
, offsetof(mavlink_high_latency_t, wp_num) },
72 { "wp_distance", NULL, MAVLINK_TYPE_UINT16_T, 0
, 24
, offsetof(mavlink_high_latency_t, wp_distance) },
74}
76#define MAVLINK_MESSAGE_INFO_HIGH_LATENCY {
79 { { "base_mode", NULL, MAVLINK_TYPE_UINT8_T, 0
, 26
, offsetof(mavlink_high_latency_t, base_mode) },
80 { "custom_mode", NULL, MAVLINK_TYPE_UINT32_T, 0
, 0
, offsetof(mavlink_high_latency_t, custom_mode) },
81 { "landed_state", NULL, MAVLINK_TYPE_UINT8_T, 0
, 27
, offsetof(mavlink_high_latency_t, landed_state) },
82 { "roll", NULL, MAVLINK_TYPE_INT16_T, 0
, 12
, offsetof(mavlink_high_latency_t, roll) },
83 { "pitch", NULL, MAVLINK_TYPE_INT16_T, 0
, 14
, offsetof(mavlink_high_latency_t, pitch) },
84 { "heading", NULL, MAVLINK_TYPE_UINT16_T, 0
, 16
, offsetof(mavlink_high_latency_t, heading) },
85 { "throttle", NULL, MAVLINK_TYPE_INT8_T, 0
, 28
, offsetof(mavlink_high_latency_t, throttle) },
86 { "heading_sp", NULL, MAVLINK_TYPE_INT16_T, 0
, 18
, offsetof(mavlink_high_latency_t, heading_sp) },
87 { "latitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 4
, offsetof(mavlink_high_latency_t, latitude) },
88 { "longitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_high_latency_t, longitude) },
89 { "altitude_amsl", NULL, MAVLINK_TYPE_INT16_T, 0
, 20
, offsetof(mavlink_high_latency_t, altitude_amsl) },
90 { "altitude_sp", NULL, MAVLINK_TYPE_INT16_T, 0
, 22
, offsetof(mavlink_high_latency_t, altitude_sp) },
91 { "airspeed", NULL, MAVLINK_TYPE_UINT8_T, 0
, 29
, offsetof(mavlink_high_latency_t, airspeed) },
92 { "airspeed_sp", NULL, MAVLINK_TYPE_UINT8_T, 0
, 30
, offsetof(mavlink_high_latency_t, airspeed_sp) },
93 { "groundspeed", NULL, MAVLINK_TYPE_UINT8_T, 0
, 31
, offsetof(mavlink_high_latency_t, groundspeed) },
94 { "climb_rate", NULL, MAVLINK_TYPE_INT8_T, 0
, 32
, offsetof(mavlink_high_latency_t, climb_rate) },
95 { "gps_nsat", NULL, MAVLINK_TYPE_UINT8_T, 0
, 33
, offsetof(mavlink_high_latency_t, gps_nsat) },
96 { "gps_fix_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 34
, offsetof(mavlink_high_latency_t, gps_fix_type) },
97 { "battery_remaining", NULL, MAVLINK_TYPE_UINT8_T, 0
, 35
, offsetof(mavlink_high_latency_t, battery_remaining) },
98 { "temperature", NULL, MAVLINK_TYPE_INT8_T, 0
, 36
, offsetof(mavlink_high_latency_t, temperature) },
99 { "temperature_air", NULL, MAVLINK_TYPE_INT8_T, 0
, 37
, offsetof(mavlink_high_latency_t, temperature_air) },
100 { "failsafe", NULL, MAVLINK_TYPE_UINT8_T, 0
, 38
, offsetof(mavlink_high_latency_t, failsafe) },
101 { "wp_num", NULL, MAVLINK_TYPE_UINT8_T, 0
, 39
, offsetof(mavlink_high_latency_t, wp_num) },
102 { "wp_distance", NULL, MAVLINK_TYPE_UINT16_T, 0
, 24
, offsetof(mavlink_high_latency_t, wp_distance) },
104}
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139static inline uint16_t mavlink_msg_high_latency_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
140 uint8_t base_mode, uint32_t custom_mode, uint8_t landed_state, int16_t roll, int16_t pitch, uint16_t heading, int8_t throttle, int16_t heading_sp, int32_t latitude, int32_t longitude, int16_t altitude_amsl, int16_t altitude_sp, uint8_t airspeed, uint8_t airspeed_sp, uint8_t groundspeed, int8_t climb_rate, uint8_t gps_nsat, uint8_t gps_fix_type, uint8_t battery_remaining, int8_t temperature, int8_t temperature_air, uint8_t failsafe, uint8_t wp_num, uint16_t wp_distance)
142#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
144 _mav_put_uint32_t(buf, 0, custom_mode);
145 _mav_put_int32_t(buf, 4, latitude);
146 _mav_put_int32_t(buf, 8, longitude);
147 _mav_put_int16_t(buf, 12, roll);
148 _mav_put_int16_t(buf, 14, pitch);
149 _mav_put_uint16_t(buf, 16, heading);
150 _mav_put_int16_t(buf, 18, heading_sp);
151 _mav_put_int16_t(buf, 20, altitude_amsl);
152 _mav_put_int16_t(buf, 22, altitude_sp);
153 _mav_put_uint16_t(buf, 24, wp_distance);
154 _mav_put_uint8_t(buf, 26, base_mode);
155 _mav_put_uint8_t(buf, 27, landed_state);
156 _mav_put_int8_t(buf, 28, throttle);
157 _mav_put_uint8_t(buf, 29, airspeed);
158 _mav_put_uint8_t(buf, 30, airspeed_sp);
159 _mav_put_uint8_t(buf, 31, groundspeed);
160 _mav_put_int8_t(buf, 32, climb_rate);
161 _mav_put_uint8_t(buf, 33, gps_nsat);
162 _mav_put_uint8_t(buf, 34, gps_fix_type);
163 _mav_put_uint8_t(buf, 35, battery_remaining);
164 _mav_put_int8_t(buf, 36, temperature);
165 _mav_put_int8_t(buf, 37, temperature_air);
166 _mav_put_uint8_t(buf, 38, failsafe);
167 _mav_put_uint8_t(buf, 39, wp_num);
171 mavlink_high_latency_t packet;
172 packet.custom_mode = custom_mode;
173 packet.latitude = latitude;
174 packet.longitude = longitude;
176 packet.pitch = pitch;
177 packet.heading = heading;
178 packet.heading_sp = heading_sp;
179 packet.altitude_amsl = altitude_amsl;
180 packet.altitude_sp = altitude_sp;
181 packet.wp_distance = wp_distance;
182 packet.base_mode = base_mode;
183 packet.landed_state = landed_state;
184 packet.throttle = throttle;
185 packet.airspeed = airspeed;
186 packet.airspeed_sp = airspeed_sp;
187 packet.groundspeed = groundspeed;
188 packet.climb_rate = climb_rate;
189 packet.gps_nsat = gps_nsat;
190 packet.gps_fix_type = gps_fix_type;
191 packet.battery_remaining = battery_remaining;
192 packet.temperature = temperature;
193 packet.temperature_air = temperature_air;
194 packet.failsafe = failsafe;
195 packet.wp_num = wp_num;
197 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_HIGH_LATENCY_LEN);
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237static inline uint16_t mavlink_msg_high_latency_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
238 uint8_t base_mode, uint32_t custom_mode, uint8_t landed_state, int16_t roll, int16_t pitch, uint16_t heading, int8_t throttle, int16_t heading_sp, int32_t latitude, int32_t longitude, int16_t altitude_amsl, int16_t altitude_sp, uint8_t airspeed, uint8_t airspeed_sp, uint8_t groundspeed, int8_t climb_rate, uint8_t gps_nsat, uint8_t gps_fix_type, uint8_t battery_remaining, int8_t temperature, int8_t temperature_air, uint8_t failsafe, uint8_t wp_num, uint16_t wp_distance)
240#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
242 _mav_put_uint32_t(buf, 0, custom_mode);
243 _mav_put_int32_t(buf, 4, latitude);
244 _mav_put_int32_t(buf, 8, longitude);
245 _mav_put_int16_t(buf, 12, roll);
246 _mav_put_int16_t(buf, 14, pitch);
247 _mav_put_uint16_t(buf, 16, heading);
248 _mav_put_int16_t(buf, 18, heading_sp);
249 _mav_put_int16_t(buf, 20, altitude_amsl);
250 _mav_put_int16_t(buf, 22, altitude_sp);
251 _mav_put_uint16_t(buf, 24, wp_distance);
252 _mav_put_uint8_t(buf, 26, base_mode);
253 _mav_put_uint8_t(buf, 27, landed_state);
254 _mav_put_int8_t(buf, 28, throttle);
255 _mav_put_uint8_t(buf, 29, airspeed);
256 _mav_put_uint8_t(buf, 30, airspeed_sp);
257 _mav_put_uint8_t(buf, 31, groundspeed);
258 _mav_put_int8_t(buf, 32, climb_rate);
259 _mav_put_uint8_t(buf, 33, gps_nsat);
260 _mav_put_uint8_t(buf, 34, gps_fix_type);
261 _mav_put_uint8_t(buf, 35, battery_remaining);
262 _mav_put_int8_t(buf, 36, temperature);
263 _mav_put_int8_t(buf, 37, temperature_air);
264 _mav_put_uint8_t(buf, 38, failsafe);
265 _mav_put_uint8_t(buf, 39, wp_num);
269 mavlink_high_latency_t packet;
270 packet.custom_mode = custom_mode;
271 packet.latitude = latitude;
272 packet.longitude = longitude;
274 packet.pitch = pitch;
275 packet.heading = heading;
276 packet.heading_sp = heading_sp;
277 packet.altitude_amsl = altitude_amsl;
278 packet.altitude_sp = altitude_sp;
279 packet.wp_distance = wp_distance;
280 packet.base_mode = base_mode;
281 packet.landed_state = landed_state;
282 packet.throttle = throttle;
283 packet.airspeed = airspeed;
284 packet.airspeed_sp = airspeed_sp;
285 packet.groundspeed = groundspeed;
286 packet.climb_rate = climb_rate;
287 packet.gps_nsat = gps_nsat;
288 packet.gps_fix_type = gps_fix_type;
289 packet.battery_remaining = battery_remaining;
290 packet.temperature = temperature;
291 packet.temperature_air = temperature_air;
292 packet.failsafe = failsafe;
293 packet.wp_num = wp_num;
295 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_HIGH_LATENCY_LEN);
300 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_HIGH_LATENCY_MIN_LEN, MAVLINK_MSG_ID_HIGH_LATENCY_LEN, MAVLINK_MSG_ID_HIGH_LATENCY_CRC);
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338static inline uint16_t mavlink_msg_high_latency_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
339 mavlink_message_t* msg,
340 uint8_t base_mode,uint32_t custom_mode,uint8_t landed_state,int16_t roll,int16_t pitch,uint16_t heading,int8_t throttle,int16_t heading_sp,int32_t latitude,int32_t longitude,int16_t altitude_amsl,int16_t altitude_sp,uint8_t airspeed,uint8_t airspeed_sp,uint8_t groundspeed,int8_t climb_rate,uint8_t gps_nsat,uint8_t gps_fix_type,uint8_t battery_remaining,int8_t temperature,int8_t temperature_air,uint8_t failsafe,uint8_t wp_num,uint16_t wp_distance)
342#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
344 _mav_put_uint32_t(buf, 0, custom_mode);
345 _mav_put_int32_t(buf, 4, latitude);
346 _mav_put_int32_t(buf, 8, longitude);
347 _mav_put_int16_t(buf, 12, roll);
348 _mav_put_int16_t(buf, 14, pitch);
349 _mav_put_uint16_t(buf, 16, heading);
350 _mav_put_int16_t(buf, 18, heading_sp);
351 _mav_put_int16_t(buf, 20, altitude_amsl);
352 _mav_put_int16_t(buf, 22, altitude_sp);
353 _mav_put_uint16_t(buf, 24, wp_distance);
354 _mav_put_uint8_t(buf, 26, base_mode);
355 _mav_put_uint8_t(buf, 27, landed_state);
356 _mav_put_int8_t(buf, 28, throttle);
357 _mav_put_uint8_t(buf, 29, airspeed);
358 _mav_put_uint8_t(buf, 30, airspeed_sp);
359 _mav_put_uint8_t(buf, 31, groundspeed);
360 _mav_put_int8_t(buf, 32, climb_rate);
361 _mav_put_uint8_t(buf, 33, gps_nsat);
362 _mav_put_uint8_t(buf, 34, gps_fix_type);
363 _mav_put_uint8_t(buf, 35, battery_remaining);
364 _mav_put_int8_t(buf, 36, temperature);
365 _mav_put_int8_t(buf, 37, temperature_air);
366 _mav_put_uint8_t(buf, 38, failsafe);
367 _mav_put_uint8_t(buf, 39, wp_num);
371 mavlink_high_latency_t packet;
372 packet.custom_mode = custom_mode;
373 packet.latitude = latitude;
374 packet.longitude = longitude;
376 packet.pitch = pitch;
377 packet.heading = heading;
378 packet.heading_sp = heading_sp;
379 packet.altitude_amsl = altitude_amsl;
380 packet.altitude_sp = altitude_sp;
381 packet.wp_distance = wp_distance;
382 packet.base_mode = base_mode;
383 packet.landed_state = landed_state;
384 packet.throttle = throttle;
385 packet.airspeed = airspeed;
386 packet.airspeed_sp = airspeed_sp;
387 packet.groundspeed = groundspeed;
388 packet.climb_rate = climb_rate;
389 packet.gps_nsat = gps_nsat;
390 packet.gps_fix_type = gps_fix_type;
391 packet.battery_remaining = battery_remaining;
392 packet.temperature = temperature;
393 packet.temperature_air = temperature_air;
394 packet.failsafe = failsafe;
395 packet.wp_num = wp_num;
397 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_HIGH_LATENCY_LEN);
405
406
407
408
409
410
411
412static inline uint16_t mavlink_msg_high_latency_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_high_latency_t* high_latency)
414 return mavlink_msg_high_latency_pack(system_id, component_id, msg, high_latency->base_mode, high_latency->custom_mode, high_latency->landed_state, high_latency->roll, high_latency->pitch, high_latency->heading, high_latency->throttle, high_latency->heading_sp, high_latency->latitude, high_latency->longitude, high_latency->altitude_amsl, high_latency->altitude_sp, high_latency->airspeed, high_latency->airspeed_sp, high_latency->groundspeed, high_latency->climb_rate, high_latency->gps_nsat, high_latency->gps_fix_type, high_latency->battery_remaining, high_latency->temperature, high_latency->temperature_air, high_latency->failsafe, high_latency->wp_num, high_latency->wp_distance);
418
419
420
421
422
423
424
425
426static inline uint16_t mavlink_msg_high_latency_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_high_latency_t* high_latency)
428 return mavlink_msg_high_latency_pack_chan(system_id, component_id, chan, msg, high_latency->base_mode, high_latency->custom_mode, high_latency->landed_state, high_latency->roll, high_latency->pitch, high_latency->heading, high_latency->throttle, high_latency->heading_sp, high_latency->latitude, high_latency->longitude, high_latency->altitude_amsl, high_latency->altitude_sp, high_latency->airspeed, high_latency->airspeed_sp, high_latency->groundspeed, high_latency->climb_rate, high_latency->gps_nsat, high_latency->gps_fix_type, high_latency->battery_remaining, high_latency->temperature, high_latency->temperature_air, high_latency->failsafe, high_latency->wp_num, high_latency->wp_distance);
432
433
434
435
436
437
438
439
440static inline uint16_t mavlink_msg_high_latency_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_high_latency_t* high_latency)
442 return mavlink_msg_high_latency_pack_status(system_id, component_id, _status, msg, high_latency->base_mode, high_latency->custom_mode, high_latency->landed_state, high_latency->roll, high_latency->pitch, high_latency->heading, high_latency->throttle, high_latency->heading_sp, high_latency->latitude, high_latency->longitude, high_latency->altitude_amsl, high_latency->altitude_sp, high_latency->airspeed, high_latency->airspeed_sp, high_latency->groundspeed, high_latency->climb_rate, high_latency->gps_nsat, high_latency->gps_fix_type, high_latency->battery_remaining, high_latency->temperature, high_latency->temperature_air, high_latency->failsafe, high_latency->wp_num, high_latency->wp_distance);
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
476static inline void mavlink_msg_high_latency_send(mavlink_channel_t chan, uint8_t base_mode, uint32_t custom_mode, uint8_t landed_state, int16_t roll, int16_t pitch, uint16_t heading, int8_t throttle, int16_t heading_sp, int32_t latitude, int32_t longitude, int16_t altitude_amsl, int16_t altitude_sp, uint8_t airspeed, uint8_t airspeed_sp, uint8_t groundspeed, int8_t climb_rate, uint8_t gps_nsat, uint8_t gps_fix_type, uint8_t battery_remaining, int8_t temperature, int8_t temperature_air, uint8_t failsafe, uint8_t wp_num, uint16_t wp_distance)
478#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
479 char buf[MAVLINK_MSG_ID_HIGH_LATENCY_LEN];
480 _mav_put_uint32_t(buf, 0, custom_mode);
481 _mav_put_int32_t(buf, 4, latitude);
482 _mav_put_int32_t(buf, 8, longitude);
483 _mav_put_int16_t(buf, 12, roll);
484 _mav_put_int16_t(buf, 14, pitch);
485 _mav_put_uint16_t(buf, 16, heading);
486 _mav_put_int16_t(buf, 18, heading_sp);
487 _mav_put_int16_t(buf, 20, altitude_amsl);
488 _mav_put_int16_t(buf, 22, altitude_sp);
489 _mav_put_uint16_t(buf, 24, wp_distance);
490 _mav_put_uint8_t(buf, 26, base_mode);
491 _mav_put_uint8_t(buf, 27, landed_state);
492 _mav_put_int8_t(buf, 28, throttle);
493 _mav_put_uint8_t(buf, 29, airspeed);
494 _mav_put_uint8_t(buf, 30, airspeed_sp);
495 _mav_put_uint8_t(buf, 31, groundspeed);
496 _mav_put_int8_t(buf, 32, climb_rate);
497 _mav_put_uint8_t(buf, 33, gps_nsat);
498 _mav_put_uint8_t(buf, 34, gps_fix_type);
499 _mav_put_uint8_t(buf, 35, battery_remaining);
500 _mav_put_int8_t(buf, 36, temperature);
501 _mav_put_int8_t(buf, 37, temperature_air);
502 _mav_put_uint8_t(buf, 38, failsafe);
503 _mav_put_uint8_t(buf, 39, wp_num);
505 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIGH_LATENCY, buf, MAVLINK_MSG_ID_HIGH_LATENCY_MIN_LEN, MAVLINK_MSG_ID_HIGH_LATENCY_LEN, MAVLINK_MSG_ID_HIGH_LATENCY_CRC);
507 mavlink_high_latency_t packet;
508 packet.custom_mode = custom_mode;
509 packet.latitude = latitude;
510 packet.longitude = longitude;
512 packet.pitch = pitch;
513 packet.heading = heading;
514 packet.heading_sp = heading_sp;
515 packet.altitude_amsl = altitude_amsl;
516 packet.altitude_sp = altitude_sp;
517 packet.wp_distance = wp_distance;
518 packet.base_mode = base_mode;
519 packet.landed_state = landed_state;
520 packet.throttle = throttle;
521 packet.airspeed = airspeed;
522 packet.airspeed_sp = airspeed_sp;
523 packet.groundspeed = groundspeed;
524 packet.climb_rate = climb_rate;
525 packet.gps_nsat = gps_nsat;
526 packet.gps_fix_type = gps_fix_type;
527 packet.battery_remaining = battery_remaining;
528 packet.temperature = temperature;
529 packet.temperature_air = temperature_air;
530 packet.failsafe = failsafe;
531 packet.wp_num = wp_num;
533 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIGH_LATENCY, (
const char *)&packet, MAVLINK_MSG_ID_HIGH_LATENCY_MIN_LEN, MAVLINK_MSG_ID_HIGH_LATENCY_LEN, MAVLINK_MSG_ID_HIGH_LATENCY_CRC);
538
539
540
541
542static inline void mavlink_msg_high_latency_send_struct(mavlink_channel_t chan,
const mavlink_high_latency_t* high_latency)
544#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
545 mavlink_msg_high_latency_send(chan, high_latency->base_mode, high_latency->custom_mode, high_latency->landed_state, high_latency->roll, high_latency->pitch, high_latency->heading, high_latency->throttle, high_latency->heading_sp, high_latency->latitude, high_latency->longitude, high_latency->altitude_amsl, high_latency->altitude_sp, high_latency->airspeed, high_latency->airspeed_sp, high_latency->groundspeed, high_latency->climb_rate, high_latency->gps_nsat, high_latency->gps_fix_type, high_latency->battery_remaining, high_latency->temperature, high_latency->temperature_air, high_latency->failsafe, high_latency->wp_num, high_latency->wp_distance);
547 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIGH_LATENCY, (
const char *)high_latency, MAVLINK_MSG_ID_HIGH_LATENCY_MIN_LEN, MAVLINK_MSG_ID_HIGH_LATENCY_LEN, MAVLINK_MSG_ID_HIGH_LATENCY_CRC);
551#if MAVLINK_MSG_ID_HIGH_LATENCY_LEN <= MAVLINK_MAX_PAYLOAD_LEN
553
554
555
556
557
558
559static inline void mavlink_msg_high_latency_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t base_mode, uint32_t custom_mode, uint8_t landed_state, int16_t roll, int16_t pitch, uint16_t heading, int8_t throttle, int16_t heading_sp, int32_t latitude, int32_t longitude, int16_t altitude_amsl, int16_t altitude_sp, uint8_t airspeed, uint8_t airspeed_sp, uint8_t groundspeed, int8_t climb_rate, uint8_t gps_nsat, uint8_t gps_fix_type, uint8_t battery_remaining, int8_t temperature, int8_t temperature_air, uint8_t failsafe, uint8_t wp_num, uint16_t wp_distance)
561#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
562 char *buf = (
char *)msgbuf;
563 _mav_put_uint32_t(buf, 0, custom_mode);
564 _mav_put_int32_t(buf, 4, latitude);
565 _mav_put_int32_t(buf, 8, longitude);
566 _mav_put_int16_t(buf, 12, roll);
567 _mav_put_int16_t(buf, 14, pitch);
568 _mav_put_uint16_t(buf, 16, heading);
569 _mav_put_int16_t(buf, 18, heading_sp);
570 _mav_put_int16_t(buf, 20, altitude_amsl);
571 _mav_put_int16_t(buf, 22, altitude_sp);
572 _mav_put_uint16_t(buf, 24, wp_distance);
573 _mav_put_uint8_t(buf, 26, base_mode);
574 _mav_put_uint8_t(buf, 27, landed_state);
575 _mav_put_int8_t(buf, 28, throttle);
576 _mav_put_uint8_t(buf, 29, airspeed);
577 _mav_put_uint8_t(buf, 30, airspeed_sp);
578 _mav_put_uint8_t(buf, 31, groundspeed);
579 _mav_put_int8_t(buf, 32, climb_rate);
580 _mav_put_uint8_t(buf, 33, gps_nsat);
581 _mav_put_uint8_t(buf, 34, gps_fix_type);
582 _mav_put_uint8_t(buf, 35, battery_remaining);
583 _mav_put_int8_t(buf, 36, temperature);
584 _mav_put_int8_t(buf, 37, temperature_air);
585 _mav_put_uint8_t(buf, 38, failsafe);
586 _mav_put_uint8_t(buf, 39, wp_num);
588 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIGH_LATENCY, buf, MAVLINK_MSG_ID_HIGH_LATENCY_MIN_LEN, MAVLINK_MSG_ID_HIGH_LATENCY_LEN, MAVLINK_MSG_ID_HIGH_LATENCY_CRC);
590 mavlink_high_latency_t *packet = (mavlink_high_latency_t *)msgbuf;
591 packet->custom_mode = custom_mode;
592 packet->latitude = latitude;
593 packet->longitude = longitude;
595 packet->pitch = pitch;
596 packet->heading = heading;
597 packet->heading_sp = heading_sp;
598 packet->altitude_amsl = altitude_amsl;
599 packet->altitude_sp = altitude_sp;
600 packet->wp_distance = wp_distance;
601 packet->base_mode = base_mode;
602 packet->landed_state = landed_state;
603 packet->throttle = throttle;
604 packet->airspeed = airspeed;
605 packet->airspeed_sp = airspeed_sp;
606 packet->groundspeed = groundspeed;
607 packet->climb_rate = climb_rate;
608 packet->gps_nsat = gps_nsat;
609 packet->gps_fix_type = gps_fix_type;
610 packet->battery_remaining = battery_remaining;
611 packet->temperature = temperature;
612 packet->temperature_air = temperature_air;
613 packet->failsafe = failsafe;
614 packet->wp_num = wp_num;
616 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIGH_LATENCY, (
const char *)packet, MAVLINK_MSG_ID_HIGH_LATENCY_MIN_LEN, MAVLINK_MSG_ID_HIGH_LATENCY_LEN, MAVLINK_MSG_ID_HIGH_LATENCY_CRC);
627
628
629
630
631static inline uint8_t mavlink_msg_high_latency_get_base_mode(
const mavlink_message_t* msg)
633 return _MAV_RETURN_uint8_t(msg, 26);
637
638
639
640
641static inline uint32_t mavlink_msg_high_latency_get_custom_mode(
const mavlink_message_t* msg)
643 return _MAV_RETURN_uint32_t(msg, 0);
647
648
649
650
651static inline uint8_t mavlink_msg_high_latency_get_landed_state(
const mavlink_message_t* msg)
653 return _MAV_RETURN_uint8_t(msg, 27);
657
658
659
660
661static inline int16_t mavlink_msg_high_latency_get_roll(
const mavlink_message_t* msg)
663 return _MAV_RETURN_int16_t(msg, 12);
667
668
669
670
671static inline int16_t mavlink_msg_high_latency_get_pitch(
const mavlink_message_t* msg)
673 return _MAV_RETURN_int16_t(msg, 14);
677
678
679
680
681static inline uint16_t mavlink_msg_high_latency_get_heading(
const mavlink_message_t* msg)
683 return _MAV_RETURN_uint16_t(msg, 16);
687
688
689
690
691static inline int8_t mavlink_msg_high_latency_get_throttle(
const mavlink_message_t* msg)
693 return _MAV_RETURN_int8_t(msg, 28);
697
698
699
700
701static inline int16_t mavlink_msg_high_latency_get_heading_sp(
const mavlink_message_t* msg)
703 return _MAV_RETURN_int16_t(msg, 18);
707
708
709
710
711static inline int32_t mavlink_msg_high_latency_get_latitude(
const mavlink_message_t* msg)
713 return _MAV_RETURN_int32_t(msg, 4);
717
718
719
720
721static inline int32_t mavlink_msg_high_latency_get_longitude(
const mavlink_message_t* msg)
723 return _MAV_RETURN_int32_t(msg, 8);
727
728
729
730
731static inline int16_t mavlink_msg_high_latency_get_altitude_amsl(
const mavlink_message_t* msg)
733 return _MAV_RETURN_int16_t(msg, 20);
737
738
739
740
741static inline int16_t mavlink_msg_high_latency_get_altitude_sp(
const mavlink_message_t* msg)
743 return _MAV_RETURN_int16_t(msg, 22);
747
748
749
750
751static inline uint8_t mavlink_msg_high_latency_get_airspeed(
const mavlink_message_t* msg)
753 return _MAV_RETURN_uint8_t(msg, 29);
757
758
759
760
761static inline uint8_t mavlink_msg_high_latency_get_airspeed_sp(
const mavlink_message_t* msg)
763 return _MAV_RETURN_uint8_t(msg, 30);
767
768
769
770
771static inline uint8_t mavlink_msg_high_latency_get_groundspeed(
const mavlink_message_t* msg)
773 return _MAV_RETURN_uint8_t(msg, 31);
777
778
779
780
781static inline int8_t mavlink_msg_high_latency_get_climb_rate(
const mavlink_message_t* msg)
783 return _MAV_RETURN_int8_t(msg, 32);
787
788
789
790
791static inline uint8_t mavlink_msg_high_latency_get_gps_nsat(
const mavlink_message_t* msg)
793 return _MAV_RETURN_uint8_t(msg, 33);
797
798
799
800
801static inline uint8_t mavlink_msg_high_latency_get_gps_fix_type(
const mavlink_message_t* msg)
803 return _MAV_RETURN_uint8_t(msg, 34);
807
808
809
810
811static inline uint8_t mavlink_msg_high_latency_get_battery_remaining(
const mavlink_message_t* msg)
813 return _MAV_RETURN_uint8_t(msg, 35);
817
818
819
820
821static inline int8_t mavlink_msg_high_latency_get_temperature(
const mavlink_message_t* msg)
823 return _MAV_RETURN_int8_t(msg, 36);
827
828
829
830
831static inline int8_t mavlink_msg_high_latency_get_temperature_air(
const mavlink_message_t* msg)
833 return _MAV_RETURN_int8_t(msg, 37);
837
838
839
840
841static inline uint8_t mavlink_msg_high_latency_get_failsafe(
const mavlink_message_t* msg)
843 return _MAV_RETURN_uint8_t(msg, 38);
847
848
849
850
851static inline uint8_t mavlink_msg_high_latency_get_wp_num(
const mavlink_message_t* msg)
853 return _MAV_RETURN_uint8_t(msg, 39);
857
858
859
860
861static inline uint16_t mavlink_msg_high_latency_get_wp_distance(
const mavlink_message_t* msg)
863 return _MAV_RETURN_uint16_t(msg, 24);
867
868
869
870
871
872static inline void mavlink_msg_high_latency_decode(
const mavlink_message_t* msg, mavlink_high_latency_t* high_latency)
874#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
875 high_latency->custom_mode = mavlink_msg_high_latency_get_custom_mode(msg);
876 high_latency->latitude = mavlink_msg_high_latency_get_latitude(msg);
877 high_latency->longitude = mavlink_msg_high_latency_get_longitude(msg);
878 high_latency->roll = mavlink_msg_high_latency_get_roll(msg);
879 high_latency->pitch = mavlink_msg_high_latency_get_pitch(msg);
880 high_latency->heading = mavlink_msg_high_latency_get_heading(msg);
881 high_latency->heading_sp = mavlink_msg_high_latency_get_heading_sp(msg);
882 high_latency->altitude_amsl = mavlink_msg_high_latency_get_altitude_amsl(msg);
883 high_latency->altitude_sp = mavlink_msg_high_latency_get_altitude_sp(msg);
884 high_latency->wp_distance = mavlink_msg_high_latency_get_wp_distance(msg);
885 high_latency->base_mode = mavlink_msg_high_latency_get_base_mode(msg);
886 high_latency->landed_state = mavlink_msg_high_latency_get_landed_state(msg);
887 high_latency->throttle = mavlink_msg_high_latency_get_throttle(msg);
888 high_latency->airspeed = mavlink_msg_high_latency_get_airspeed(msg);
889 high_latency->airspeed_sp = mavlink_msg_high_latency_get_airspeed_sp(msg);
890 high_latency->groundspeed = mavlink_msg_high_latency_get_groundspeed(msg);
891 high_latency->climb_rate = mavlink_msg_high_latency_get_climb_rate(msg);
892 high_latency->gps_nsat = mavlink_msg_high_latency_get_gps_nsat(msg);
893 high_latency->gps_fix_type = mavlink_msg_high_latency_get_gps_fix_type(msg);
894 high_latency->battery_remaining = mavlink_msg_high_latency_get_battery_remaining(msg);
895 high_latency->temperature = mavlink_msg_high_latency_get_temperature(msg);
896 high_latency->temperature_air = mavlink_msg_high_latency_get_temperature_air(msg);
897 high_latency->failsafe = mavlink_msg_high_latency_get_failsafe(msg);
898 high_latency->wp_num = mavlink_msg_high_latency_get_wp_num(msg);
900 uint8_t len = msg->len < MAVLINK_MSG_ID_HIGH_LATENCY_LEN? msg->len : MAVLINK_MSG_ID_HIGH_LATENCY_LEN;
901 memset(high_latency, 0, MAVLINK_MSG_ID_HIGH_LATENCY_LEN);
902 memcpy(high_latency, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_HIGH_LATENCY
Definition: mavlink_msg_high_latency.h:4
#define MAVLINK_MSG_ID_HIGH_LATENCY_CRC
Definition: mavlink_msg_high_latency.h:39
#define MAVLINK_MSG_ID_HIGH_LATENCY_MIN_LEN
Definition: mavlink_msg_high_latency.h:35
#define MAVLINK_MSG_ID_HIGH_LATENCY_LEN
Definition: mavlink_msg_high_latency.h:34
Definition: mavlink_msg_high_latency.h:7
int8_t throttle
Definition: mavlink_msg_high_latency.h:20
int8_t climb_rate
Definition: mavlink_msg_high_latency.h:24
uint8_t base_mode
Definition: mavlink_msg_high_latency.h:18
int8_t temperature_air
Definition: mavlink_msg_high_latency.h:29
uint16_t heading
Definition: mavlink_msg_high_latency.h:13
uint32_t custom_mode
Definition: mavlink_msg_high_latency.h:8
int8_t temperature
Definition: mavlink_msg_high_latency.h:28
uint8_t battery_remaining
Definition: mavlink_msg_high_latency.h:27
uint8_t gps_fix_type
Definition: mavlink_msg_high_latency.h:26
int16_t heading_sp
Definition: mavlink_msg_high_latency.h:14
uint8_t gps_nsat
Definition: mavlink_msg_high_latency.h:25
int16_t pitch
Definition: mavlink_msg_high_latency.h:12
uint8_t airspeed_sp
Definition: mavlink_msg_high_latency.h:22
uint8_t airspeed
Definition: mavlink_msg_high_latency.h:21
uint8_t wp_num
Definition: mavlink_msg_high_latency.h:31
uint16_t wp_distance
Definition: mavlink_msg_high_latency.h:17
uint8_t landed_state
Definition: mavlink_msg_high_latency.h:19
int16_t roll
Definition: mavlink_msg_high_latency.h:11
int16_t altitude_amsl
Definition: mavlink_msg_high_latency.h:15
int16_t altitude_sp
Definition: mavlink_msg_high_latency.h:16
int32_t latitude
Definition: mavlink_msg_high_latency.h:9
uint8_t groundspeed
Definition: mavlink_msg_high_latency.h:23
uint8_t failsafe
Definition: mavlink_msg_high_latency.h:30
int32_t longitude
Definition: mavlink_msg_high_latency.h:10