3 #define MAVLINK_MSG_ID_SLUGS_CONFIGURATION_CAMERA 188
12 #define MAVLINK_MSG_ID_SLUGS_CONFIGURATION_CAMERA_LEN 3
13 #define MAVLINK_MSG_ID_188_LEN 3
15 #define MAVLINK_MSG_ID_SLUGS_CONFIGURATION_CAMERA_CRC 5
16 #define MAVLINK_MSG_ID_188_CRC 5
20 #define MAVLINK_MESSAGE_INFO_SLUGS_CONFIGURATION_CAMERA { \
21 "SLUGS_CONFIGURATION_CAMERA", \
23 { { "target", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_slugs_configuration_camera_t, target) }, \
24 { "idOrder", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_slugs_configuration_camera_t, idOrder) }, \
25 { "order", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_slugs_configuration_camera_t, order) }, \
41 static inline uint16_t mavlink_msg_slugs_configuration_camera_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
42 uint8_t target, uint8_t idOrder, uint8_t order)
44 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
79 static inline uint16_t mavlink_msg_slugs_configuration_camera_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
80 mavlink_message_t* msg,
81 uint8_t target,uint8_t idOrder,uint8_t order)
83 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
100 #if MAVLINK_CRC_EXTRA
115 static inline uint16_t mavlink_msg_slugs_configuration_camera_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_slugs_configuration_camera_t* slugs_configuration_camera)
117 return mavlink_msg_slugs_configuration_camera_pack(system_id, component_id, msg, slugs_configuration_camera->
target, slugs_configuration_camera->
idOrder, slugs_configuration_camera->
order);
129 static inline uint16_t mavlink_msg_slugs_configuration_camera_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_slugs_configuration_camera_t* slugs_configuration_camera)
131 return mavlink_msg_slugs_configuration_camera_pack_chan(system_id, component_id, chan, msg, slugs_configuration_camera->
target, slugs_configuration_camera->
idOrder, slugs_configuration_camera->
order);
142 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
144 static inline void mavlink_msg_slugs_configuration_camera_send(
mavlink_channel_t chan, uint8_t target, uint8_t idOrder, uint8_t order)
146 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
152 #if MAVLINK_CRC_EXTRA
161 packet.
order = order;
163 #if MAVLINK_CRC_EXTRA
171 #if MAVLINK_MSG_ID_SLUGS_CONFIGURATION_CAMERA_LEN <= MAVLINK_MAX_PAYLOAD_LEN
179 static inline void mavlink_msg_slugs_configuration_camera_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t target, uint8_t idOrder, uint8_t order)
181 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
182 char *buf = (
char *)msgbuf;
187 #if MAVLINK_CRC_EXTRA
196 packet->
order = order;
198 #if MAVLINK_CRC_EXTRA
217 static inline uint8_t mavlink_msg_slugs_configuration_camera_get_target(
const mavlink_message_t* msg)
227 static inline uint8_t mavlink_msg_slugs_configuration_camera_get_idOrder(
const mavlink_message_t* msg)
237 static inline uint8_t mavlink_msg_slugs_configuration_camera_get_order(
const mavlink_message_t* msg)
250 #if MAVLINK_NEED_BYTE_SWAP
251 slugs_configuration_camera->
target = mavlink_msg_slugs_configuration_camera_get_target(msg);
252 slugs_configuration_camera->
idOrder = mavlink_msg_slugs_configuration_camera_get_idOrder(msg);
253 slugs_configuration_camera->
order = mavlink_msg_slugs_configuration_camera_get_order(msg);
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
struct __mavlink_slugs_configuration_camera_t mavlink_slugs_configuration_camera_t
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
uint8_t idOrder
ID 0: brightness 1: aperture 2: iris 3: ICR 4: backlight.
Definition: mavlink_msg_slugs_configuration_camera.h:8
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#define MAVLINK_MSG_ID_SLUGS_CONFIGURATION_CAMERA_CRC
Definition: mavlink_msg_slugs_configuration_camera.h:15
uint8_t order
1: up/on 2: down/off 3: auto/reset/no action
Definition: mavlink_msg_slugs_configuration_camera.h:9
#define MAVLINK_MSG_ID_SLUGS_CONFIGURATION_CAMERA
Definition: mavlink_msg_slugs_configuration_camera.h:3
#define MAVLINK_MSG_ID_SLUGS_CONFIGURATION_CAMERA_LEN
Definition: mavlink_msg_slugs_configuration_camera.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
Definition: mavlink_msg_slugs_configuration_camera.h:5
uint8_t target
The system setting the commands.
Definition: mavlink_msg_slugs_configuration_camera.h:7