3 #define MAVLINK_MSG_ID_SET_CAM_SHUTTER 151
15 #define MAVLINK_MSG_ID_SET_CAM_SHUTTER_LEN 11
16 #define MAVLINK_MSG_ID_151_LEN 11
18 #define MAVLINK_MSG_ID_SET_CAM_SHUTTER_CRC 108
19 #define MAVLINK_MSG_ID_151_CRC 108
23 #define MAVLINK_MESSAGE_INFO_SET_CAM_SHUTTER { \
26 { { "gain", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_set_cam_shutter_t, gain) }, \
27 { "interval", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_set_cam_shutter_t, interval) }, \
28 { "exposure", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_set_cam_shutter_t, exposure) }, \
29 { "cam_no", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_set_cam_shutter_t, cam_no) }, \
30 { "cam_mode", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_set_cam_shutter_t, cam_mode) }, \
31 { "trigger_pin", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_set_cam_shutter_t, trigger_pin) }, \
50 static inline uint16_t mavlink_msg_set_cam_shutter_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
51 uint8_t cam_no, uint8_t cam_mode, uint8_t trigger_pin, uint16_t interval, uint16_t exposure,
float gain)
53 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
97 static inline uint16_t mavlink_msg_set_cam_shutter_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
98 mavlink_message_t* msg,
99 uint8_t cam_no,uint8_t cam_mode,uint8_t trigger_pin,uint16_t interval,uint16_t exposure,
float gain)
101 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
124 #if MAVLINK_CRC_EXTRA
139 static inline uint16_t mavlink_msg_set_cam_shutter_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_set_cam_shutter_t* set_cam_shutter)
141 return mavlink_msg_set_cam_shutter_pack(system_id, component_id, msg, set_cam_shutter->
cam_no, set_cam_shutter->
cam_mode, set_cam_shutter->
trigger_pin, set_cam_shutter->
interval, set_cam_shutter->
exposure, set_cam_shutter->
gain);
153 static inline uint16_t mavlink_msg_set_cam_shutter_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_set_cam_shutter_t* set_cam_shutter)
155 return mavlink_msg_set_cam_shutter_pack_chan(system_id, component_id, chan, msg, set_cam_shutter->
cam_no, set_cam_shutter->
cam_mode, set_cam_shutter->
trigger_pin, set_cam_shutter->
interval, set_cam_shutter->
exposure, set_cam_shutter->
gain);
169 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
171 static inline void mavlink_msg_set_cam_shutter_send(
mavlink_channel_t chan, uint8_t cam_no, uint8_t cam_mode, uint8_t trigger_pin, uint16_t interval, uint16_t exposure,
float gain)
173 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
182 #if MAVLINK_CRC_EXTRA
196 #if MAVLINK_CRC_EXTRA
204 #if MAVLINK_MSG_ID_SET_CAM_SHUTTER_LEN <= MAVLINK_MAX_PAYLOAD_LEN
212 static inline void mavlink_msg_set_cam_shutter_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t cam_no, uint8_t cam_mode, uint8_t trigger_pin, uint16_t interval, uint16_t exposure,
float gain)
214 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
215 char *buf = (
char *)msgbuf;
223 #if MAVLINK_CRC_EXTRA
237 #if MAVLINK_CRC_EXTRA
256 static inline uint8_t mavlink_msg_set_cam_shutter_get_cam_no(
const mavlink_message_t* msg)
266 static inline uint8_t mavlink_msg_set_cam_shutter_get_cam_mode(
const mavlink_message_t* msg)
276 static inline uint8_t mavlink_msg_set_cam_shutter_get_trigger_pin(
const mavlink_message_t* msg)
286 static inline uint16_t mavlink_msg_set_cam_shutter_get_interval(
const mavlink_message_t* msg)
288 return _MAV_RETURN_uint16_t(msg, 4);
296 static inline uint16_t mavlink_msg_set_cam_shutter_get_exposure(
const mavlink_message_t* msg)
298 return _MAV_RETURN_uint16_t(msg, 6);
306 static inline float mavlink_msg_set_cam_shutter_get_gain(
const mavlink_message_t* msg)
308 return _MAV_RETURN_float(msg, 0);
317 static inline void mavlink_msg_set_cam_shutter_decode(
const mavlink_message_t* msg,
mavlink_set_cam_shutter_t* set_cam_shutter)
319 #if MAVLINK_NEED_BYTE_SWAP
320 set_cam_shutter->
gain = mavlink_msg_set_cam_shutter_get_gain(msg);
321 set_cam_shutter->
interval = mavlink_msg_set_cam_shutter_get_interval(msg);
322 set_cam_shutter->
exposure = mavlink_msg_set_cam_shutter_get_exposure(msg);
323 set_cam_shutter->
cam_no = mavlink_msg_set_cam_shutter_get_cam_no(msg);
324 set_cam_shutter->
cam_mode = mavlink_msg_set_cam_shutter_get_cam_mode(msg);
325 set_cam_shutter->
trigger_pin = mavlink_msg_set_cam_shutter_get_trigger_pin(msg);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
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_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
mavlink_channel_t
Definition: mavlink_types.h:178
float gain
Camera gain.
Definition: mavlink_msg_set_cam_shutter.h:7
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
uint16_t exposure
Exposure time, in microseconds.
Definition: mavlink_msg_set_cam_shutter.h:9
#define MAVLINK_MSG_ID_SET_CAM_SHUTTER_CRC
Definition: mavlink_msg_set_cam_shutter.h:18
uint8_t trigger_pin
Trigger pin, 0-3 for PtGrey FireFly.
Definition: mavlink_msg_set_cam_shutter.h:12
uint8_t cam_no
Camera id.
Definition: mavlink_msg_set_cam_shutter.h:10
#define MAVLINK_MSG_ID_SET_CAM_SHUTTER
Definition: mavlink_msg_set_cam_shutter.h:3
struct __mavlink_set_cam_shutter_t mavlink_set_cam_shutter_t
uint8_t cam_mode
Camera mode: 0 = auto, 1 = manual.
Definition: mavlink_msg_set_cam_shutter.h:11
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
Definition: mavlink_msg_set_cam_shutter.h:5
#define MAVLINK_MSG_ID_SET_CAM_SHUTTER_LEN
Definition: mavlink_msg_set_cam_shutter.h:15
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
uint16_t interval
Shutter interval, in microseconds.
Definition: mavlink_msg_set_cam_shutter.h:8