4#define MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK 6
11} mavlink_change_operator_control_ack_t;
13#define MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN 3
14#define MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_MIN_LEN 3
15#define MAVLINK_MSG_ID_6_LEN 3
16#define MAVLINK_MSG_ID_6_MIN_LEN 3
18#define MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_CRC 104
19#define MAVLINK_MSG_ID_6_CRC 104
23#if MAVLINK_COMMAND_24BIT
24#define MAVLINK_MESSAGE_INFO_CHANGE_OPERATOR_CONTROL_ACK {
26 "CHANGE_OPERATOR_CONTROL_ACK",
28 { { "gcs_system_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 0
, offsetof(mavlink_change_operator_control_ack_t, gcs_system_id) },
29 { "control_request", NULL, MAVLINK_TYPE_UINT8_T, 0
, 1
, offsetof(mavlink_change_operator_control_ack_t, control_request) },
30 { "ack", NULL, MAVLINK_TYPE_UINT8_T, 0
, 2
, offsetof(mavlink_change_operator_control_ack_t, ack) },
32}
34#define MAVLINK_MESSAGE_INFO_CHANGE_OPERATOR_CONTROL_ACK {
35 "CHANGE_OPERATOR_CONTROL_ACK",
37 { { "gcs_system_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 0
, offsetof(mavlink_change_operator_control_ack_t, gcs_system_id) },
38 { "control_request", NULL, MAVLINK_TYPE_UINT8_T, 0
, 1
, offsetof(mavlink_change_operator_control_ack_t, control_request) },
39 { "ack", NULL, MAVLINK_TYPE_UINT8_T, 0
, 2
, offsetof(mavlink_change_operator_control_ack_t, ack) },
41}
45
46
47
48
49
50
51
52
53
54
55static inline uint16_t mavlink_msg_change_operator_control_ack_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
56 uint8_t gcs_system_id, uint8_t control_request, uint8_t ack)
58#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
60 _mav_put_uint8_t(buf, 0, gcs_system_id);
61 _mav_put_uint8_t(buf, 1, control_request);
62 _mav_put_uint8_t(buf, 2, ack);
66 mavlink_change_operator_control_ack_t packet;
67 packet.gcs_system_id = gcs_system_id;
68 packet.control_request = control_request;
71 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN);
79
80
81
82
83
84
85
86
87
88
89
90static inline uint16_t mavlink_msg_change_operator_control_ack_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
91 uint8_t gcs_system_id, uint8_t control_request, uint8_t ack)
93#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
95 _mav_put_uint8_t(buf, 0, gcs_system_id);
96 _mav_put_uint8_t(buf, 1, control_request);
97 _mav_put_uint8_t(buf, 2, ack);
101 mavlink_change_operator_control_ack_t packet;
102 packet.gcs_system_id = gcs_system_id;
103 packet.control_request = control_request;
106 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN);
111 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_MIN_LEN, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_CRC);
118
119
120
121
122
123
124
125
126
127
128static inline uint16_t mavlink_msg_change_operator_control_ack_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
129 mavlink_message_t* msg,
130 uint8_t gcs_system_id,uint8_t control_request,uint8_t ack)
132#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
134 _mav_put_uint8_t(buf, 0, gcs_system_id);
135 _mav_put_uint8_t(buf, 1, control_request);
136 _mav_put_uint8_t(buf, 2, ack);
140 mavlink_change_operator_control_ack_t packet;
141 packet.gcs_system_id = gcs_system_id;
142 packet.control_request = control_request;
145 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN);
153
154
155
156
157
158
159
160static inline uint16_t mavlink_msg_change_operator_control_ack_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_change_operator_control_ack_t* change_operator_control_ack)
162 return mavlink_msg_change_operator_control_ack_pack(system_id, component_id, msg, change_operator_control_ack->gcs_system_id, change_operator_control_ack->control_request, change_operator_control_ack->ack);
166
167
168
169
170
171
172
173
174static inline uint16_t mavlink_msg_change_operator_control_ack_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_change_operator_control_ack_t* change_operator_control_ack)
176 return mavlink_msg_change_operator_control_ack_pack_chan(system_id, component_id, chan, msg, change_operator_control_ack->gcs_system_id, change_operator_control_ack->control_request, change_operator_control_ack->ack);
180
181
182
183
184
185
186
187
188static inline uint16_t mavlink_msg_change_operator_control_ack_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_change_operator_control_ack_t* change_operator_control_ack)
190 return mavlink_msg_change_operator_control_ack_pack_status(system_id, component_id, _status, msg, change_operator_control_ack->gcs_system_id, change_operator_control_ack->control_request, change_operator_control_ack->ack);
194
195
196
197
198
199
200
201#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
203static inline void mavlink_msg_change_operator_control_ack_send(mavlink_channel_t chan, uint8_t gcs_system_id, uint8_t control_request, uint8_t ack)
205#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
206 char buf[MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN];
207 _mav_put_uint8_t(buf, 0, gcs_system_id);
208 _mav_put_uint8_t(buf, 1, control_request);
209 _mav_put_uint8_t(buf, 2, ack);
211 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK, buf, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_MIN_LEN, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_CRC);
213 mavlink_change_operator_control_ack_t packet;
214 packet.gcs_system_id = gcs_system_id;
215 packet.control_request = control_request;
218 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK, (
const char *)&packet, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_MIN_LEN, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_CRC);
223
224
225
226
227static inline void mavlink_msg_change_operator_control_ack_send_struct(mavlink_channel_t chan,
const mavlink_change_operator_control_ack_t* change_operator_control_ack)
229#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
230 mavlink_msg_change_operator_control_ack_send(chan, change_operator_control_ack->gcs_system_id, change_operator_control_ack->control_request, change_operator_control_ack->ack);
232 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK, (
const char *)change_operator_control_ack, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_MIN_LEN, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_CRC);
236#if MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN <= MAVLINK_MAX_PAYLOAD_LEN
238
239
240
241
242
243
244static inline void mavlink_msg_change_operator_control_ack_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t gcs_system_id, uint8_t control_request, uint8_t ack)
246#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
247 char *buf = (
char *)msgbuf;
248 _mav_put_uint8_t(buf, 0, gcs_system_id);
249 _mav_put_uint8_t(buf, 1, control_request);
250 _mav_put_uint8_t(buf, 2, ack);
252 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK, buf, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_MIN_LEN, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_CRC);
254 mavlink_change_operator_control_ack_t *packet = (mavlink_change_operator_control_ack_t *)msgbuf;
255 packet->gcs_system_id = gcs_system_id;
256 packet->control_request = control_request;
259 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK, (
const char *)packet, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_MIN_LEN, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_CRC);
270
271
272
273
274static inline uint8_t mavlink_msg_change_operator_control_ack_get_gcs_system_id(
const mavlink_message_t* msg)
276 return _MAV_RETURN_uint8_t(msg, 0);
280
281
282
283
284static inline uint8_t mavlink_msg_change_operator_control_ack_get_control_request(
const mavlink_message_t* msg)
286 return _MAV_RETURN_uint8_t(msg, 1);
290
291
292
293
294static inline uint8_t mavlink_msg_change_operator_control_ack_get_ack(
const mavlink_message_t* msg)
296 return _MAV_RETURN_uint8_t(msg, 2);
300
301
302
303
304
305static inline void mavlink_msg_change_operator_control_ack_decode(
const mavlink_message_t* msg, mavlink_change_operator_control_ack_t* change_operator_control_ack)
307#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
308 change_operator_control_ack->gcs_system_id = mavlink_msg_change_operator_control_ack_get_gcs_system_id(msg);
309 change_operator_control_ack->control_request = mavlink_msg_change_operator_control_ack_get_control_request(msg);
310 change_operator_control_ack->ack = mavlink_msg_change_operator_control_ack_get_ack(msg);
312 uint8_t len = msg->len < MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN? msg->len : MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN;
313 memset(change_operator_control_ack, 0, MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN);
314 memcpy(change_operator_control_ack, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN
Definition: mavlink_msg_change_operator_control_ack.h:13
#define MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_CRC
Definition: mavlink_msg_change_operator_control_ack.h:18
#define MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_MIN_LEN
Definition: mavlink_msg_change_operator_control_ack.h:14
#define MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK
Definition: mavlink_msg_change_operator_control_ack.h:4
Definition: mavlink_msg_change_operator_control_ack.h:7
uint8_t ack
Definition: mavlink_msg_change_operator_control_ack.h:10
uint8_t control_request
Definition: mavlink_msg_change_operator_control_ack.h:9
uint8_t gcs_system_id
Definition: mavlink_msg_change_operator_control_ack.h:8