3 #define MAVLINK_MSG_ID_MOUNT_CONFIGURE 156
15 #define MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN 6
16 #define MAVLINK_MSG_ID_156_LEN 6
18 #define MAVLINK_MSG_ID_MOUNT_CONFIGURE_CRC 19
19 #define MAVLINK_MSG_ID_156_CRC 19
23 #define MAVLINK_MESSAGE_INFO_MOUNT_CONFIGURE { \
26 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_mount_configure_t, target_system) }, \
27 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_mount_configure_t, target_component) }, \
28 { "mount_mode", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_mount_configure_t, mount_mode) }, \
29 { "stab_roll", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_mount_configure_t, stab_roll) }, \
30 { "stab_pitch", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_mount_configure_t, stab_pitch) }, \
31 { "stab_yaw", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_mount_configure_t, stab_yaw) }, \
50 static inline uint16_t mavlink_msg_mount_configure_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
51 uint8_t target_system, uint8_t target_component, uint8_t mount_mode, uint8_t stab_roll, uint8_t stab_pitch, uint8_t stab_yaw)
53 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
97 static inline uint16_t mavlink_msg_mount_configure_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
98 mavlink_message_t* msg,
99 uint8_t target_system,uint8_t target_component,uint8_t mount_mode,uint8_t stab_roll,uint8_t stab_pitch,uint8_t stab_yaw)
101 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
124 #if MAVLINK_CRC_EXTRA
139 static inline uint16_t mavlink_msg_mount_configure_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_mount_configure_t* mount_configure)
153 static inline uint16_t mavlink_msg_mount_configure_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_mount_configure_t* mount_configure)
169 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
171 static inline void mavlink_msg_mount_configure_send(
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t mount_mode, uint8_t stab_roll, uint8_t stab_pitch, uint8_t stab_yaw)
173 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
182 #if MAVLINK_CRC_EXTRA
196 #if MAVLINK_CRC_EXTRA
204 #if MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
212 static inline void mavlink_msg_mount_configure_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t mount_mode, uint8_t stab_roll, uint8_t stab_pitch, uint8_t stab_yaw)
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_mount_configure_get_target_system(
const mavlink_message_t* msg)
266 static inline uint8_t mavlink_msg_mount_configure_get_target_component(
const mavlink_message_t* msg)
276 static inline uint8_t mavlink_msg_mount_configure_get_mount_mode(
const mavlink_message_t* msg)
286 static inline uint8_t mavlink_msg_mount_configure_get_stab_roll(
const mavlink_message_t* msg)
296 static inline uint8_t mavlink_msg_mount_configure_get_stab_pitch(
const mavlink_message_t* msg)
306 static inline uint8_t mavlink_msg_mount_configure_get_stab_yaw(
const mavlink_message_t* msg)
317 static inline void mavlink_msg_mount_configure_decode(
const mavlink_message_t* msg,
mavlink_mount_configure_t* mount_configure)
319 #if MAVLINK_NEED_BYTE_SWAP
320 mount_configure->
target_system = mavlink_msg_mount_configure_get_target_system(msg);
321 mount_configure->
target_component = mavlink_msg_mount_configure_get_target_component(msg);
322 mount_configure->
mount_mode = mavlink_msg_mount_configure_get_mount_mode(msg);
323 mount_configure->
stab_roll = mavlink_msg_mount_configure_get_stab_roll(msg);
324 mount_configure->
stab_pitch = mavlink_msg_mount_configure_get_stab_pitch(msg);
325 mount_configure->
stab_yaw = mavlink_msg_mount_configure_get_stab_yaw(msg);
#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
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
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