4#define MAVLINK_MSG_ID_MOUNT_CONFIGURE 156
7typedef struct __mavlink_mount_configure_t {
9 uint8_t target_component;
14}) mavlink_mount_configure_t;
16#define MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN 6
17#define MAVLINK_MSG_ID_MOUNT_CONFIGURE_MIN_LEN 6
18#define MAVLINK_MSG_ID_156_LEN 6
19#define MAVLINK_MSG_ID_156_MIN_LEN 6
21#define MAVLINK_MSG_ID_MOUNT_CONFIGURE_CRC 19
22#define MAVLINK_MSG_ID_156_CRC 19
26#if MAVLINK_COMMAND_24BIT
27#define MAVLINK_MESSAGE_INFO_MOUNT_CONFIGURE { \
31 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_mount_configure_t, target_system) }, \
32 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_mount_configure_t, target_component) }, \
33 { "mount_mode", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_mount_configure_t, mount_mode) }, \
34 { "stab_roll", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_mount_configure_t, stab_roll) }, \
35 { "stab_pitch", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_mount_configure_t, stab_pitch) }, \
36 { "stab_yaw", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_mount_configure_t, stab_yaw) }, \
40#define MAVLINK_MESSAGE_INFO_MOUNT_CONFIGURE { \
43 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_mount_configure_t, target_system) }, \
44 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_mount_configure_t, target_component) }, \
45 { "mount_mode", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_mount_configure_t, mount_mode) }, \
46 { "stab_roll", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_mount_configure_t, stab_roll) }, \
47 { "stab_pitch", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_mount_configure_t, stab_pitch) }, \
48 { "stab_yaw", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_mount_configure_t, stab_yaw) }, \
67static inline uint16_t mavlink_msg_mount_configure_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
68 uint8_t target_system, uint8_t target_component, uint8_t mount_mode, uint8_t stab_roll, uint8_t stab_pitch, uint8_t stab_yaw)
70#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
71 char buf[MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN];
72 _mav_put_uint8_t(buf, 0, target_system);
73 _mav_put_uint8_t(buf, 1, target_component);
74 _mav_put_uint8_t(buf, 2, mount_mode);
75 _mav_put_uint8_t(buf, 3, stab_roll);
76 _mav_put_uint8_t(buf, 4, stab_pitch);
77 _mav_put_uint8_t(buf, 5, stab_yaw);
79 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN);
81 mavlink_mount_configure_t packet;
82 packet.target_system = target_system;
83 packet.target_component = target_component;
84 packet.mount_mode = mount_mode;
85 packet.stab_roll = stab_roll;
86 packet.stab_pitch = stab_pitch;
87 packet.stab_yaw = stab_yaw;
89 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN);
92 msg->msgid = MAVLINK_MSG_ID_MOUNT_CONFIGURE;
93 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_MOUNT_CONFIGURE_MIN_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_CRC);
110static inline uint16_t mavlink_msg_mount_configure_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
111 mavlink_message_t* msg,
112 uint8_t target_system,uint8_t target_component,uint8_t mount_mode,uint8_t stab_roll,uint8_t stab_pitch,uint8_t stab_yaw)
114#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
115 char buf[MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN];
116 _mav_put_uint8_t(buf, 0, target_system);
117 _mav_put_uint8_t(buf, 1, target_component);
118 _mav_put_uint8_t(buf, 2, mount_mode);
119 _mav_put_uint8_t(buf, 3, stab_roll);
120 _mav_put_uint8_t(buf, 4, stab_pitch);
121 _mav_put_uint8_t(buf, 5, stab_yaw);
123 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN);
125 mavlink_mount_configure_t packet;
126 packet.target_system = target_system;
127 packet.target_component = target_component;
128 packet.mount_mode = mount_mode;
129 packet.stab_roll = stab_roll;
130 packet.stab_pitch = stab_pitch;
131 packet.stab_yaw = stab_yaw;
133 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN);
136 msg->msgid = MAVLINK_MSG_ID_MOUNT_CONFIGURE;
137 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_MOUNT_CONFIGURE_MIN_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_CRC);
148static 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)
150 return mavlink_msg_mount_configure_pack(system_id, component_id, msg, mount_configure->target_system, mount_configure->target_component, mount_configure->mount_mode, mount_configure->stab_roll, mount_configure->stab_pitch, mount_configure->stab_yaw);
162static 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)
164 return mavlink_msg_mount_configure_pack_chan(system_id, component_id, chan, msg, mount_configure->target_system, mount_configure->target_component, mount_configure->mount_mode, mount_configure->stab_roll, mount_configure->stab_pitch, mount_configure->stab_yaw);
178#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
180static 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)
182#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
183 char buf[MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN];
184 _mav_put_uint8_t(buf, 0, target_system);
185 _mav_put_uint8_t(buf, 1, target_component);
186 _mav_put_uint8_t(buf, 2, mount_mode);
187 _mav_put_uint8_t(buf, 3, stab_roll);
188 _mav_put_uint8_t(buf, 4, stab_pitch);
189 _mav_put_uint8_t(buf, 5, stab_yaw);
191 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MOUNT_CONFIGURE, buf, MAVLINK_MSG_ID_MOUNT_CONFIGURE_MIN_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_CRC);
193 mavlink_mount_configure_t packet;
194 packet.target_system = target_system;
195 packet.target_component = target_component;
196 packet.mount_mode = mount_mode;
197 packet.stab_roll = stab_roll;
198 packet.stab_pitch = stab_pitch;
199 packet.stab_yaw = stab_yaw;
201 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MOUNT_CONFIGURE, (
const char *)&packet, MAVLINK_MSG_ID_MOUNT_CONFIGURE_MIN_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_CRC);
210static inline void mavlink_msg_mount_configure_send_struct(mavlink_channel_t chan,
const mavlink_mount_configure_t* mount_configure)
212#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
213 mavlink_msg_mount_configure_send(chan, mount_configure->target_system, mount_configure->target_component, mount_configure->mount_mode, mount_configure->stab_roll, mount_configure->stab_pitch, mount_configure->stab_yaw);
215 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MOUNT_CONFIGURE, (
const char *)mount_configure, MAVLINK_MSG_ID_MOUNT_CONFIGURE_MIN_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_CRC);
219#if MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
227static 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)
229#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
230 char *buf = (
char *)msgbuf;
231 _mav_put_uint8_t(buf, 0, target_system);
232 _mav_put_uint8_t(buf, 1, target_component);
233 _mav_put_uint8_t(buf, 2, mount_mode);
234 _mav_put_uint8_t(buf, 3, stab_roll);
235 _mav_put_uint8_t(buf, 4, stab_pitch);
236 _mav_put_uint8_t(buf, 5, stab_yaw);
238 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MOUNT_CONFIGURE, buf, MAVLINK_MSG_ID_MOUNT_CONFIGURE_MIN_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_CRC);
240 mavlink_mount_configure_t *packet = (mavlink_mount_configure_t *)msgbuf;
241 packet->target_system = target_system;
242 packet->target_component = target_component;
243 packet->mount_mode = mount_mode;
244 packet->stab_roll = stab_roll;
245 packet->stab_pitch = stab_pitch;
246 packet->stab_yaw = stab_yaw;
248 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MOUNT_CONFIGURE, (
const char *)packet, MAVLINK_MSG_ID_MOUNT_CONFIGURE_MIN_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN, MAVLINK_MSG_ID_MOUNT_CONFIGURE_CRC);
263static inline uint8_t mavlink_msg_mount_configure_get_target_system(
const mavlink_message_t* msg)
265 return _MAV_RETURN_uint8_t(msg, 0);
273static inline uint8_t mavlink_msg_mount_configure_get_target_component(
const mavlink_message_t* msg)
275 return _MAV_RETURN_uint8_t(msg, 1);
283static inline uint8_t mavlink_msg_mount_configure_get_mount_mode(
const mavlink_message_t* msg)
285 return _MAV_RETURN_uint8_t(msg, 2);
293static inline uint8_t mavlink_msg_mount_configure_get_stab_roll(
const mavlink_message_t* msg)
295 return _MAV_RETURN_uint8_t(msg, 3);
303static inline uint8_t mavlink_msg_mount_configure_get_stab_pitch(
const mavlink_message_t* msg)
305 return _MAV_RETURN_uint8_t(msg, 4);
313static inline uint8_t mavlink_msg_mount_configure_get_stab_yaw(
const mavlink_message_t* msg)
315 return _MAV_RETURN_uint8_t(msg, 5);
324static inline void mavlink_msg_mount_configure_decode(
const mavlink_message_t* msg, mavlink_mount_configure_t* mount_configure)
326#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
327 mount_configure->target_system = mavlink_msg_mount_configure_get_target_system(msg);
328 mount_configure->target_component = mavlink_msg_mount_configure_get_target_component(msg);
329 mount_configure->mount_mode = mavlink_msg_mount_configure_get_mount_mode(msg);
330 mount_configure->stab_roll = mavlink_msg_mount_configure_get_stab_roll(msg);
331 mount_configure->stab_pitch = mavlink_msg_mount_configure_get_stab_pitch(msg);
332 mount_configure->stab_yaw = mavlink_msg_mount_configure_get_stab_yaw(msg);
334 uint8_t len = msg->len < MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN? msg->len : MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN;
335 memset(mount_configure, 0, MAVLINK_MSG_ID_MOUNT_CONFIGURE_LEN);
336 memcpy(mount_configure, _MAV_PAYLOAD(msg), len);