4#define MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST 183
7typedef struct __mavlink_autopilot_version_request_t {
9 uint8_t target_component;
10}) mavlink_autopilot_version_request_t;
12#define MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN 2
13#define MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_MIN_LEN 2
14#define MAVLINK_MSG_ID_183_LEN 2
15#define MAVLINK_MSG_ID_183_MIN_LEN 2
17#define MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_CRC 85
18#define MAVLINK_MSG_ID_183_CRC 85
22#if MAVLINK_COMMAND_24BIT
23#define MAVLINK_MESSAGE_INFO_AUTOPILOT_VERSION_REQUEST { \
25 "AUTOPILOT_VERSION_REQUEST", \
27 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_autopilot_version_request_t, target_system) }, \
28 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_autopilot_version_request_t, target_component) }, \
32#define MAVLINK_MESSAGE_INFO_AUTOPILOT_VERSION_REQUEST { \
33 "AUTOPILOT_VERSION_REQUEST", \
35 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_autopilot_version_request_t, target_system) }, \
36 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_autopilot_version_request_t, target_component) }, \
51static inline uint16_t mavlink_msg_autopilot_version_request_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
52 uint8_t target_system, uint8_t target_component)
54#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
55 char buf[MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN];
56 _mav_put_uint8_t(buf, 0, target_system);
57 _mav_put_uint8_t(buf, 1, target_component);
59 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN);
61 mavlink_autopilot_version_request_t packet;
62 packet.target_system = target_system;
63 packet.target_component = target_component;
65 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN);
68 msg->msgid = MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST;
69 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_CRC);
82static inline uint16_t mavlink_msg_autopilot_version_request_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
83 mavlink_message_t* msg,
84 uint8_t target_system,uint8_t target_component)
86#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
87 char buf[MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN];
88 _mav_put_uint8_t(buf, 0, target_system);
89 _mav_put_uint8_t(buf, 1, target_component);
91 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN);
93 mavlink_autopilot_version_request_t packet;
94 packet.target_system = target_system;
95 packet.target_component = target_component;
97 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN);
100 msg->msgid = MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST;
101 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_CRC);
112static inline uint16_t mavlink_msg_autopilot_version_request_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_autopilot_version_request_t* autopilot_version_request)
114 return mavlink_msg_autopilot_version_request_pack(system_id, component_id, msg, autopilot_version_request->target_system, autopilot_version_request->target_component);
126static inline uint16_t mavlink_msg_autopilot_version_request_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_autopilot_version_request_t* autopilot_version_request)
128 return mavlink_msg_autopilot_version_request_pack_chan(system_id, component_id, chan, msg, autopilot_version_request->target_system, autopilot_version_request->target_component);
138#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
140static inline void mavlink_msg_autopilot_version_request_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component)
142#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
143 char buf[MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN];
144 _mav_put_uint8_t(buf, 0, target_system);
145 _mav_put_uint8_t(buf, 1, target_component);
147 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST, buf, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_CRC);
149 mavlink_autopilot_version_request_t packet;
150 packet.target_system = target_system;
151 packet.target_component = target_component;
153 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST, (
const char *)&packet, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_CRC);
162static inline void mavlink_msg_autopilot_version_request_send_struct(mavlink_channel_t chan,
const mavlink_autopilot_version_request_t* autopilot_version_request)
164#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
165 mavlink_msg_autopilot_version_request_send(chan, autopilot_version_request->target_system, autopilot_version_request->target_component);
167 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST, (
const char *)autopilot_version_request, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_CRC);
171#if MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN <= MAVLINK_MAX_PAYLOAD_LEN
179static inline void mavlink_msg_autopilot_version_request_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component)
181#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
182 char *buf = (
char *)msgbuf;
183 _mav_put_uint8_t(buf, 0, target_system);
184 _mav_put_uint8_t(buf, 1, target_component);
186 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST, buf, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_CRC);
188 mavlink_autopilot_version_request_t *packet = (mavlink_autopilot_version_request_t *)msgbuf;
189 packet->target_system = target_system;
190 packet->target_component = target_component;
192 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST, (
const char *)packet, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_CRC);
207static inline uint8_t mavlink_msg_autopilot_version_request_get_target_system(
const mavlink_message_t* msg)
209 return _MAV_RETURN_uint8_t(msg, 0);
217static inline uint8_t mavlink_msg_autopilot_version_request_get_target_component(
const mavlink_message_t* msg)
219 return _MAV_RETURN_uint8_t(msg, 1);
228static inline void mavlink_msg_autopilot_version_request_decode(
const mavlink_message_t* msg, mavlink_autopilot_version_request_t* autopilot_version_request)
230#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
231 autopilot_version_request->target_system = mavlink_msg_autopilot_version_request_get_target_system(msg);
232 autopilot_version_request->target_component = mavlink_msg_autopilot_version_request_get_target_component(msg);
234 uint8_t len = msg->len < MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN? msg->len : MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN;
235 memset(autopilot_version_request, 0, MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN);
236 memcpy(autopilot_version_request, _MAV_PAYLOAD(msg), len);