4#define MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS 262
7typedef struct __mavlink_camera_capture_status_t {
10 uint32_t recording_time_ms;
11 float available_capacity;
14}) mavlink_camera_capture_status_t;
16#define MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN 18
17#define MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_MIN_LEN 18
18#define MAVLINK_MSG_ID_262_LEN 18
19#define MAVLINK_MSG_ID_262_MIN_LEN 18
21#define MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_CRC 12
22#define MAVLINK_MSG_ID_262_CRC 12
26#if MAVLINK_COMMAND_24BIT
27#define MAVLINK_MESSAGE_INFO_CAMERA_CAPTURE_STATUS { \
29 "CAMERA_CAPTURE_STATUS", \
31 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_camera_capture_status_t, time_boot_ms) }, \
32 { "image_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_camera_capture_status_t, image_status) }, \
33 { "video_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_camera_capture_status_t, video_status) }, \
34 { "image_interval", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_camera_capture_status_t, image_interval) }, \
35 { "recording_time_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_camera_capture_status_t, recording_time_ms) }, \
36 { "available_capacity", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_camera_capture_status_t, available_capacity) }, \
40#define MAVLINK_MESSAGE_INFO_CAMERA_CAPTURE_STATUS { \
41 "CAMERA_CAPTURE_STATUS", \
43 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_camera_capture_status_t, time_boot_ms) }, \
44 { "image_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_camera_capture_status_t, image_status) }, \
45 { "video_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_camera_capture_status_t, video_status) }, \
46 { "image_interval", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_camera_capture_status_t, image_interval) }, \
47 { "recording_time_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_camera_capture_status_t, recording_time_ms) }, \
48 { "available_capacity", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_camera_capture_status_t, available_capacity) }, \
67static inline uint16_t mavlink_msg_camera_capture_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
68 uint32_t time_boot_ms, uint8_t image_status, uint8_t video_status,
float image_interval, uint32_t recording_time_ms,
float available_capacity)
70#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
71 char buf[MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN];
72 _mav_put_uint32_t(buf, 0, time_boot_ms);
73 _mav_put_float(buf, 4, image_interval);
74 _mav_put_uint32_t(buf, 8, recording_time_ms);
75 _mav_put_float(buf, 12, available_capacity);
76 _mav_put_uint8_t(buf, 16, image_status);
77 _mav_put_uint8_t(buf, 17, video_status);
79 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN);
81 mavlink_camera_capture_status_t packet;
82 packet.time_boot_ms = time_boot_ms;
83 packet.image_interval = image_interval;
84 packet.recording_time_ms = recording_time_ms;
85 packet.available_capacity = available_capacity;
86 packet.image_status = image_status;
87 packet.video_status = video_status;
89 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN);
92 msg->msgid = MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS;
93 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_MIN_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_CRC);
110static inline uint16_t mavlink_msg_camera_capture_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
111 mavlink_message_t* msg,
112 uint32_t time_boot_ms,uint8_t image_status,uint8_t video_status,
float image_interval,uint32_t recording_time_ms,
float available_capacity)
114#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
115 char buf[MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN];
116 _mav_put_uint32_t(buf, 0, time_boot_ms);
117 _mav_put_float(buf, 4, image_interval);
118 _mav_put_uint32_t(buf, 8, recording_time_ms);
119 _mav_put_float(buf, 12, available_capacity);
120 _mav_put_uint8_t(buf, 16, image_status);
121 _mav_put_uint8_t(buf, 17, video_status);
123 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN);
125 mavlink_camera_capture_status_t packet;
126 packet.time_boot_ms = time_boot_ms;
127 packet.image_interval = image_interval;
128 packet.recording_time_ms = recording_time_ms;
129 packet.available_capacity = available_capacity;
130 packet.image_status = image_status;
131 packet.video_status = video_status;
133 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN);
136 msg->msgid = MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS;
137 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_MIN_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_CRC);
148static inline uint16_t mavlink_msg_camera_capture_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_camera_capture_status_t* camera_capture_status)
150 return mavlink_msg_camera_capture_status_pack(system_id, component_id, msg, camera_capture_status->time_boot_ms, camera_capture_status->image_status, camera_capture_status->video_status, camera_capture_status->image_interval, camera_capture_status->recording_time_ms, camera_capture_status->available_capacity);
162static inline uint16_t mavlink_msg_camera_capture_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_camera_capture_status_t* camera_capture_status)
164 return mavlink_msg_camera_capture_status_pack_chan(system_id, component_id, chan, msg, camera_capture_status->time_boot_ms, camera_capture_status->image_status, camera_capture_status->video_status, camera_capture_status->image_interval, camera_capture_status->recording_time_ms, camera_capture_status->available_capacity);
178#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
180static inline void mavlink_msg_camera_capture_status_send(mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t image_status, uint8_t video_status,
float image_interval, uint32_t recording_time_ms,
float available_capacity)
182#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
183 char buf[MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN];
184 _mav_put_uint32_t(buf, 0, time_boot_ms);
185 _mav_put_float(buf, 4, image_interval);
186 _mav_put_uint32_t(buf, 8, recording_time_ms);
187 _mav_put_float(buf, 12, available_capacity);
188 _mav_put_uint8_t(buf, 16, image_status);
189 _mav_put_uint8_t(buf, 17, video_status);
191 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS, buf, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_MIN_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_CRC);
193 mavlink_camera_capture_status_t packet;
194 packet.time_boot_ms = time_boot_ms;
195 packet.image_interval = image_interval;
196 packet.recording_time_ms = recording_time_ms;
197 packet.available_capacity = available_capacity;
198 packet.image_status = image_status;
199 packet.video_status = video_status;
201 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS, (
const char *)&packet, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_MIN_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_CRC);
210static inline void mavlink_msg_camera_capture_status_send_struct(mavlink_channel_t chan,
const mavlink_camera_capture_status_t* camera_capture_status)
212#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
213 mavlink_msg_camera_capture_status_send(chan, camera_capture_status->time_boot_ms, camera_capture_status->image_status, camera_capture_status->video_status, camera_capture_status->image_interval, camera_capture_status->recording_time_ms, camera_capture_status->available_capacity);
215 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS, (
const char *)camera_capture_status, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_MIN_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_CRC);
219#if MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
227static inline void mavlink_msg_camera_capture_status_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t image_status, uint8_t video_status,
float image_interval, uint32_t recording_time_ms,
float available_capacity)
229#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
230 char *buf = (
char *)msgbuf;
231 _mav_put_uint32_t(buf, 0, time_boot_ms);
232 _mav_put_float(buf, 4, image_interval);
233 _mav_put_uint32_t(buf, 8, recording_time_ms);
234 _mav_put_float(buf, 12, available_capacity);
235 _mav_put_uint8_t(buf, 16, image_status);
236 _mav_put_uint8_t(buf, 17, video_status);
238 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS, buf, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_MIN_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_CRC);
240 mavlink_camera_capture_status_t *packet = (mavlink_camera_capture_status_t *)msgbuf;
241 packet->time_boot_ms = time_boot_ms;
242 packet->image_interval = image_interval;
243 packet->recording_time_ms = recording_time_ms;
244 packet->available_capacity = available_capacity;
245 packet->image_status = image_status;
246 packet->video_status = video_status;
248 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS, (
const char *)packet, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_MIN_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_CRC);
263static inline uint32_t mavlink_msg_camera_capture_status_get_time_boot_ms(
const mavlink_message_t* msg)
265 return _MAV_RETURN_uint32_t(msg, 0);
273static inline uint8_t mavlink_msg_camera_capture_status_get_image_status(
const mavlink_message_t* msg)
275 return _MAV_RETURN_uint8_t(msg, 16);
283static inline uint8_t mavlink_msg_camera_capture_status_get_video_status(
const mavlink_message_t* msg)
285 return _MAV_RETURN_uint8_t(msg, 17);
293static inline float mavlink_msg_camera_capture_status_get_image_interval(
const mavlink_message_t* msg)
295 return _MAV_RETURN_float(msg, 4);
303static inline uint32_t mavlink_msg_camera_capture_status_get_recording_time_ms(
const mavlink_message_t* msg)
305 return _MAV_RETURN_uint32_t(msg, 8);
313static inline float mavlink_msg_camera_capture_status_get_available_capacity(
const mavlink_message_t* msg)
315 return _MAV_RETURN_float(msg, 12);
324static inline void mavlink_msg_camera_capture_status_decode(
const mavlink_message_t* msg, mavlink_camera_capture_status_t* camera_capture_status)
326#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
327 camera_capture_status->time_boot_ms = mavlink_msg_camera_capture_status_get_time_boot_ms(msg);
328 camera_capture_status->image_interval = mavlink_msg_camera_capture_status_get_image_interval(msg);
329 camera_capture_status->recording_time_ms = mavlink_msg_camera_capture_status_get_recording_time_ms(msg);
330 camera_capture_status->available_capacity = mavlink_msg_camera_capture_status_get_available_capacity(msg);
331 camera_capture_status->image_status = mavlink_msg_camera_capture_status_get_image_status(msg);
332 camera_capture_status->video_status = mavlink_msg_camera_capture_status_get_video_status(msg);
334 uint8_t len = msg->len < MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN? msg->len : MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN;
335 memset(camera_capture_status, 0, MAVLINK_MSG_ID_CAMERA_CAPTURE_STATUS_LEN);
336 memcpy(camera_capture_status, _MAV_PAYLOAD(msg), len);