3 #define MAVLINK_MSG_ID_MOUNT_CONTROL 157
15 #define MAVLINK_MSG_ID_MOUNT_CONTROL_LEN 15
16 #define MAVLINK_MSG_ID_157_LEN 15
18 #define MAVLINK_MSG_ID_MOUNT_CONTROL_CRC 21
19 #define MAVLINK_MSG_ID_157_CRC 21
23 #define MAVLINK_MESSAGE_INFO_MOUNT_CONTROL { \
26 { { "input_a", NULL, MAVLINK_TYPE_INT32_T, 0, 0, offsetof(mavlink_mount_control_t, input_a) }, \
27 { "input_b", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_mount_control_t, input_b) }, \
28 { "input_c", NULL, MAVLINK_TYPE_INT32_T, 0, 8, offsetof(mavlink_mount_control_t, input_c) }, \
29 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_mount_control_t, target_system) }, \
30 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 13, offsetof(mavlink_mount_control_t, target_component) }, \
31 { "save_position", NULL, MAVLINK_TYPE_UINT8_T, 0, 14, offsetof(mavlink_mount_control_t, save_position) }, \
50 static inline uint16_t mavlink_msg_mount_control_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
51 uint8_t target_system, uint8_t target_component, int32_t input_a, int32_t input_b, int32_t input_c, uint8_t save_position)
53 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
97 static inline uint16_t mavlink_msg_mount_control_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,int32_t input_a,int32_t input_b,int32_t input_c,uint8_t save_position)
101 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
124 #if MAVLINK_CRC_EXTRA
139 static inline uint16_t mavlink_msg_mount_control_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_mount_control_t* mount_control)
153 static inline uint16_t mavlink_msg_mount_control_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_mount_control_t* mount_control)
169 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
171 static inline void mavlink_msg_mount_control_send(
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, int32_t input_a, int32_t input_b, int32_t input_c, uint8_t save_position)
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_CONTROL_LEN <= MAVLINK_MAX_PAYLOAD_LEN
212 static inline void mavlink_msg_mount_control_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, int32_t input_a, int32_t input_b, int32_t input_c, uint8_t save_position)
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_control_get_target_system(
const mavlink_message_t* msg)
266 static inline uint8_t mavlink_msg_mount_control_get_target_component(
const mavlink_message_t* msg)
276 static inline int32_t mavlink_msg_mount_control_get_input_a(
const mavlink_message_t* msg)
278 return _MAV_RETURN_int32_t(msg, 0);
286 static inline int32_t mavlink_msg_mount_control_get_input_b(
const mavlink_message_t* msg)
288 return _MAV_RETURN_int32_t(msg, 4);
296 static inline int32_t mavlink_msg_mount_control_get_input_c(
const mavlink_message_t* msg)
298 return _MAV_RETURN_int32_t(msg, 8);
306 static inline uint8_t mavlink_msg_mount_control_get_save_position(
const mavlink_message_t* msg)
317 static inline void mavlink_msg_mount_control_decode(
const mavlink_message_t* msg,
mavlink_mount_control_t* mount_control)
319 #if MAVLINK_NEED_BYTE_SWAP
320 mount_control->
input_a = mavlink_msg_mount_control_get_input_a(msg);
321 mount_control->
input_b = mavlink_msg_mount_control_get_input_b(msg);
322 mount_control->
input_c = mavlink_msg_mount_control_get_input_c(msg);
323 mount_control->
target_system = mavlink_msg_mount_control_get_target_system(msg);
324 mount_control->
target_component = mavlink_msg_mount_control_get_target_component(msg);
325 mount_control->
save_position = mavlink_msg_mount_control_get_save_position(msg);
#define MAVLINK_MSG_ID_MOUNT_CONTROL_CRC
Definition: mavlink_msg_mount_control.h:18
uint8_t target_system
System ID.
Definition: mavlink_msg_mount_control.h:10
int32_t input_c
yaw(deg*100) or alt (in cm) depending on mount mode
Definition: mavlink_msg_mount_control.h:9
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint8_t target_component
Component ID.
Definition: mavlink_msg_mount_control.h:11
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_put_int32_t(buf, wire_offset, b)
Definition: protocol.h:142
struct __mavlink_mount_control_t mavlink_mount_control_t
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
int32_t input_b
roll(deg*100) or lon depending on mount mode
Definition: mavlink_msg_mount_control.h:8
mavlink_channel_t
Definition: mavlink_types.h:178
Definition: mavlink_msg_mount_control.h:5
#define MAVLINK_MSG_ID_MOUNT_CONTROL
Definition: mavlink_msg_mount_control.h:3
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
int32_t input_a
pitch(deg*100) or lat, depending on mount mode
Definition: mavlink_msg_mount_control.h:7
uint8_t save_position
if "1" it will save current trimmed position on EEPROM (just valid for NEUTRAL and LANDING) ...
Definition: mavlink_msg_mount_control.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
#define MAVLINK_MSG_ID_MOUNT_CONTROL_LEN
Definition: mavlink_msg_mount_control.h:15