4#define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW 114
20} mavlink_hil_optical_flow_t;
22#define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN 44
23#define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_MIN_LEN 44
24#define MAVLINK_MSG_ID_114_LEN 44
25#define MAVLINK_MSG_ID_114_MIN_LEN 44
27#define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_CRC 237
28#define MAVLINK_MSG_ID_114_CRC 237
32#if MAVLINK_COMMAND_24BIT
33#define MAVLINK_MESSAGE_INFO_HIL_OPTICAL_FLOW {
37 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_hil_optical_flow_t, time_usec) },
38 { "sensor_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 42
, offsetof(mavlink_hil_optical_flow_t, sensor_id) },
39 { "integration_time_us", NULL, MAVLINK_TYPE_UINT32_T, 0
, 8
, offsetof(mavlink_hil_optical_flow_t, integration_time_us) },
40 { "integrated_x", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_hil_optical_flow_t, integrated_x) },
41 { "integrated_y", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_hil_optical_flow_t, integrated_y) },
42 { "integrated_xgyro", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_hil_optical_flow_t, integrated_xgyro) },
43 { "integrated_ygyro", NULL, MAVLINK_TYPE_FLOAT, 0
, 24
, offsetof(mavlink_hil_optical_flow_t, integrated_ygyro) },
44 { "integrated_zgyro", NULL, MAVLINK_TYPE_FLOAT, 0
, 28
, offsetof(mavlink_hil_optical_flow_t, integrated_zgyro) },
45 { "temperature", NULL, MAVLINK_TYPE_INT16_T, 0
, 40
, offsetof(mavlink_hil_optical_flow_t, temperature) },
46 { "quality", NULL, MAVLINK_TYPE_UINT8_T, 0
, 43
, offsetof(mavlink_hil_optical_flow_t, quality) },
47 { "time_delta_distance_us", NULL, MAVLINK_TYPE_UINT32_T, 0
, 32
, offsetof(mavlink_hil_optical_flow_t, time_delta_distance_us) },
48 { "distance", NULL, MAVLINK_TYPE_FLOAT, 0
, 36
, offsetof(mavlink_hil_optical_flow_t, distance) },
50}
52#define MAVLINK_MESSAGE_INFO_HIL_OPTICAL_FLOW {
55 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_hil_optical_flow_t, time_usec) },
56 { "sensor_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 42
, offsetof(mavlink_hil_optical_flow_t, sensor_id) },
57 { "integration_time_us", NULL, MAVLINK_TYPE_UINT32_T, 0
, 8
, offsetof(mavlink_hil_optical_flow_t, integration_time_us) },
58 { "integrated_x", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_hil_optical_flow_t, integrated_x) },
59 { "integrated_y", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_hil_optical_flow_t, integrated_y) },
60 { "integrated_xgyro", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_hil_optical_flow_t, integrated_xgyro) },
61 { "integrated_ygyro", NULL, MAVLINK_TYPE_FLOAT, 0
, 24
, offsetof(mavlink_hil_optical_flow_t, integrated_ygyro) },
62 { "integrated_zgyro", NULL, MAVLINK_TYPE_FLOAT, 0
, 28
, offsetof(mavlink_hil_optical_flow_t, integrated_zgyro) },
63 { "temperature", NULL, MAVLINK_TYPE_INT16_T, 0
, 40
, offsetof(mavlink_hil_optical_flow_t, temperature) },
64 { "quality", NULL, MAVLINK_TYPE_UINT8_T, 0
, 43
, offsetof(mavlink_hil_optical_flow_t, quality) },
65 { "time_delta_distance_us", NULL, MAVLINK_TYPE_UINT32_T, 0
, 32
, offsetof(mavlink_hil_optical_flow_t, time_delta_distance_us) },
66 { "distance", NULL, MAVLINK_TYPE_FLOAT, 0
, 36
, offsetof(mavlink_hil_optical_flow_t, distance) },
68}
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91static inline uint16_t mavlink_msg_hil_optical_flow_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
92 uint64_t time_usec, uint8_t sensor_id, uint32_t integration_time_us,
float integrated_x,
float integrated_y,
float integrated_xgyro,
float integrated_ygyro,
float integrated_zgyro, int16_t temperature, uint8_t quality, uint32_t time_delta_distance_us,
float distance)
94#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
96 _mav_put_uint64_t(buf, 0, time_usec);
97 _mav_put_uint32_t(buf, 8, integration_time_us);
98 _mav_put_float(buf, 12, integrated_x);
99 _mav_put_float(buf, 16, integrated_y);
100 _mav_put_float(buf, 20, integrated_xgyro);
101 _mav_put_float(buf, 24, integrated_ygyro);
102 _mav_put_float(buf, 28, integrated_zgyro);
103 _mav_put_uint32_t(buf, 32, time_delta_distance_us);
104 _mav_put_float(buf, 36, distance);
105 _mav_put_int16_t(buf, 40, temperature);
106 _mav_put_uint8_t(buf, 42, sensor_id);
107 _mav_put_uint8_t(buf, 43, quality);
111 mavlink_hil_optical_flow_t packet;
112 packet.time_usec = time_usec;
113 packet.integration_time_us = integration_time_us;
114 packet.integrated_x = integrated_x;
115 packet.integrated_y = integrated_y;
116 packet.integrated_xgyro = integrated_xgyro;
117 packet.integrated_ygyro = integrated_ygyro;
118 packet.integrated_zgyro = integrated_zgyro;
119 packet.time_delta_distance_us = time_delta_distance_us;
120 packet.distance = distance;
121 packet.temperature = temperature;
122 packet.sensor_id = sensor_id;
123 packet.quality = quality;
125 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN);
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153static inline uint16_t mavlink_msg_hil_optical_flow_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
154 uint64_t time_usec, uint8_t sensor_id, uint32_t integration_time_us,
float integrated_x,
float integrated_y,
float integrated_xgyro,
float integrated_ygyro,
float integrated_zgyro, int16_t temperature, uint8_t quality, uint32_t time_delta_distance_us,
float distance)
156#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
158 _mav_put_uint64_t(buf, 0, time_usec);
159 _mav_put_uint32_t(buf, 8, integration_time_us);
160 _mav_put_float(buf, 12, integrated_x);
161 _mav_put_float(buf, 16, integrated_y);
162 _mav_put_float(buf, 20, integrated_xgyro);
163 _mav_put_float(buf, 24, integrated_ygyro);
164 _mav_put_float(buf, 28, integrated_zgyro);
165 _mav_put_uint32_t(buf, 32, time_delta_distance_us);
166 _mav_put_float(buf, 36, distance);
167 _mav_put_int16_t(buf, 40, temperature);
168 _mav_put_uint8_t(buf, 42, sensor_id);
169 _mav_put_uint8_t(buf, 43, quality);
173 mavlink_hil_optical_flow_t packet;
174 packet.time_usec = time_usec;
175 packet.integration_time_us = integration_time_us;
176 packet.integrated_x = integrated_x;
177 packet.integrated_y = integrated_y;
178 packet.integrated_xgyro = integrated_xgyro;
179 packet.integrated_ygyro = integrated_ygyro;
180 packet.integrated_zgyro = integrated_zgyro;
181 packet.time_delta_distance_us = time_delta_distance_us;
182 packet.distance = distance;
183 packet.temperature = temperature;
184 packet.sensor_id = sensor_id;
185 packet.quality = quality;
187 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN);
192 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_MIN_LEN, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_CRC);
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218static inline uint16_t mavlink_msg_hil_optical_flow_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
219 mavlink_message_t* msg,
220 uint64_t time_usec,uint8_t sensor_id,uint32_t integration_time_us,
float integrated_x,
float integrated_y,
float integrated_xgyro,
float integrated_ygyro,
float integrated_zgyro,int16_t temperature,uint8_t quality,uint32_t time_delta_distance_us,
float distance)
222#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
224 _mav_put_uint64_t(buf, 0, time_usec);
225 _mav_put_uint32_t(buf, 8, integration_time_us);
226 _mav_put_float(buf, 12, integrated_x);
227 _mav_put_float(buf, 16, integrated_y);
228 _mav_put_float(buf, 20, integrated_xgyro);
229 _mav_put_float(buf, 24, integrated_ygyro);
230 _mav_put_float(buf, 28, integrated_zgyro);
231 _mav_put_uint32_t(buf, 32, time_delta_distance_us);
232 _mav_put_float(buf, 36, distance);
233 _mav_put_int16_t(buf, 40, temperature);
234 _mav_put_uint8_t(buf, 42, sensor_id);
235 _mav_put_uint8_t(buf, 43, quality);
239 mavlink_hil_optical_flow_t packet;
240 packet.time_usec = time_usec;
241 packet.integration_time_us = integration_time_us;
242 packet.integrated_x = integrated_x;
243 packet.integrated_y = integrated_y;
244 packet.integrated_xgyro = integrated_xgyro;
245 packet.integrated_ygyro = integrated_ygyro;
246 packet.integrated_zgyro = integrated_zgyro;
247 packet.time_delta_distance_us = time_delta_distance_us;
248 packet.distance = distance;
249 packet.temperature = temperature;
250 packet.sensor_id = sensor_id;
251 packet.quality = quality;
253 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN);
261
262
263
264
265
266
267
268static inline uint16_t mavlink_msg_hil_optical_flow_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_hil_optical_flow_t* hil_optical_flow)
270 return mavlink_msg_hil_optical_flow_pack(system_id, component_id, msg, hil_optical_flow->time_usec, hil_optical_flow->sensor_id, hil_optical_flow->integration_time_us, hil_optical_flow->integrated_x, hil_optical_flow->integrated_y, hil_optical_flow->integrated_xgyro, hil_optical_flow->integrated_ygyro, hil_optical_flow->integrated_zgyro, hil_optical_flow->temperature, hil_optical_flow->quality, hil_optical_flow->time_delta_distance_us, hil_optical_flow->distance);
274
275
276
277
278
279
280
281
282static inline uint16_t mavlink_msg_hil_optical_flow_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_hil_optical_flow_t* hil_optical_flow)
284 return mavlink_msg_hil_optical_flow_pack_chan(system_id, component_id, chan, msg, hil_optical_flow->time_usec, hil_optical_flow->sensor_id, hil_optical_flow->integration_time_us, hil_optical_flow->integrated_x, hil_optical_flow->integrated_y, hil_optical_flow->integrated_xgyro, hil_optical_flow->integrated_ygyro, hil_optical_flow->integrated_zgyro, hil_optical_flow->temperature, hil_optical_flow->quality, hil_optical_flow->time_delta_distance_us, hil_optical_flow->distance);
288
289
290
291
292
293
294
295
296static inline uint16_t mavlink_msg_hil_optical_flow_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_hil_optical_flow_t* hil_optical_flow)
298 return mavlink_msg_hil_optical_flow_pack_status(system_id, component_id, _status, msg, hil_optical_flow->time_usec, hil_optical_flow->sensor_id, hil_optical_flow->integration_time_us, hil_optical_flow->integrated_x, hil_optical_flow->integrated_y, hil_optical_flow->integrated_xgyro, hil_optical_flow->integrated_ygyro, hil_optical_flow->integrated_zgyro, hil_optical_flow->temperature, hil_optical_flow->quality, hil_optical_flow->time_delta_distance_us, hil_optical_flow->distance);
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
320static inline void mavlink_msg_hil_optical_flow_send(mavlink_channel_t chan, uint64_t time_usec, uint8_t sensor_id, uint32_t integration_time_us,
float integrated_x,
float integrated_y,
float integrated_xgyro,
float integrated_ygyro,
float integrated_zgyro, int16_t temperature, uint8_t quality, uint32_t time_delta_distance_us,
float distance)
322#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
323 char buf[MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN];
324 _mav_put_uint64_t(buf, 0, time_usec);
325 _mav_put_uint32_t(buf, 8, integration_time_us);
326 _mav_put_float(buf, 12, integrated_x);
327 _mav_put_float(buf, 16, integrated_y);
328 _mav_put_float(buf, 20, integrated_xgyro);
329 _mav_put_float(buf, 24, integrated_ygyro);
330 _mav_put_float(buf, 28, integrated_zgyro);
331 _mav_put_uint32_t(buf, 32, time_delta_distance_us);
332 _mav_put_float(buf, 36, distance);
333 _mav_put_int16_t(buf, 40, temperature);
334 _mav_put_uint8_t(buf, 42, sensor_id);
335 _mav_put_uint8_t(buf, 43, quality);
337 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW, buf, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_MIN_LEN, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_CRC);
339 mavlink_hil_optical_flow_t packet;
340 packet.time_usec = time_usec;
341 packet.integration_time_us = integration_time_us;
342 packet.integrated_x = integrated_x;
343 packet.integrated_y = integrated_y;
344 packet.integrated_xgyro = integrated_xgyro;
345 packet.integrated_ygyro = integrated_ygyro;
346 packet.integrated_zgyro = integrated_zgyro;
347 packet.time_delta_distance_us = time_delta_distance_us;
348 packet.distance = distance;
349 packet.temperature = temperature;
350 packet.sensor_id = sensor_id;
351 packet.quality = quality;
353 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW, (
const char *)&packet, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_MIN_LEN, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_CRC);
358
359
360
361
362static inline void mavlink_msg_hil_optical_flow_send_struct(mavlink_channel_t chan,
const mavlink_hil_optical_flow_t* hil_optical_flow)
364#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
365 mavlink_msg_hil_optical_flow_send(chan, hil_optical_flow->time_usec, hil_optical_flow->sensor_id, hil_optical_flow->integration_time_us, hil_optical_flow->integrated_x, hil_optical_flow->integrated_y, hil_optical_flow->integrated_xgyro, hil_optical_flow->integrated_ygyro, hil_optical_flow->integrated_zgyro, hil_optical_flow->temperature, hil_optical_flow->quality, hil_optical_flow->time_delta_distance_us, hil_optical_flow->distance);
367 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW, (
const char *)hil_optical_flow, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_MIN_LEN, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_CRC);
371#if MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN <= MAVLINK_MAX_PAYLOAD_LEN
373
374
375
376
377
378
379static inline void mavlink_msg_hil_optical_flow_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t time_usec, uint8_t sensor_id, uint32_t integration_time_us,
float integrated_x,
float integrated_y,
float integrated_xgyro,
float integrated_ygyro,
float integrated_zgyro, int16_t temperature, uint8_t quality, uint32_t time_delta_distance_us,
float distance)
381#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
382 char *buf = (
char *)msgbuf;
383 _mav_put_uint64_t(buf, 0, time_usec);
384 _mav_put_uint32_t(buf, 8, integration_time_us);
385 _mav_put_float(buf, 12, integrated_x);
386 _mav_put_float(buf, 16, integrated_y);
387 _mav_put_float(buf, 20, integrated_xgyro);
388 _mav_put_float(buf, 24, integrated_ygyro);
389 _mav_put_float(buf, 28, integrated_zgyro);
390 _mav_put_uint32_t(buf, 32, time_delta_distance_us);
391 _mav_put_float(buf, 36, distance);
392 _mav_put_int16_t(buf, 40, temperature);
393 _mav_put_uint8_t(buf, 42, sensor_id);
394 _mav_put_uint8_t(buf, 43, quality);
396 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW, buf, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_MIN_LEN, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_CRC);
398 mavlink_hil_optical_flow_t *packet = (mavlink_hil_optical_flow_t *)msgbuf;
399 packet->time_usec = time_usec;
400 packet->integration_time_us = integration_time_us;
401 packet->integrated_x = integrated_x;
402 packet->integrated_y = integrated_y;
403 packet->integrated_xgyro = integrated_xgyro;
404 packet->integrated_ygyro = integrated_ygyro;
405 packet->integrated_zgyro = integrated_zgyro;
406 packet->time_delta_distance_us = time_delta_distance_us;
407 packet->distance = distance;
408 packet->temperature = temperature;
409 packet->sensor_id = sensor_id;
410 packet->quality = quality;
412 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW, (
const char *)packet, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_MIN_LEN, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_CRC);
423
424
425
426
427static inline uint64_t mavlink_msg_hil_optical_flow_get_time_usec(
const mavlink_message_t* msg)
429 return _MAV_RETURN_uint64_t(msg, 0);
433
434
435
436
437static inline uint8_t mavlink_msg_hil_optical_flow_get_sensor_id(
const mavlink_message_t* msg)
439 return _MAV_RETURN_uint8_t(msg, 42);
443
444
445
446
447static inline uint32_t mavlink_msg_hil_optical_flow_get_integration_time_us(
const mavlink_message_t* msg)
449 return _MAV_RETURN_uint32_t(msg, 8);
453
454
455
456
457static inline float mavlink_msg_hil_optical_flow_get_integrated_x(
const mavlink_message_t* msg)
459 return _MAV_RETURN_float(msg, 12);
463
464
465
466
467static inline float mavlink_msg_hil_optical_flow_get_integrated_y(
const mavlink_message_t* msg)
469 return _MAV_RETURN_float(msg, 16);
473
474
475
476
477static inline float mavlink_msg_hil_optical_flow_get_integrated_xgyro(
const mavlink_message_t* msg)
479 return _MAV_RETURN_float(msg, 20);
483
484
485
486
487static inline float mavlink_msg_hil_optical_flow_get_integrated_ygyro(
const mavlink_message_t* msg)
489 return _MAV_RETURN_float(msg, 24);
493
494
495
496
497static inline float mavlink_msg_hil_optical_flow_get_integrated_zgyro(
const mavlink_message_t* msg)
499 return _MAV_RETURN_float(msg, 28);
503
504
505
506
507static inline int16_t mavlink_msg_hil_optical_flow_get_temperature(
const mavlink_message_t* msg)
509 return _MAV_RETURN_int16_t(msg, 40);
513
514
515
516
517static inline uint8_t mavlink_msg_hil_optical_flow_get_quality(
const mavlink_message_t* msg)
519 return _MAV_RETURN_uint8_t(msg, 43);
523
524
525
526
527static inline uint32_t mavlink_msg_hil_optical_flow_get_time_delta_distance_us(
const mavlink_message_t* msg)
529 return _MAV_RETURN_uint32_t(msg, 32);
533
534
535
536
537static inline float mavlink_msg_hil_optical_flow_get_distance(
const mavlink_message_t* msg)
539 return _MAV_RETURN_float(msg, 36);
543
544
545
546
547
548static inline void mavlink_msg_hil_optical_flow_decode(
const mavlink_message_t* msg, mavlink_hil_optical_flow_t* hil_optical_flow)
550#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
551 hil_optical_flow->time_usec = mavlink_msg_hil_optical_flow_get_time_usec(msg);
552 hil_optical_flow->integration_time_us = mavlink_msg_hil_optical_flow_get_integration_time_us(msg);
553 hil_optical_flow->integrated_x = mavlink_msg_hil_optical_flow_get_integrated_x(msg);
554 hil_optical_flow->integrated_y = mavlink_msg_hil_optical_flow_get_integrated_y(msg);
555 hil_optical_flow->integrated_xgyro = mavlink_msg_hil_optical_flow_get_integrated_xgyro(msg);
556 hil_optical_flow->integrated_ygyro = mavlink_msg_hil_optical_flow_get_integrated_ygyro(msg);
557 hil_optical_flow->integrated_zgyro = mavlink_msg_hil_optical_flow_get_integrated_zgyro(msg);
558 hil_optical_flow->time_delta_distance_us = mavlink_msg_hil_optical_flow_get_time_delta_distance_us(msg);
559 hil_optical_flow->distance = mavlink_msg_hil_optical_flow_get_distance(msg);
560 hil_optical_flow->temperature = mavlink_msg_hil_optical_flow_get_temperature(msg);
561 hil_optical_flow->sensor_id = mavlink_msg_hil_optical_flow_get_sensor_id(msg);
562 hil_optical_flow->quality = mavlink_msg_hil_optical_flow_get_quality(msg);
564 uint8_t len = msg->len < MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN? msg->len : MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN;
565 memset(hil_optical_flow, 0, MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN);
566 memcpy(hil_optical_flow, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_CRC
Definition: mavlink_msg_hil_optical_flow.h:27
#define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_MIN_LEN
Definition: mavlink_msg_hil_optical_flow.h:23
#define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW
Definition: mavlink_msg_hil_optical_flow.h:4
#define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN
Definition: mavlink_msg_hil_optical_flow.h:22
Definition: mavlink_msg_hil_optical_flow.h:7
float distance
Definition: mavlink_msg_hil_optical_flow.h:16
uint8_t quality
Definition: mavlink_msg_hil_optical_flow.h:19
uint32_t time_delta_distance_us
Definition: mavlink_msg_hil_optical_flow.h:15
float integrated_y
Definition: mavlink_msg_hil_optical_flow.h:11
float integrated_xgyro
Definition: mavlink_msg_hil_optical_flow.h:12
uint64_t time_usec
Definition: mavlink_msg_hil_optical_flow.h:8
uint8_t sensor_id
Definition: mavlink_msg_hil_optical_flow.h:18
int16_t temperature
Definition: mavlink_msg_hil_optical_flow.h:17
float integrated_x
Definition: mavlink_msg_hil_optical_flow.h:10
float integrated_zgyro
Definition: mavlink_msg_hil_optical_flow.h:14
uint32_t integration_time_us
Definition: mavlink_msg_hil_optical_flow.h:9
float integrated_ygyro
Definition: mavlink_msg_hil_optical_flow.h:13