3 #define MAVLINK_MSG_ID_DIGICAM_CONTROL 155
19 #define MAVLINK_MSG_ID_DIGICAM_CONTROL_LEN 13
20 #define MAVLINK_MSG_ID_155_LEN 13
22 #define MAVLINK_MSG_ID_DIGICAM_CONTROL_CRC 22
23 #define MAVLINK_MSG_ID_155_CRC 22
27 #define MAVLINK_MESSAGE_INFO_DIGICAM_CONTROL { \
30 { { "extra_value", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_digicam_control_t, extra_value) }, \
31 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_digicam_control_t, target_system) }, \
32 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_digicam_control_t, target_component) }, \
33 { "session", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_digicam_control_t, session) }, \
34 { "zoom_pos", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_digicam_control_t, zoom_pos) }, \
35 { "zoom_step", NULL, MAVLINK_TYPE_INT8_T, 0, 8, offsetof(mavlink_digicam_control_t, zoom_step) }, \
36 { "focus_lock", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_digicam_control_t, focus_lock) }, \
37 { "shot", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_digicam_control_t, shot) }, \
38 { "command_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 11, offsetof(mavlink_digicam_control_t, command_id) }, \
39 { "extra_param", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_digicam_control_t, extra_param) }, \
62 static inline uint16_t mavlink_msg_digicam_control_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
63 uint8_t target_system, uint8_t target_component, uint8_t session, uint8_t zoom_pos, int8_t zoom_step, uint8_t focus_lock, uint8_t shot, uint8_t command_id, uint8_t extra_param,
float extra_value)
65 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
121 static inline uint16_t mavlink_msg_digicam_control_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
122 mavlink_message_t* msg,
123 uint8_t target_system,uint8_t target_component,uint8_t session,uint8_t zoom_pos,int8_t zoom_step,uint8_t focus_lock,uint8_t shot,uint8_t command_id,uint8_t extra_param,
float extra_value)
125 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
156 #if MAVLINK_CRC_EXTRA
171 static inline uint16_t mavlink_msg_digicam_control_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_digicam_control_t* digicam_control)
173 return mavlink_msg_digicam_control_pack(system_id, component_id, msg, digicam_control->
target_system, digicam_control->
target_component, digicam_control->
session, digicam_control->
zoom_pos, digicam_control->
zoom_step, digicam_control->
focus_lock, digicam_control->
shot, digicam_control->
command_id, digicam_control->
extra_param, digicam_control->
extra_value);
185 static inline uint16_t mavlink_msg_digicam_control_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_digicam_control_t* digicam_control)
187 return mavlink_msg_digicam_control_pack_chan(system_id, component_id, chan, msg, digicam_control->
target_system, digicam_control->
target_component, digicam_control->
session, digicam_control->
zoom_pos, digicam_control->
zoom_step, digicam_control->
focus_lock, digicam_control->
shot, digicam_control->
command_id, digicam_control->
extra_param, digicam_control->
extra_value);
205 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
207 static inline void mavlink_msg_digicam_control_send(
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t session, uint8_t zoom_pos, int8_t zoom_step, uint8_t focus_lock, uint8_t shot, uint8_t command_id, uint8_t extra_param,
float extra_value)
209 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
222 #if MAVLINK_CRC_EXTRA
240 #if MAVLINK_CRC_EXTRA
248 #if MAVLINK_MSG_ID_DIGICAM_CONTROL_LEN <= MAVLINK_MAX_PAYLOAD_LEN
256 static inline void mavlink_msg_digicam_control_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t session, uint8_t zoom_pos, int8_t zoom_step, uint8_t focus_lock, uint8_t shot, uint8_t command_id, uint8_t extra_param,
float extra_value)
258 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
259 char *buf = (
char *)msgbuf;
271 #if MAVLINK_CRC_EXTRA
289 #if MAVLINK_CRC_EXTRA
308 static inline uint8_t mavlink_msg_digicam_control_get_target_system(
const mavlink_message_t* msg)
318 static inline uint8_t mavlink_msg_digicam_control_get_target_component(
const mavlink_message_t* msg)
328 static inline uint8_t mavlink_msg_digicam_control_get_session(
const mavlink_message_t* msg)
338 static inline uint8_t mavlink_msg_digicam_control_get_zoom_pos(
const mavlink_message_t* msg)
348 static inline int8_t mavlink_msg_digicam_control_get_zoom_step(
const mavlink_message_t* msg)
358 static inline uint8_t mavlink_msg_digicam_control_get_focus_lock(
const mavlink_message_t* msg)
368 static inline uint8_t mavlink_msg_digicam_control_get_shot(
const mavlink_message_t* msg)
378 static inline uint8_t mavlink_msg_digicam_control_get_command_id(
const mavlink_message_t* msg)
388 static inline uint8_t mavlink_msg_digicam_control_get_extra_param(
const mavlink_message_t* msg)
398 static inline float mavlink_msg_digicam_control_get_extra_value(
const mavlink_message_t* msg)
400 return _MAV_RETURN_float(msg, 0);
409 static inline void mavlink_msg_digicam_control_decode(
const mavlink_message_t* msg,
mavlink_digicam_control_t* digicam_control)
411 #if MAVLINK_NEED_BYTE_SWAP
412 digicam_control->
extra_value = mavlink_msg_digicam_control_get_extra_value(msg);
413 digicam_control->
target_system = mavlink_msg_digicam_control_get_target_system(msg);
414 digicam_control->
target_component = mavlink_msg_digicam_control_get_target_component(msg);
415 digicam_control->
session = mavlink_msg_digicam_control_get_session(msg);
416 digicam_control->
zoom_pos = mavlink_msg_digicam_control_get_zoom_pos(msg);
417 digicam_control->
zoom_step = mavlink_msg_digicam_control_get_zoom_step(msg);
418 digicam_control->
focus_lock = mavlink_msg_digicam_control_get_focus_lock(msg);
419 digicam_control->
shot = mavlink_msg_digicam_control_get_shot(msg);
420 digicam_control->
command_id = mavlink_msg_digicam_control_get_command_id(msg);
421 digicam_control->
extra_param = mavlink_msg_digicam_control_get_extra_param(msg);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
uint8_t target_system
System ID.
Definition: mavlink_msg_digicam_control.h:8
uint8_t shot
0: ignore, 1: shot or start filming
Definition: mavlink_msg_digicam_control.h:14
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint8_t command_id
Command Identity (incremental loop: 0 to 255)//A command sent multiple times will be executed or pool...
Definition: mavlink_msg_digicam_control.h:15
#define MAVLINK_MSG_ID_DIGICAM_CONTROL_LEN
Definition: mavlink_msg_digicam_control.h:19
uint8_t focus_lock
0: unlock focus or keep unlocked, 1: lock focus or keep locked, 3: re-lock focus
Definition: mavlink_msg_digicam_control.h:13
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
#define _MAV_RETURN_int8_t(msg, wire_offset)
Definition: protocol.h:237
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
struct __mavlink_digicam_control_t mavlink_digicam_control_t
#define MAVLINK_MSG_ID_DIGICAM_CONTROL
Definition: mavlink_msg_digicam_control.h:3
uint8_t target_component
Component ID.
Definition: mavlink_msg_digicam_control.h:9
int8_t zoom_step
-100 to 100 //Zooming step value to offset zoom from the current position
Definition: mavlink_msg_digicam_control.h:12
uint8_t extra_param
Extra parameters enumeration (0 means ignore)
Definition: mavlink_msg_digicam_control.h:16
#define _mav_put_int8_t(buf, wire_offset, b)
Definition: protocol.h:135
float extra_value
Correspondent value to given extra_param.
Definition: mavlink_msg_digicam_control.h:7
#define MAVLINK_MSG_ID_DIGICAM_CONTROL_CRC
Definition: mavlink_msg_digicam_control.h:22
Definition: mavlink_msg_digicam_control.h:5
uint8_t session
0: stop, 1: start or keep it up //Session control e.g. show/hide lens
Definition: mavlink_msg_digicam_control.h:10
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
uint8_t zoom_pos
1 to N //Zoom's absolute position (0 means ignore)
Definition: mavlink_msg_digicam_control.h:11