3 #define MAVLINK_MSG_ID_SLUGS_CAMERA_ORDER 184
14 #define MAVLINK_MSG_ID_SLUGS_CAMERA_ORDER_LEN 5
15 #define MAVLINK_MSG_ID_184_LEN 5
17 #define MAVLINK_MSG_ID_SLUGS_CAMERA_ORDER_CRC 45
18 #define MAVLINK_MSG_ID_184_CRC 45
22 #define MAVLINK_MESSAGE_INFO_SLUGS_CAMERA_ORDER { \
23 "SLUGS_CAMERA_ORDER", \
25 { { "target", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_slugs_camera_order_t, target) }, \
26 { "pan", NULL, MAVLINK_TYPE_INT8_T, 0, 1, offsetof(mavlink_slugs_camera_order_t, pan) }, \
27 { "tilt", NULL, MAVLINK_TYPE_INT8_T, 0, 2, offsetof(mavlink_slugs_camera_order_t, tilt) }, \
28 { "zoom", NULL, MAVLINK_TYPE_INT8_T, 0, 3, offsetof(mavlink_slugs_camera_order_t, zoom) }, \
29 { "moveHome", NULL, MAVLINK_TYPE_INT8_T, 0, 4, offsetof(mavlink_slugs_camera_order_t, moveHome) }, \
47 static inline uint16_t mavlink_msg_slugs_camera_order_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
48 uint8_t target, int8_t pan, int8_t
tilt, int8_t zoom, int8_t moveHome)
50 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
91 static inline uint16_t mavlink_msg_slugs_camera_order_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
92 mavlink_message_t* msg,
93 uint8_t target,int8_t pan,int8_t
tilt,int8_t zoom,int8_t moveHome)
95 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
116 #if MAVLINK_CRC_EXTRA
131 static inline uint16_t mavlink_msg_slugs_camera_order_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_slugs_camera_order_t* slugs_camera_order)
133 return mavlink_msg_slugs_camera_order_pack(system_id, component_id, msg, slugs_camera_order->
target, slugs_camera_order->
pan, slugs_camera_order->
tilt, slugs_camera_order->
zoom, slugs_camera_order->
moveHome);
145 static inline uint16_t mavlink_msg_slugs_camera_order_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_slugs_camera_order_t* slugs_camera_order)
147 return mavlink_msg_slugs_camera_order_pack_chan(system_id, component_id, chan, msg, slugs_camera_order->
target, slugs_camera_order->
pan, slugs_camera_order->
tilt, slugs_camera_order->
zoom, slugs_camera_order->
moveHome);
160 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
162 static inline void mavlink_msg_slugs_camera_order_send(
mavlink_channel_t chan, uint8_t target, int8_t pan, int8_t tilt, int8_t zoom, int8_t moveHome)
164 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
172 #if MAVLINK_CRC_EXTRA
185 #if MAVLINK_CRC_EXTRA
193 #if MAVLINK_MSG_ID_SLUGS_CAMERA_ORDER_LEN <= MAVLINK_MAX_PAYLOAD_LEN
201 static inline void mavlink_msg_slugs_camera_order_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t target, int8_t pan, int8_t tilt, int8_t zoom, int8_t moveHome)
203 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
204 char *buf = (
char *)msgbuf;
211 #if MAVLINK_CRC_EXTRA
224 #if MAVLINK_CRC_EXTRA
243 static inline uint8_t mavlink_msg_slugs_camera_order_get_target(
const mavlink_message_t* msg)
253 static inline int8_t mavlink_msg_slugs_camera_order_get_pan(
const mavlink_message_t* msg)
263 static inline int8_t mavlink_msg_slugs_camera_order_get_tilt(
const mavlink_message_t* msg)
273 static inline int8_t mavlink_msg_slugs_camera_order_get_zoom(
const mavlink_message_t* msg)
283 static inline int8_t mavlink_msg_slugs_camera_order_get_moveHome(
const mavlink_message_t* msg)
294 static inline void mavlink_msg_slugs_camera_order_decode(
const mavlink_message_t* msg,
mavlink_slugs_camera_order_t* slugs_camera_order)
296 #if MAVLINK_NEED_BYTE_SWAP
297 slugs_camera_order->
target = mavlink_msg_slugs_camera_order_get_target(msg);
298 slugs_camera_order->
pan = mavlink_msg_slugs_camera_order_get_pan(msg);
299 slugs_camera_order->
tilt = mavlink_msg_slugs_camera_order_get_tilt(msg);
300 slugs_camera_order->
zoom = mavlink_msg_slugs_camera_order_get_zoom(msg);
301 slugs_camera_order->
moveHome = mavlink_msg_slugs_camera_order_get_moveHome(msg);
struct __mavlink_slugs_camera_order_t mavlink_slugs_camera_order_t
int8_t moveHome
Orders the camera mount to move home. The other fields are ignored when this field is set...
Definition: mavlink_msg_slugs_camera_order.h:11
#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
#define MAVLINK_MSG_ID_SLUGS_CAMERA_ORDER_CRC
Definition: mavlink_msg_slugs_camera_order.h:17
#define _MAV_RETURN_int8_t(msg, wire_offset)
Definition: protocol.h:237
mavlink_channel_t
Definition: mavlink_types.h:178
int8_t zoom
Order the zoom values 0 to 10.
Definition: mavlink_msg_slugs_camera_order.h:10
Definition: mavlink_msg_slugs_camera_order.h:5
uint8_t target
The system reporting the action.
Definition: mavlink_msg_slugs_camera_order.h:7
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
int8_t tilt
Order the mount to tilt: -1 down, 0 No tilt motion, +1 up.
Definition: mavlink_msg_slugs_camera_order.h:9
struct tilt_config tilt
Definition: config.h:118
#define _mav_put_int8_t(buf, wire_offset, b)
Definition: protocol.h:135
#define MAVLINK_MSG_ID_SLUGS_CAMERA_ORDER_LEN
Definition: mavlink_msg_slugs_camera_order.h:14
#define MAVLINK_MSG_ID_SLUGS_CAMERA_ORDER
Definition: mavlink_msg_slugs_camera_order.h:3
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
int8_t pan
Order the mount to pan: -1 left, 0 No pan motion, +1 right.
Definition: mavlink_msg_slugs_camera_order.h:8