3 #define MAVLINK_MSG_ID_IMAGE_AVAILABLE 154
32 #define MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN 92
33 #define MAVLINK_MSG_ID_154_LEN 92
35 #define MAVLINK_MSG_ID_IMAGE_AVAILABLE_CRC 224
36 #define MAVLINK_MSG_ID_154_CRC 224
40 #define MAVLINK_MESSAGE_INFO_IMAGE_AVAILABLE { \
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) }, \
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)
104 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
151 packet.
width = width;
153 packet.
depth = depth;
161 #if MAVLINK_CRC_EXTRA
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)
203 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
250 packet.
width = width;
252 packet.
depth = depth;
260 #if MAVLINK_CRC_EXTRA
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)
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);
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)
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);
322 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
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)
326 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
352 #if MAVLINK_CRC_EXTRA
377 packet.
width = width;
379 packet.
depth = depth;
383 #if MAVLINK_CRC_EXTRA
391 #if MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
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)
401 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
402 char *buf = (
char *)msgbuf;
427 #if MAVLINK_CRC_EXTRA
452 packet->
width = width;
454 packet->
depth = depth;
458 #if MAVLINK_CRC_EXTRA
477 static inline uint64_t mavlink_msg_image_available_get_cam_id(
const mavlink_message_t* msg)
479 return _MAV_RETURN_uint64_t(msg, 0);
487 static inline uint8_t mavlink_msg_image_available_get_cam_no(
const mavlink_message_t* msg)
497 static inline uint64_t mavlink_msg_image_available_get_timestamp(
const mavlink_message_t* msg)
499 return _MAV_RETURN_uint64_t(msg, 8);
507 static inline uint64_t mavlink_msg_image_available_get_valid_until(
const mavlink_message_t* msg)
509 return _MAV_RETURN_uint64_t(msg, 16);
517 static inline uint32_t mavlink_msg_image_available_get_img_seq(
const mavlink_message_t* msg)
519 return _MAV_RETURN_uint32_t(msg, 24);
527 static inline uint32_t mavlink_msg_image_available_get_img_buf_index(
const mavlink_message_t* msg)
529 return _MAV_RETURN_uint32_t(msg, 28);
537 static inline uint16_t mavlink_msg_image_available_get_width(
const mavlink_message_t* msg)
539 return _MAV_RETURN_uint16_t(msg, 84);
547 static inline uint16_t mavlink_msg_image_available_get_height(
const mavlink_message_t* msg)
549 return _MAV_RETURN_uint16_t(msg, 86);
557 static inline uint16_t mavlink_msg_image_available_get_depth(
const mavlink_message_t* msg)
559 return _MAV_RETURN_uint16_t(msg, 88);
567 static inline uint8_t mavlink_msg_image_available_get_channels(
const mavlink_message_t* msg)
577 static inline uint32_t mavlink_msg_image_available_get_key(
const mavlink_message_t* msg)
579 return _MAV_RETURN_uint32_t(msg, 32);
587 static inline uint32_t mavlink_msg_image_available_get_exposure(
const mavlink_message_t* msg)
589 return _MAV_RETURN_uint32_t(msg, 36);
597 static inline float mavlink_msg_image_available_get_gain(
const mavlink_message_t* msg)
599 return _MAV_RETURN_float(msg, 40);
607 static inline float mavlink_msg_image_available_get_roll(
const mavlink_message_t* msg)
609 return _MAV_RETURN_float(msg, 44);
617 static inline float mavlink_msg_image_available_get_pitch(
const mavlink_message_t* msg)
619 return _MAV_RETURN_float(msg, 48);
627 static inline float mavlink_msg_image_available_get_yaw(
const mavlink_message_t* msg)
629 return _MAV_RETURN_float(msg, 52);
637 static inline float mavlink_msg_image_available_get_local_z(
const mavlink_message_t* msg)
639 return _MAV_RETURN_float(msg, 56);
647 static inline float mavlink_msg_image_available_get_lat(
const mavlink_message_t* msg)
649 return _MAV_RETURN_float(msg, 60);
657 static inline float mavlink_msg_image_available_get_lon(
const mavlink_message_t* msg)
659 return _MAV_RETURN_float(msg, 64);
667 static inline float mavlink_msg_image_available_get_alt(
const mavlink_message_t* msg)
669 return _MAV_RETURN_float(msg, 68);
677 static inline float mavlink_msg_image_available_get_ground_x(
const mavlink_message_t* msg)
679 return _MAV_RETURN_float(msg, 72);
687 static inline float mavlink_msg_image_available_get_ground_y(
const mavlink_message_t* msg)
689 return _MAV_RETURN_float(msg, 76);
697 static inline float mavlink_msg_image_available_get_ground_z(
const mavlink_message_t* msg)
699 return _MAV_RETURN_float(msg, 80);
708 static inline void mavlink_msg_image_available_decode(
const mavlink_message_t* msg,
mavlink_image_available_t* image_available)
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);
float pitch
Pitch angle in rad.
Definition: mavlink_msg_image_available.h:16
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
#define MAVLINK_MSG_ID_IMAGE_AVAILABLE_CRC
Definition: mavlink_msg_image_available.h:35
float ground_z
Ground truth Z.
Definition: mavlink_msg_image_available.h:24
float lon
GPS Y coordinate.
Definition: mavlink_msg_image_available.h:20
float ground_x
Ground truth X.
Definition: mavlink_msg_image_available.h:22
uint8_t channels
Image channels.
Definition: mavlink_msg_image_available.h:29
struct __mavlink_image_available_t mavlink_image_available_t
float local_z
Local frame Z coordinate (height over ground)
Definition: mavlink_msg_image_available.h:18
uint16_t width
Image width.
Definition: mavlink_msg_image_available.h:25
uint32_t key
Shared memory area key.
Definition: mavlink_msg_image_available.h:12
uint32_t exposure
Exposure time, in microseconds.
Definition: mavlink_msg_image_available.h:13
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
float yaw
Yaw angle in rad.
Definition: mavlink_msg_image_available.h:17
float lat
GPS X coordinate.
Definition: mavlink_msg_image_available.h:19
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
Definition: mavlink_helpers.h:105
#define MAVLINK_MSG_ID_IMAGE_AVAILABLE_LEN
Definition: mavlink_msg_image_available.h:32
#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
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
#define MAVLINK_MSG_ID_IMAGE_AVAILABLE
Definition: mavlink_msg_image_available.h:3
uint16_t height
Image height.
Definition: mavlink_msg_image_available.h:26
float alt
Global frame altitude.
Definition: mavlink_msg_image_available.h:21
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
float ground_y
Ground truth Y.
Definition: mavlink_msg_image_available.h:23
uint8_t cam_no
Camera # (starts with 0)
Definition: mavlink_msg_image_available.h:28
uint32_t img_seq
The image sequence number.
Definition: mavlink_msg_image_available.h:10
uint64_t timestamp
Timestamp.
Definition: mavlink_msg_image_available.h:8
int16_t pitch
Definition: accelerometer.h:52
Definition: mavlink_msg_image_available.h:5
float roll
Roll angle in rad.
Definition: mavlink_msg_image_available.h:15
uint16_t depth
Image depth.
Definition: mavlink_msg_image_available.h:27
int16_t yaw
Definition: sensors.h:31
uint64_t valid_until
Until which timestamp this buffer will stay valid.
Definition: mavlink_msg_image_available.h:9
uint32_t img_buf_index
Position of the image in the buffer, starts with 0.
Definition: mavlink_msg_image_available.h:11
float gain
Camera gain.
Definition: mavlink_msg_image_available.h:14
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
uint64_t cam_id
Camera id.
Definition: mavlink_msg_image_available.h:7
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
Definition: mavlink_helpers.h:71
int16_t roll
Definition: accelerometer.h:51
#define _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141