NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mavlink_msg_image_available.h
Go to the documentation of this file.
1 // MESSAGE IMAGE_AVAILABLE PACKING
2 
3 #define MAVLINK_MSG_ID_IMAGE_AVAILABLE 154
4 
6 {
7  uint64_t cam_id;
8  uint64_t timestamp;
9  uint64_t valid_until;
10  uint32_t img_seq;
11  uint32_t img_buf_index;
12  uint32_t key;
13  uint32_t exposure;
14  float gain;
15  float roll;
16  float pitch;
17  float yaw;
18  float local_z;
19  float lat;
20  float lon;
21  float alt;
22  float ground_x;
23  float ground_y;
24  float ground_z;
25  uint16_t width;
26  uint16_t height;
27  uint16_t depth;
28  uint8_t cam_no;
29  uint8_t channels;
31 
32 #define MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN 92
33 #define MAVLINK_MSG_ID_154_LEN 92
34 
35 #define MAVLINK_MSG_ID_IMAGE_AVAILABLE_CRC 224
36 #define MAVLINK_MSG_ID_154_CRC 224
37 
38 
39 
40 #define MAVLINK_MESSAGE_INFO_IMAGE_AVAILABLE { \
41  "IMAGE_AVAILABLE", \
42  23, \
43  { { "cam_id", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_image_available_t, cam_id) }, \
44  { "timestamp", NULL, MAVLINK_TYPE_UINT64_T, 0, 8, offsetof(mavlink_image_available_t, timestamp) }, \
45  { "valid_until", NULL, MAVLINK_TYPE_UINT64_T, 0, 16, offsetof(mavlink_image_available_t, valid_until) }, \
46  { "img_seq", NULL, MAVLINK_TYPE_UINT32_T, 0, 24, offsetof(mavlink_image_available_t, img_seq) }, \
47  { "img_buf_index", NULL, MAVLINK_TYPE_UINT32_T, 0, 28, offsetof(mavlink_image_available_t, img_buf_index) }, \
48  { "key", NULL, MAVLINK_TYPE_UINT32_T, 0, 32, offsetof(mavlink_image_available_t, key) }, \
49  { "exposure", NULL, MAVLINK_TYPE_UINT32_T, 0, 36, offsetof(mavlink_image_available_t, exposure) }, \
50  { "gain", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_image_available_t, gain) }, \
51  { "roll", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_image_available_t, roll) }, \
52  { "pitch", NULL, MAVLINK_TYPE_FLOAT, 0, 48, offsetof(mavlink_image_available_t, pitch) }, \
53  { "yaw", NULL, MAVLINK_TYPE_FLOAT, 0, 52, offsetof(mavlink_image_available_t, yaw) }, \
54  { "local_z", NULL, MAVLINK_TYPE_FLOAT, 0, 56, offsetof(mavlink_image_available_t, local_z) }, \
55  { "lat", NULL, MAVLINK_TYPE_FLOAT, 0, 60, offsetof(mavlink_image_available_t, lat) }, \
56  { "lon", NULL, MAVLINK_TYPE_FLOAT, 0, 64, offsetof(mavlink_image_available_t, lon) }, \
57  { "alt", NULL, MAVLINK_TYPE_FLOAT, 0, 68, offsetof(mavlink_image_available_t, alt) }, \
58  { "ground_x", NULL, MAVLINK_TYPE_FLOAT, 0, 72, offsetof(mavlink_image_available_t, ground_x) }, \
59  { "ground_y", NULL, MAVLINK_TYPE_FLOAT, 0, 76, offsetof(mavlink_image_available_t, ground_y) }, \
60  { "ground_z", NULL, MAVLINK_TYPE_FLOAT, 0, 80, offsetof(mavlink_image_available_t, ground_z) }, \
61  { "width", NULL, MAVLINK_TYPE_UINT16_T, 0, 84, offsetof(mavlink_image_available_t, width) }, \
62  { "height", NULL, MAVLINK_TYPE_UINT16_T, 0, 86, offsetof(mavlink_image_available_t, height) }, \
63  { "depth", NULL, MAVLINK_TYPE_UINT16_T, 0, 88, offsetof(mavlink_image_available_t, depth) }, \
64  { "cam_no", NULL, MAVLINK_TYPE_UINT8_T, 0, 90, offsetof(mavlink_image_available_t, cam_no) }, \
65  { "channels", NULL, MAVLINK_TYPE_UINT8_T, 0, 91, offsetof(mavlink_image_available_t, channels) }, \
66  } \
67 }
68 
69 
101 static inline uint16_t mavlink_msg_image_available_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
102  uint64_t cam_id, uint8_t cam_no, uint64_t timestamp, uint64_t valid_until, uint32_t img_seq, uint32_t img_buf_index, uint16_t width, uint16_t height, uint16_t depth, uint8_t channels, uint32_t key, uint32_t exposure, float gain, float roll, float pitch, float yaw, float local_z, float lat, float lon, float alt, float ground_x, float ground_y, float ground_z)
103 {
104 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
106  _mav_put_uint64_t(buf, 0, cam_id);
107  _mav_put_uint64_t(buf, 8, timestamp);
108  _mav_put_uint64_t(buf, 16, valid_until);
109  _mav_put_uint32_t(buf, 24, img_seq);
110  _mav_put_uint32_t(buf, 28, img_buf_index);
111  _mav_put_uint32_t(buf, 32, key);
112  _mav_put_uint32_t(buf, 36, exposure);
113  _mav_put_float(buf, 40, gain);
114  _mav_put_float(buf, 44, roll);
115  _mav_put_float(buf, 48, pitch);
116  _mav_put_float(buf, 52, yaw);
117  _mav_put_float(buf, 56, local_z);
118  _mav_put_float(buf, 60, lat);
119  _mav_put_float(buf, 64, lon);
120  _mav_put_float(buf, 68, alt);
121  _mav_put_float(buf, 72, ground_x);
122  _mav_put_float(buf, 76, ground_y);
123  _mav_put_float(buf, 80, ground_z);
124  _mav_put_uint16_t(buf, 84, width);
125  _mav_put_uint16_t(buf, 86, height);
126  _mav_put_uint16_t(buf, 88, depth);
127  _mav_put_uint8_t(buf, 90, cam_no);
128  _mav_put_uint8_t(buf, 91, channels);
129 
131 #else
133  packet.cam_id = cam_id;
134  packet.timestamp = timestamp;
135  packet.valid_until = valid_until;
136  packet.img_seq = img_seq;
137  packet.img_buf_index = img_buf_index;
138  packet.key = key;
139  packet.exposure = exposure;
140  packet.gain = gain;
141  packet.roll = roll;
142  packet.pitch = pitch;
143  packet.yaw = yaw;
144  packet.local_z = local_z;
145  packet.lat = lat;
146  packet.lon = lon;
147  packet.alt = alt;
148  packet.ground_x = ground_x;
149  packet.ground_y = ground_y;
150  packet.ground_z = ground_z;
151  packet.width = width;
152  packet.height = height;
153  packet.depth = depth;
154  packet.cam_no = cam_no;
155  packet.channels = channels;
156 
158 #endif
159 
160  msg->msgid = MAVLINK_MSG_ID_IMAGE_AVAILABLE;
161 #if MAVLINK_CRC_EXTRA
163 #else
164  return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN);
165 #endif
166 }
167 
199 static inline uint16_t mavlink_msg_image_available_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
200  mavlink_message_t* msg,
201  uint64_t cam_id,uint8_t cam_no,uint64_t timestamp,uint64_t valid_until,uint32_t img_seq,uint32_t img_buf_index,uint16_t width,uint16_t height,uint16_t depth,uint8_t channels,uint32_t key,uint32_t exposure,float gain,float roll,float pitch,float yaw,float local_z,float lat,float lon,float alt,float ground_x,float ground_y,float ground_z)
202 {
203 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
205  _mav_put_uint64_t(buf, 0, cam_id);
206  _mav_put_uint64_t(buf, 8, timestamp);
207  _mav_put_uint64_t(buf, 16, valid_until);
208  _mav_put_uint32_t(buf, 24, img_seq);
209  _mav_put_uint32_t(buf, 28, img_buf_index);
210  _mav_put_uint32_t(buf, 32, key);
211  _mav_put_uint32_t(buf, 36, exposure);
212  _mav_put_float(buf, 40, gain);
213  _mav_put_float(buf, 44, roll);
214  _mav_put_float(buf, 48, pitch);
215  _mav_put_float(buf, 52, yaw);
216  _mav_put_float(buf, 56, local_z);
217  _mav_put_float(buf, 60, lat);
218  _mav_put_float(buf, 64, lon);
219  _mav_put_float(buf, 68, alt);
220  _mav_put_float(buf, 72, ground_x);
221  _mav_put_float(buf, 76, ground_y);
222  _mav_put_float(buf, 80, ground_z);
223  _mav_put_uint16_t(buf, 84, width);
224  _mav_put_uint16_t(buf, 86, height);
225  _mav_put_uint16_t(buf, 88, depth);
226  _mav_put_uint8_t(buf, 90, cam_no);
227  _mav_put_uint8_t(buf, 91, channels);
228 
230 #else
232  packet.cam_id = cam_id;
233  packet.timestamp = timestamp;
234  packet.valid_until = valid_until;
235  packet.img_seq = img_seq;
236  packet.img_buf_index = img_buf_index;
237  packet.key = key;
238  packet.exposure = exposure;
239  packet.gain = gain;
240  packet.roll = roll;
241  packet.pitch = pitch;
242  packet.yaw = yaw;
243  packet.local_z = local_z;
244  packet.lat = lat;
245  packet.lon = lon;
246  packet.alt = alt;
247  packet.ground_x = ground_x;
248  packet.ground_y = ground_y;
249  packet.ground_z = ground_z;
250  packet.width = width;
251  packet.height = height;
252  packet.depth = depth;
253  packet.cam_no = cam_no;
254  packet.channels = channels;
255 
257 #endif
258 
259  msg->msgid = MAVLINK_MSG_ID_IMAGE_AVAILABLE;
260 #if MAVLINK_CRC_EXTRA
262 #else
263  return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN);
264 #endif
265 }
266 
275 static inline uint16_t mavlink_msg_image_available_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_image_available_t* image_available)
276 {
277  return mavlink_msg_image_available_pack(system_id, component_id, msg, image_available->cam_id, image_available->cam_no, image_available->timestamp, image_available->valid_until, image_available->img_seq, image_available->img_buf_index, image_available->width, image_available->height, image_available->depth, image_available->channels, image_available->key, image_available->exposure, image_available->gain, image_available->roll, image_available->pitch, image_available->yaw, image_available->local_z, image_available->lat, image_available->lon, image_available->alt, image_available->ground_x, image_available->ground_y, image_available->ground_z);
278 }
279 
289 static inline uint16_t mavlink_msg_image_available_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_image_available_t* image_available)
290 {
291  return mavlink_msg_image_available_pack_chan(system_id, component_id, chan, msg, image_available->cam_id, image_available->cam_no, image_available->timestamp, image_available->valid_until, image_available->img_seq, image_available->img_buf_index, image_available->width, image_available->height, image_available->depth, image_available->channels, image_available->key, image_available->exposure, image_available->gain, image_available->roll, image_available->pitch, image_available->yaw, image_available->local_z, image_available->lat, image_available->lon, image_available->alt, image_available->ground_x, image_available->ground_y, image_available->ground_z);
292 }
293 
322 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
323 
324 static inline void mavlink_msg_image_available_send(mavlink_channel_t chan, uint64_t cam_id, uint8_t cam_no, uint64_t timestamp, uint64_t valid_until, uint32_t img_seq, uint32_t img_buf_index, uint16_t width, uint16_t height, uint16_t depth, uint8_t channels, uint32_t key, uint32_t exposure, float gain, float roll, float pitch, float yaw, float local_z, float lat, float lon, float alt, float ground_x, float ground_y, float ground_z)
325 {
326 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
328  _mav_put_uint64_t(buf, 0, cam_id);
329  _mav_put_uint64_t(buf, 8, timestamp);
330  _mav_put_uint64_t(buf, 16, valid_until);
331  _mav_put_uint32_t(buf, 24, img_seq);
332  _mav_put_uint32_t(buf, 28, img_buf_index);
333  _mav_put_uint32_t(buf, 32, key);
334  _mav_put_uint32_t(buf, 36, exposure);
335  _mav_put_float(buf, 40, gain);
336  _mav_put_float(buf, 44, roll);
337  _mav_put_float(buf, 48, pitch);
338  _mav_put_float(buf, 52, yaw);
339  _mav_put_float(buf, 56, local_z);
340  _mav_put_float(buf, 60, lat);
341  _mav_put_float(buf, 64, lon);
342  _mav_put_float(buf, 68, alt);
343  _mav_put_float(buf, 72, ground_x);
344  _mav_put_float(buf, 76, ground_y);
345  _mav_put_float(buf, 80, ground_z);
346  _mav_put_uint16_t(buf, 84, width);
347  _mav_put_uint16_t(buf, 86, height);
348  _mav_put_uint16_t(buf, 88, depth);
349  _mav_put_uint8_t(buf, 90, cam_no);
350  _mav_put_uint8_t(buf, 91, channels);
351 
352 #if MAVLINK_CRC_EXTRA
354 #else
355  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_IMAGE_AVAILABLE, buf, MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN);
356 #endif
357 #else
359  packet.cam_id = cam_id;
360  packet.timestamp = timestamp;
361  packet.valid_until = valid_until;
362  packet.img_seq = img_seq;
363  packet.img_buf_index = img_buf_index;
364  packet.key = key;
365  packet.exposure = exposure;
366  packet.gain = gain;
367  packet.roll = roll;
368  packet.pitch = pitch;
369  packet.yaw = yaw;
370  packet.local_z = local_z;
371  packet.lat = lat;
372  packet.lon = lon;
373  packet.alt = alt;
374  packet.ground_x = ground_x;
375  packet.ground_y = ground_y;
376  packet.ground_z = ground_z;
377  packet.width = width;
378  packet.height = height;
379  packet.depth = depth;
380  packet.cam_no = cam_no;
381  packet.channels = channels;
382 
383 #if MAVLINK_CRC_EXTRA
384  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_IMAGE_AVAILABLE, (const char *)&packet, MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN, MAVLINK_MSG_ID_IMAGE_AVAILABLE_CRC);
385 #else
386  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_IMAGE_AVAILABLE, (const char *)&packet, MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN);
387 #endif
388 #endif
389 }
390 
391 #if MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
392 /*
393  This varient of _send() can be used to save stack space by re-using
394  memory from the receive buffer. The caller provides a
395  mavlink_message_t which is the size of a full mavlink message. This
396  is usually the receive buffer for the channel, and allows a reply to an
397  incoming message with minimum stack space usage.
398  */
399 static inline void mavlink_msg_image_available_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t cam_id, uint8_t cam_no, uint64_t timestamp, uint64_t valid_until, uint32_t img_seq, uint32_t img_buf_index, uint16_t width, uint16_t height, uint16_t depth, uint8_t channels, uint32_t key, uint32_t exposure, float gain, float roll, float pitch, float yaw, float local_z, float lat, float lon, float alt, float ground_x, float ground_y, float ground_z)
400 {
401 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
402  char *buf = (char *)msgbuf;
403  _mav_put_uint64_t(buf, 0, cam_id);
404  _mav_put_uint64_t(buf, 8, timestamp);
405  _mav_put_uint64_t(buf, 16, valid_until);
406  _mav_put_uint32_t(buf, 24, img_seq);
407  _mav_put_uint32_t(buf, 28, img_buf_index);
408  _mav_put_uint32_t(buf, 32, key);
409  _mav_put_uint32_t(buf, 36, exposure);
410  _mav_put_float(buf, 40, gain);
411  _mav_put_float(buf, 44, roll);
412  _mav_put_float(buf, 48, pitch);
413  _mav_put_float(buf, 52, yaw);
414  _mav_put_float(buf, 56, local_z);
415  _mav_put_float(buf, 60, lat);
416  _mav_put_float(buf, 64, lon);
417  _mav_put_float(buf, 68, alt);
418  _mav_put_float(buf, 72, ground_x);
419  _mav_put_float(buf, 76, ground_y);
420  _mav_put_float(buf, 80, ground_z);
421  _mav_put_uint16_t(buf, 84, width);
422  _mav_put_uint16_t(buf, 86, height);
423  _mav_put_uint16_t(buf, 88, depth);
424  _mav_put_uint8_t(buf, 90, cam_no);
425  _mav_put_uint8_t(buf, 91, channels);
426 
427 #if MAVLINK_CRC_EXTRA
429 #else
430  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_IMAGE_AVAILABLE, buf, MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN);
431 #endif
432 #else
434  packet->cam_id = cam_id;
435  packet->timestamp = timestamp;
436  packet->valid_until = valid_until;
437  packet->img_seq = img_seq;
438  packet->img_buf_index = img_buf_index;
439  packet->key = key;
440  packet->exposure = exposure;
441  packet->gain = gain;
442  packet->roll = roll;
443  packet->pitch = pitch;
444  packet->yaw = yaw;
445  packet->local_z = local_z;
446  packet->lat = lat;
447  packet->lon = lon;
448  packet->alt = alt;
449  packet->ground_x = ground_x;
450  packet->ground_y = ground_y;
451  packet->ground_z = ground_z;
452  packet->width = width;
453  packet->height = height;
454  packet->depth = depth;
455  packet->cam_no = cam_no;
456  packet->channels = channels;
457 
458 #if MAVLINK_CRC_EXTRA
459  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_IMAGE_AVAILABLE, (const char *)packet, MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN, MAVLINK_MSG_ID_IMAGE_AVAILABLE_CRC);
460 #else
461  _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_IMAGE_AVAILABLE, (const char *)packet, MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN);
462 #endif
463 #endif
464 }
465 #endif
466 
467 #endif
468 
469 // MESSAGE IMAGE_AVAILABLE UNPACKING
470 
471 
477 static inline uint64_t mavlink_msg_image_available_get_cam_id(const mavlink_message_t* msg)
478 {
479  return _MAV_RETURN_uint64_t(msg, 0);
480 }
481 
487 static inline uint8_t mavlink_msg_image_available_get_cam_no(const mavlink_message_t* msg)
488 {
489  return _MAV_RETURN_uint8_t(msg, 90);
490 }
491 
497 static inline uint64_t mavlink_msg_image_available_get_timestamp(const mavlink_message_t* msg)
498 {
499  return _MAV_RETURN_uint64_t(msg, 8);
500 }
501 
507 static inline uint64_t mavlink_msg_image_available_get_valid_until(const mavlink_message_t* msg)
508 {
509  return _MAV_RETURN_uint64_t(msg, 16);
510 }
511 
517 static inline uint32_t mavlink_msg_image_available_get_img_seq(const mavlink_message_t* msg)
518 {
519  return _MAV_RETURN_uint32_t(msg, 24);
520 }
521 
527 static inline uint32_t mavlink_msg_image_available_get_img_buf_index(const mavlink_message_t* msg)
528 {
529  return _MAV_RETURN_uint32_t(msg, 28);
530 }
531 
537 static inline uint16_t mavlink_msg_image_available_get_width(const mavlink_message_t* msg)
538 {
539  return _MAV_RETURN_uint16_t(msg, 84);
540 }
541 
547 static inline uint16_t mavlink_msg_image_available_get_height(const mavlink_message_t* msg)
548 {
549  return _MAV_RETURN_uint16_t(msg, 86);
550 }
551 
557 static inline uint16_t mavlink_msg_image_available_get_depth(const mavlink_message_t* msg)
558 {
559  return _MAV_RETURN_uint16_t(msg, 88);
560 }
561 
567 static inline uint8_t mavlink_msg_image_available_get_channels(const mavlink_message_t* msg)
568 {
569  return _MAV_RETURN_uint8_t(msg, 91);
570 }
571 
577 static inline uint32_t mavlink_msg_image_available_get_key(const mavlink_message_t* msg)
578 {
579  return _MAV_RETURN_uint32_t(msg, 32);
580 }
581 
587 static inline uint32_t mavlink_msg_image_available_get_exposure(const mavlink_message_t* msg)
588 {
589  return _MAV_RETURN_uint32_t(msg, 36);
590 }
591 
597 static inline float mavlink_msg_image_available_get_gain(const mavlink_message_t* msg)
598 {
599  return _MAV_RETURN_float(msg, 40);
600 }
601 
607 static inline float mavlink_msg_image_available_get_roll(const mavlink_message_t* msg)
608 {
609  return _MAV_RETURN_float(msg, 44);
610 }
611 
617 static inline float mavlink_msg_image_available_get_pitch(const mavlink_message_t* msg)
618 {
619  return _MAV_RETURN_float(msg, 48);
620 }
621 
627 static inline float mavlink_msg_image_available_get_yaw(const mavlink_message_t* msg)
628 {
629  return _MAV_RETURN_float(msg, 52);
630 }
631 
637 static inline float mavlink_msg_image_available_get_local_z(const mavlink_message_t* msg)
638 {
639  return _MAV_RETURN_float(msg, 56);
640 }
641 
647 static inline float mavlink_msg_image_available_get_lat(const mavlink_message_t* msg)
648 {
649  return _MAV_RETURN_float(msg, 60);
650 }
651 
657 static inline float mavlink_msg_image_available_get_lon(const mavlink_message_t* msg)
658 {
659  return _MAV_RETURN_float(msg, 64);
660 }
661 
667 static inline float mavlink_msg_image_available_get_alt(const mavlink_message_t* msg)
668 {
669  return _MAV_RETURN_float(msg, 68);
670 }
671 
677 static inline float mavlink_msg_image_available_get_ground_x(const mavlink_message_t* msg)
678 {
679  return _MAV_RETURN_float(msg, 72);
680 }
681 
687 static inline float mavlink_msg_image_available_get_ground_y(const mavlink_message_t* msg)
688 {
689  return _MAV_RETURN_float(msg, 76);
690 }
691 
697 static inline float mavlink_msg_image_available_get_ground_z(const mavlink_message_t* msg)
698 {
699  return _MAV_RETURN_float(msg, 80);
700 }
701 
708 static inline void mavlink_msg_image_available_decode(const mavlink_message_t* msg, mavlink_image_available_t* image_available)
709 {
710 #if MAVLINK_NEED_BYTE_SWAP
711  image_available->cam_id = mavlink_msg_image_available_get_cam_id(msg);
712  image_available->timestamp = mavlink_msg_image_available_get_timestamp(msg);
713  image_available->valid_until = mavlink_msg_image_available_get_valid_until(msg);
714  image_available->img_seq = mavlink_msg_image_available_get_img_seq(msg);
715  image_available->img_buf_index = mavlink_msg_image_available_get_img_buf_index(msg);
716  image_available->key = mavlink_msg_image_available_get_key(msg);
717  image_available->exposure = mavlink_msg_image_available_get_exposure(msg);
718  image_available->gain = mavlink_msg_image_available_get_gain(msg);
719  image_available->roll = mavlink_msg_image_available_get_roll(msg);
720  image_available->pitch = mavlink_msg_image_available_get_pitch(msg);
721  image_available->yaw = mavlink_msg_image_available_get_yaw(msg);
722  image_available->local_z = mavlink_msg_image_available_get_local_z(msg);
723  image_available->lat = mavlink_msg_image_available_get_lat(msg);
724  image_available->lon = mavlink_msg_image_available_get_lon(msg);
725  image_available->alt = mavlink_msg_image_available_get_alt(msg);
726  image_available->ground_x = mavlink_msg_image_available_get_ground_x(msg);
727  image_available->ground_y = mavlink_msg_image_available_get_ground_y(msg);
728  image_available->ground_z = mavlink_msg_image_available_get_ground_z(msg);
729  image_available->width = mavlink_msg_image_available_get_width(msg);
730  image_available->height = mavlink_msg_image_available_get_height(msg);
731  image_available->depth = mavlink_msg_image_available_get_depth(msg);
732  image_available->cam_no = mavlink_msg_image_available_get_cam_no(msg);
733  image_available->channels = mavlink_msg_image_available_get_channels(msg);
734 #else
735  memcpy(image_available, _MAV_PAYLOAD(msg), MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN);
736 #endif
737 }
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
#define _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#define _mav_put_uint64_t(buf, wire_offset, b)
Definition: protocol.h:143
int16_t pitch
Definition: accelerometer.h:52
int16_t yaw
Definition: sensors.h:31
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
int16_t roll
Definition: accelerometer.h:51
#define _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141