3 #define MAVLINK_MSG_ID_CAMERA_STATUS 179
18 #define MAVLINK_MSG_ID_CAMERA_STATUS_LEN 29
19 #define MAVLINK_MSG_ID_179_LEN 29
21 #define MAVLINK_MSG_ID_CAMERA_STATUS_CRC 189
22 #define MAVLINK_MSG_ID_179_CRC 189
26 #define MAVLINK_MESSAGE_INFO_CAMERA_STATUS { \
29 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_camera_status_t, time_usec) }, \
30 { "p1", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_camera_status_t, p1) }, \
31 { "p2", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_camera_status_t, p2) }, \
32 { "p3", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_camera_status_t, p3) }, \
33 { "p4", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_camera_status_t, p4) }, \
34 { "img_idx", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_camera_status_t, img_idx) }, \
35 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 26, offsetof(mavlink_camera_status_t, target_system) }, \
36 { "cam_idx", NULL, MAVLINK_TYPE_UINT8_T, 0, 27, offsetof(mavlink_camera_status_t, cam_idx) }, \
37 { "event_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 28, offsetof(mavlink_camera_status_t, event_id) }, \
59 static inline uint16_t mavlink_msg_camera_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
60 uint64_t time_usec, uint8_t target_system, uint8_t cam_idx, uint16_t img_idx, uint8_t event_id,
float p1,
float p2,
float p3,
float p4)
62 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
115 static inline uint16_t mavlink_msg_camera_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
116 mavlink_message_t* msg,
117 uint64_t time_usec,uint8_t target_system,uint8_t cam_idx,uint16_t img_idx,uint8_t event_id,
float p1,
float p2,
float p3,
float p4)
119 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
148 #if MAVLINK_CRC_EXTRA
163 static inline uint16_t mavlink_msg_camera_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_camera_status_t* camera_status)
165 return mavlink_msg_camera_status_pack(system_id, component_id, msg, camera_status->
time_usec, camera_status->
target_system, camera_status->
cam_idx, camera_status->
img_idx, camera_status->
event_id, camera_status->
p1, camera_status->
p2, camera_status->
p3, camera_status->
p4);
177 static inline uint16_t mavlink_msg_camera_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_camera_status_t* camera_status)
179 return mavlink_msg_camera_status_pack_chan(system_id, component_id, chan, msg, camera_status->
time_usec, camera_status->
target_system, camera_status->
cam_idx, camera_status->
img_idx, camera_status->
event_id, camera_status->
p1, camera_status->
p2, camera_status->
p3, camera_status->
p4);
196 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
198 static inline void mavlink_msg_camera_status_send(
mavlink_channel_t chan, uint64_t time_usec, uint8_t target_system, uint8_t cam_idx, uint16_t img_idx, uint8_t event_id,
float p1,
float p2,
float p3,
float p4)
200 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
212 #if MAVLINK_CRC_EXTRA
229 #if MAVLINK_CRC_EXTRA
237 #if MAVLINK_MSG_ID_CAMERA_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
245 static inline void mavlink_msg_camera_status_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint64_t time_usec, uint8_t target_system, uint8_t cam_idx, uint16_t img_idx, uint8_t event_id,
float p1,
float p2,
float p3,
float p4)
247 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
248 char *buf = (
char *)msgbuf;
259 #if MAVLINK_CRC_EXTRA
276 #if MAVLINK_CRC_EXTRA
295 static inline uint64_t mavlink_msg_camera_status_get_time_usec(
const mavlink_message_t* msg)
297 return _MAV_RETURN_uint64_t(msg, 0);
305 static inline uint8_t mavlink_msg_camera_status_get_target_system(
const mavlink_message_t* msg)
315 static inline uint8_t mavlink_msg_camera_status_get_cam_idx(
const mavlink_message_t* msg)
325 static inline uint16_t mavlink_msg_camera_status_get_img_idx(
const mavlink_message_t* msg)
327 return _MAV_RETURN_uint16_t(msg, 24);
335 static inline uint8_t mavlink_msg_camera_status_get_event_id(
const mavlink_message_t* msg)
345 static inline float mavlink_msg_camera_status_get_p1(
const mavlink_message_t* msg)
347 return _MAV_RETURN_float(msg, 8);
355 static inline float mavlink_msg_camera_status_get_p2(
const mavlink_message_t* msg)
357 return _MAV_RETURN_float(msg, 12);
365 static inline float mavlink_msg_camera_status_get_p3(
const mavlink_message_t* msg)
367 return _MAV_RETURN_float(msg, 16);
375 static inline float mavlink_msg_camera_status_get_p4(
const mavlink_message_t* msg)
377 return _MAV_RETURN_float(msg, 20);
386 static inline void mavlink_msg_camera_status_decode(
const mavlink_message_t* msg,
mavlink_camera_status_t* camera_status)
388 #if MAVLINK_NEED_BYTE_SWAP
389 camera_status->
time_usec = mavlink_msg_camera_status_get_time_usec(msg);
390 camera_status->
p1 = mavlink_msg_camera_status_get_p1(msg);
391 camera_status->
p2 = mavlink_msg_camera_status_get_p2(msg);
392 camera_status->
p3 = mavlink_msg_camera_status_get_p3(msg);
393 camera_status->
p4 = mavlink_msg_camera_status_get_p4(msg);
394 camera_status->
img_idx = mavlink_msg_camera_status_get_img_idx(msg);
395 camera_status->
target_system = mavlink_msg_camera_status_get_target_system(msg);
396 camera_status->
cam_idx = mavlink_msg_camera_status_get_cam_idx(msg);
397 camera_status->
event_id = mavlink_msg_camera_status_get_event_id(msg);
float p4
Parameter 4 (meaning depends on event, see CAMERA_STATUS_TYPES enum)
Definition: mavlink_msg_camera_status.h:11
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
uint8_t cam_idx
Camera ID.
Definition: mavlink_msg_camera_status.h:14
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
#define MAVLINK_MSG_ID_CAMERA_STATUS_LEN
Definition: mavlink_msg_camera_status.h:18
Definition: mavlink_msg_camera_status.h:5
#define MAVLINK_MSG_ID_CAMERA_STATUS
Definition: mavlink_msg_camera_status.h:3
uint64_t time_usec
Image timestamp (microseconds since UNIX epoch, according to camera clock)
Definition: mavlink_msg_camera_status.h:7
uint8_t event_id
See CAMERA_STATUS_TYPES enum for definition of the bitmask.
Definition: mavlink_msg_camera_status.h:15
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 _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
mavlink_channel_t
Definition: mavlink_types.h:178
float p3
Parameter 3 (meaning depends on event, see CAMERA_STATUS_TYPES enum)
Definition: mavlink_msg_camera_status.h:10
float p2
Parameter 2 (meaning depends on event, see CAMERA_STATUS_TYPES enum)
Definition: mavlink_msg_camera_status.h:9
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
float p1
Parameter 1 (meaning depends on event, see CAMERA_STATUS_TYPES enum)
Definition: mavlink_msg_camera_status.h:8
struct __mavlink_camera_status_t mavlink_camera_status_t
#define MAVLINK_MSG_ID_CAMERA_STATUS_CRC
Definition: mavlink_msg_camera_status.h:21
uint8_t target_system
System ID.
Definition: mavlink_msg_camera_status.h:13
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
uint16_t img_idx
Image index.
Definition: mavlink_msg_camera_status.h:12
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