3 #define MAVLINK_MSG_ID_DIGICAM_CONFIGURE 154
20 #define MAVLINK_MSG_ID_DIGICAM_CONFIGURE_LEN 15
21 #define MAVLINK_MSG_ID_154_LEN 15
23 #define MAVLINK_MSG_ID_DIGICAM_CONFIGURE_CRC 84
24 #define MAVLINK_MSG_ID_154_CRC 84
28 #define MAVLINK_MESSAGE_INFO_DIGICAM_CONFIGURE { \
29 "DIGICAM_CONFIGURE", \
31 { { "extra_value", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_digicam_configure_t, extra_value) }, \
32 { "shutter_speed", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_digicam_configure_t, shutter_speed) }, \
33 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_digicam_configure_t, target_system) }, \
34 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_digicam_configure_t, target_component) }, \
35 { "mode", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_digicam_configure_t, mode) }, \
36 { "aperture", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_digicam_configure_t, aperture) }, \
37 { "iso", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_digicam_configure_t, iso) }, \
38 { "exposure_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 11, offsetof(mavlink_digicam_configure_t, exposure_type) }, \
39 { "command_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_digicam_configure_t, command_id) }, \
40 { "engine_cut_off", NULL, MAVLINK_TYPE_UINT8_T, 0, 13, offsetof(mavlink_digicam_configure_t, engine_cut_off) }, \
41 { "extra_param", NULL, MAVLINK_TYPE_UINT8_T, 0, 14, offsetof(mavlink_digicam_configure_t, extra_param) }, \
65 static inline uint16_t mavlink_msg_digicam_configure_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
66 uint8_t target_system, uint8_t target_component, uint8_t
mode, uint16_t shutter_speed, uint8_t aperture, uint8_t iso, uint8_t exposure_type, uint8_t command_id, uint8_t engine_cut_off, uint8_t extra_param,
float extra_value)
68 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
101 #if MAVLINK_CRC_EXTRA
127 static inline uint16_t mavlink_msg_digicam_configure_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
128 mavlink_message_t* msg,
129 uint8_t target_system,uint8_t target_component,uint8_t
mode,uint16_t shutter_speed,uint8_t aperture,uint8_t iso,uint8_t exposure_type,uint8_t command_id,uint8_t engine_cut_off,uint8_t extra_param,
float extra_value)
131 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
164 #if MAVLINK_CRC_EXTRA
179 static inline uint16_t mavlink_msg_digicam_configure_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_digicam_configure_t* digicam_configure)
181 return mavlink_msg_digicam_configure_pack(system_id, component_id, msg, digicam_configure->
target_system, digicam_configure->
target_component, digicam_configure->
mode, digicam_configure->
shutter_speed, digicam_configure->
aperture, digicam_configure->
iso, digicam_configure->
exposure_type, digicam_configure->
command_id, digicam_configure->
engine_cut_off, digicam_configure->
extra_param, digicam_configure->
extra_value);
193 static inline uint16_t mavlink_msg_digicam_configure_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_digicam_configure_t* digicam_configure)
195 return mavlink_msg_digicam_configure_pack_chan(system_id, component_id, chan, msg, digicam_configure->
target_system, digicam_configure->
target_component, digicam_configure->
mode, digicam_configure->
shutter_speed, digicam_configure->
aperture, digicam_configure->
iso, digicam_configure->
exposure_type, digicam_configure->
command_id, digicam_configure->
engine_cut_off, digicam_configure->
extra_param, digicam_configure->
extra_value);
214 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
216 static inline void mavlink_msg_digicam_configure_send(
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t mode, uint16_t shutter_speed, uint8_t aperture, uint8_t iso, uint8_t exposure_type, uint8_t command_id, uint8_t engine_cut_off, uint8_t extra_param,
float extra_value)
218 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
232 #if MAVLINK_CRC_EXTRA
251 #if MAVLINK_CRC_EXTRA
259 #if MAVLINK_MSG_ID_DIGICAM_CONFIGURE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
267 static inline void mavlink_msg_digicam_configure_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t mode, uint16_t shutter_speed, uint8_t aperture, uint8_t iso, uint8_t exposure_type, uint8_t command_id, uint8_t engine_cut_off, uint8_t extra_param,
float extra_value)
269 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
270 char *buf = (
char *)msgbuf;
283 #if MAVLINK_CRC_EXTRA
302 #if MAVLINK_CRC_EXTRA
321 static inline uint8_t mavlink_msg_digicam_configure_get_target_system(
const mavlink_message_t* msg)
331 static inline uint8_t mavlink_msg_digicam_configure_get_target_component(
const mavlink_message_t* msg)
341 static inline uint8_t mavlink_msg_digicam_configure_get_mode(
const mavlink_message_t* msg)
351 static inline uint16_t mavlink_msg_digicam_configure_get_shutter_speed(
const mavlink_message_t* msg)
353 return _MAV_RETURN_uint16_t(msg, 4);
361 static inline uint8_t mavlink_msg_digicam_configure_get_aperture(
const mavlink_message_t* msg)
371 static inline uint8_t mavlink_msg_digicam_configure_get_iso(
const mavlink_message_t* msg)
381 static inline uint8_t mavlink_msg_digicam_configure_get_exposure_type(
const mavlink_message_t* msg)
391 static inline uint8_t mavlink_msg_digicam_configure_get_command_id(
const mavlink_message_t* msg)
401 static inline uint8_t mavlink_msg_digicam_configure_get_engine_cut_off(
const mavlink_message_t* msg)
411 static inline uint8_t mavlink_msg_digicam_configure_get_extra_param(
const mavlink_message_t* msg)
421 static inline float mavlink_msg_digicam_configure_get_extra_value(
const mavlink_message_t* msg)
423 return _MAV_RETURN_float(msg, 0);
432 static inline void mavlink_msg_digicam_configure_decode(
const mavlink_message_t* msg,
mavlink_digicam_configure_t* digicam_configure)
434 #if MAVLINK_NEED_BYTE_SWAP
435 digicam_configure->
extra_value = mavlink_msg_digicam_configure_get_extra_value(msg);
436 digicam_configure->
shutter_speed = mavlink_msg_digicam_configure_get_shutter_speed(msg);
437 digicam_configure->
target_system = mavlink_msg_digicam_configure_get_target_system(msg);
438 digicam_configure->
target_component = mavlink_msg_digicam_configure_get_target_component(msg);
439 digicam_configure->
mode = mavlink_msg_digicam_configure_get_mode(msg);
440 digicam_configure->
aperture = mavlink_msg_digicam_configure_get_aperture(msg);
441 digicam_configure->
iso = mavlink_msg_digicam_configure_get_iso(msg);
442 digicam_configure->
exposure_type = mavlink_msg_digicam_configure_get_exposure_type(msg);
443 digicam_configure->
command_id = mavlink_msg_digicam_configure_get_command_id(msg);
444 digicam_configure->
engine_cut_off = mavlink_msg_digicam_configure_get_engine_cut_off(msg);
445 digicam_configure->
extra_param = mavlink_msg_digicam_configure_get_extra_param(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
uint8_t mode
Definition: gimbal.h:49
#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
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
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