4#define MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS 281
15} mavlink_gimbal_manager_status_t;
17#define MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN 13
18#define MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_MIN_LEN 13
19#define MAVLINK_MSG_ID_281_LEN 13
20#define MAVLINK_MSG_ID_281_MIN_LEN 13
22#define MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_CRC 48
23#define MAVLINK_MSG_ID_281_CRC 48
27#if MAVLINK_COMMAND_24BIT
28#define MAVLINK_MESSAGE_INFO_GIMBAL_MANAGER_STATUS {
30 "GIMBAL_MANAGER_STATUS",
32 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0
, 0
, offsetof(mavlink_gimbal_manager_status_t, time_boot_ms) },
33 { "flags", NULL, MAVLINK_TYPE_UINT32_T, 0
, 4
, offsetof(mavlink_gimbal_manager_status_t, flags) },
34 { "gimbal_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 8
, offsetof(mavlink_gimbal_manager_status_t, gimbal_device_id) },
35 { "primary_control_sysid", NULL, MAVLINK_TYPE_UINT8_T, 0
, 9
, offsetof(mavlink_gimbal_manager_status_t, primary_control_sysid) },
36 { "primary_control_compid", NULL, MAVLINK_TYPE_UINT8_T, 0
, 10
, offsetof(mavlink_gimbal_manager_status_t, primary_control_compid) },
37 { "secondary_control_sysid", NULL, MAVLINK_TYPE_UINT8_T, 0
, 11
, offsetof(mavlink_gimbal_manager_status_t, secondary_control_sysid) },
38 { "secondary_control_compid", NULL, MAVLINK_TYPE_UINT8_T, 0
, 12
, offsetof(mavlink_gimbal_manager_status_t, secondary_control_compid) },
40}
42#define MAVLINK_MESSAGE_INFO_GIMBAL_MANAGER_STATUS {
43 "GIMBAL_MANAGER_STATUS",
45 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0
, 0
, offsetof(mavlink_gimbal_manager_status_t, time_boot_ms) },
46 { "flags", NULL, MAVLINK_TYPE_UINT32_T, 0
, 4
, offsetof(mavlink_gimbal_manager_status_t, flags) },
47 { "gimbal_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0
, 8
, offsetof(mavlink_gimbal_manager_status_t, gimbal_device_id) },
48 { "primary_control_sysid", NULL, MAVLINK_TYPE_UINT8_T, 0
, 9
, offsetof(mavlink_gimbal_manager_status_t, primary_control_sysid) },
49 { "primary_control_compid", NULL, MAVLINK_TYPE_UINT8_T, 0
, 10
, offsetof(mavlink_gimbal_manager_status_t, primary_control_compid) },
50 { "secondary_control_sysid", NULL, MAVLINK_TYPE_UINT8_T, 0
, 11
, offsetof(mavlink_gimbal_manager_status_t, secondary_control_sysid) },
51 { "secondary_control_compid", NULL, MAVLINK_TYPE_UINT8_T, 0
, 12
, offsetof(mavlink_gimbal_manager_status_t, secondary_control_compid) },
53}
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71static inline uint16_t mavlink_msg_gimbal_manager_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
72 uint32_t time_boot_ms, uint32_t flags, uint8_t gimbal_device_id, uint8_t primary_control_sysid, uint8_t primary_control_compid, uint8_t secondary_control_sysid, uint8_t secondary_control_compid)
74#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
76 _mav_put_uint32_t(buf, 0, time_boot_ms);
77 _mav_put_uint32_t(buf, 4, flags);
78 _mav_put_uint8_t(buf, 8, gimbal_device_id);
79 _mav_put_uint8_t(buf, 9, primary_control_sysid);
80 _mav_put_uint8_t(buf, 10, primary_control_compid);
81 _mav_put_uint8_t(buf, 11, secondary_control_sysid);
82 _mav_put_uint8_t(buf, 12, secondary_control_compid);
86 mavlink_gimbal_manager_status_t packet;
87 packet.time_boot_ms = time_boot_ms;
89 packet.gimbal_device_id = gimbal_device_id;
90 packet.primary_control_sysid = primary_control_sysid;
91 packet.primary_control_compid = primary_control_compid;
92 packet.secondary_control_sysid = secondary_control_sysid;
93 packet.secondary_control_compid = secondary_control_compid;
95 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN);
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118static inline uint16_t mavlink_msg_gimbal_manager_status_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
119 uint32_t time_boot_ms, uint32_t flags, uint8_t gimbal_device_id, uint8_t primary_control_sysid, uint8_t primary_control_compid, uint8_t secondary_control_sysid, uint8_t secondary_control_compid)
121#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
123 _mav_put_uint32_t(buf, 0, time_boot_ms);
124 _mav_put_uint32_t(buf, 4, flags);
125 _mav_put_uint8_t(buf, 8, gimbal_device_id);
126 _mav_put_uint8_t(buf, 9, primary_control_sysid);
127 _mav_put_uint8_t(buf, 10, primary_control_compid);
128 _mav_put_uint8_t(buf, 11, secondary_control_sysid);
129 _mav_put_uint8_t(buf, 12, secondary_control_compid);
133 mavlink_gimbal_manager_status_t packet;
134 packet.time_boot_ms = time_boot_ms;
135 packet.flags = flags;
136 packet.gimbal_device_id = gimbal_device_id;
137 packet.primary_control_sysid = primary_control_sysid;
138 packet.primary_control_compid = primary_control_compid;
139 packet.secondary_control_sysid = secondary_control_sysid;
140 packet.secondary_control_compid = secondary_control_compid;
142 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN);
147 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_MIN_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_CRC);
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168static inline uint16_t mavlink_msg_gimbal_manager_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
169 mavlink_message_t* msg,
170 uint32_t time_boot_ms,uint32_t flags,uint8_t gimbal_device_id,uint8_t primary_control_sysid,uint8_t primary_control_compid,uint8_t secondary_control_sysid,uint8_t secondary_control_compid)
172#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
174 _mav_put_uint32_t(buf, 0, time_boot_ms);
175 _mav_put_uint32_t(buf, 4, flags);
176 _mav_put_uint8_t(buf, 8, gimbal_device_id);
177 _mav_put_uint8_t(buf, 9, primary_control_sysid);
178 _mav_put_uint8_t(buf, 10, primary_control_compid);
179 _mav_put_uint8_t(buf, 11, secondary_control_sysid);
180 _mav_put_uint8_t(buf, 12, secondary_control_compid);
184 mavlink_gimbal_manager_status_t packet;
185 packet.time_boot_ms = time_boot_ms;
186 packet.flags = flags;
187 packet.gimbal_device_id = gimbal_device_id;
188 packet.primary_control_sysid = primary_control_sysid;
189 packet.primary_control_compid = primary_control_compid;
190 packet.secondary_control_sysid = secondary_control_sysid;
191 packet.secondary_control_compid = secondary_control_compid;
193 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN);
201
202
203
204
205
206
207
208static inline uint16_t mavlink_msg_gimbal_manager_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_gimbal_manager_status_t* gimbal_manager_status)
210 return mavlink_msg_gimbal_manager_status_pack(system_id, component_id, msg, gimbal_manager_status->time_boot_ms, gimbal_manager_status->flags, gimbal_manager_status->gimbal_device_id, gimbal_manager_status->primary_control_sysid, gimbal_manager_status->primary_control_compid, gimbal_manager_status->secondary_control_sysid, gimbal_manager_status->secondary_control_compid);
214
215
216
217
218
219
220
221
222static inline uint16_t mavlink_msg_gimbal_manager_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_gimbal_manager_status_t* gimbal_manager_status)
224 return mavlink_msg_gimbal_manager_status_pack_chan(system_id, component_id, chan, msg, gimbal_manager_status->time_boot_ms, gimbal_manager_status->flags, gimbal_manager_status->gimbal_device_id, gimbal_manager_status->primary_control_sysid, gimbal_manager_status->primary_control_compid, gimbal_manager_status->secondary_control_sysid, gimbal_manager_status->secondary_control_compid);
228
229
230
231
232
233
234
235
236static inline uint16_t mavlink_msg_gimbal_manager_status_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_gimbal_manager_status_t* gimbal_manager_status)
238 return mavlink_msg_gimbal_manager_status_pack_status(system_id, component_id, _status, msg, gimbal_manager_status->time_boot_ms, gimbal_manager_status->flags, gimbal_manager_status->gimbal_device_id, gimbal_manager_status->primary_control_sysid, gimbal_manager_status->primary_control_compid, gimbal_manager_status->secondary_control_sysid, gimbal_manager_status->secondary_control_compid);
242
243
244
245
246
247
248
249
250
251
252
253#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
255static inline void mavlink_msg_gimbal_manager_status_send(mavlink_channel_t chan, uint32_t time_boot_ms, uint32_t flags, uint8_t gimbal_device_id, uint8_t primary_control_sysid, uint8_t primary_control_compid, uint8_t secondary_control_sysid, uint8_t secondary_control_compid)
257#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
258 char buf[MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN];
259 _mav_put_uint32_t(buf, 0, time_boot_ms);
260 _mav_put_uint32_t(buf, 4, flags);
261 _mav_put_uint8_t(buf, 8, gimbal_device_id);
262 _mav_put_uint8_t(buf, 9, primary_control_sysid);
263 _mav_put_uint8_t(buf, 10, primary_control_compid);
264 _mav_put_uint8_t(buf, 11, secondary_control_sysid);
265 _mav_put_uint8_t(buf, 12, secondary_control_compid);
267 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS, buf, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_MIN_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_CRC);
269 mavlink_gimbal_manager_status_t packet;
270 packet.time_boot_ms = time_boot_ms;
271 packet.flags = flags;
272 packet.gimbal_device_id = gimbal_device_id;
273 packet.primary_control_sysid = primary_control_sysid;
274 packet.primary_control_compid = primary_control_compid;
275 packet.secondary_control_sysid = secondary_control_sysid;
276 packet.secondary_control_compid = secondary_control_compid;
278 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS, (
const char *)&packet, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_MIN_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_CRC);
283
284
285
286
287static inline void mavlink_msg_gimbal_manager_status_send_struct(mavlink_channel_t chan,
const mavlink_gimbal_manager_status_t* gimbal_manager_status)
289#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
290 mavlink_msg_gimbal_manager_status_send(chan, gimbal_manager_status->time_boot_ms, gimbal_manager_status->flags, gimbal_manager_status->gimbal_device_id, gimbal_manager_status->primary_control_sysid, gimbal_manager_status->primary_control_compid, gimbal_manager_status->secondary_control_sysid, gimbal_manager_status->secondary_control_compid);
292 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS, (
const char *)gimbal_manager_status, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_MIN_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_CRC);
296#if MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
298
299
300
301
302
303
304static inline void mavlink_msg_gimbal_manager_status_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, uint32_t flags, uint8_t gimbal_device_id, uint8_t primary_control_sysid, uint8_t primary_control_compid, uint8_t secondary_control_sysid, uint8_t secondary_control_compid)
306#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
307 char *buf = (
char *)msgbuf;
308 _mav_put_uint32_t(buf, 0, time_boot_ms);
309 _mav_put_uint32_t(buf, 4, flags);
310 _mav_put_uint8_t(buf, 8, gimbal_device_id);
311 _mav_put_uint8_t(buf, 9, primary_control_sysid);
312 _mav_put_uint8_t(buf, 10, primary_control_compid);
313 _mav_put_uint8_t(buf, 11, secondary_control_sysid);
314 _mav_put_uint8_t(buf, 12, secondary_control_compid);
316 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS, buf, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_MIN_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_CRC);
318 mavlink_gimbal_manager_status_t *packet = (mavlink_gimbal_manager_status_t *)msgbuf;
319 packet->time_boot_ms = time_boot_ms;
320 packet->flags = flags;
321 packet->gimbal_device_id = gimbal_device_id;
322 packet->primary_control_sysid = primary_control_sysid;
323 packet->primary_control_compid = primary_control_compid;
324 packet->secondary_control_sysid = secondary_control_sysid;
325 packet->secondary_control_compid = secondary_control_compid;
327 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS, (
const char *)packet, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_MIN_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_CRC);
338
339
340
341
342static inline uint32_t mavlink_msg_gimbal_manager_status_get_time_boot_ms(
const mavlink_message_t* msg)
344 return _MAV_RETURN_uint32_t(msg, 0);
348
349
350
351
352static inline uint32_t mavlink_msg_gimbal_manager_status_get_flags(
const mavlink_message_t* msg)
354 return _MAV_RETURN_uint32_t(msg, 4);
358
359
360
361
362static inline uint8_t mavlink_msg_gimbal_manager_status_get_gimbal_device_id(
const mavlink_message_t* msg)
364 return _MAV_RETURN_uint8_t(msg, 8);
368
369
370
371
372static inline uint8_t mavlink_msg_gimbal_manager_status_get_primary_control_sysid(
const mavlink_message_t* msg)
374 return _MAV_RETURN_uint8_t(msg, 9);
378
379
380
381
382static inline uint8_t mavlink_msg_gimbal_manager_status_get_primary_control_compid(
const mavlink_message_t* msg)
384 return _MAV_RETURN_uint8_t(msg, 10);
388
389
390
391
392static inline uint8_t mavlink_msg_gimbal_manager_status_get_secondary_control_sysid(
const mavlink_message_t* msg)
394 return _MAV_RETURN_uint8_t(msg, 11);
398
399
400
401
402static inline uint8_t mavlink_msg_gimbal_manager_status_get_secondary_control_compid(
const mavlink_message_t* msg)
404 return _MAV_RETURN_uint8_t(msg, 12);
408
409
410
411
412
413static inline void mavlink_msg_gimbal_manager_status_decode(
const mavlink_message_t* msg, mavlink_gimbal_manager_status_t* gimbal_manager_status)
415#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
416 gimbal_manager_status->time_boot_ms = mavlink_msg_gimbal_manager_status_get_time_boot_ms(msg);
417 gimbal_manager_status->flags = mavlink_msg_gimbal_manager_status_get_flags(msg);
418 gimbal_manager_status->gimbal_device_id = mavlink_msg_gimbal_manager_status_get_gimbal_device_id(msg);
419 gimbal_manager_status->primary_control_sysid = mavlink_msg_gimbal_manager_status_get_primary_control_sysid(msg);
420 gimbal_manager_status->primary_control_compid = mavlink_msg_gimbal_manager_status_get_primary_control_compid(msg);
421 gimbal_manager_status->secondary_control_sysid = mavlink_msg_gimbal_manager_status_get_secondary_control_sysid(msg);
422 gimbal_manager_status->secondary_control_compid = mavlink_msg_gimbal_manager_status_get_secondary_control_compid(msg);
424 uint8_t len = msg->len < MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN? msg->len : MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN;
425 memset(gimbal_manager_status, 0, MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN);
426 memcpy(gimbal_manager_status, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS
Definition: mavlink_msg_gimbal_manager_status.h:4
#define MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_CRC
Definition: mavlink_msg_gimbal_manager_status.h:22
#define MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_LEN
Definition: mavlink_msg_gimbal_manager_status.h:17
#define MAVLINK_MSG_ID_GIMBAL_MANAGER_STATUS_MIN_LEN
Definition: mavlink_msg_gimbal_manager_status.h:18
Definition: mavlink_msg_gimbal_manager_status.h:7
uint8_t gimbal_device_id
Definition: mavlink_msg_gimbal_manager_status.h:10
uint8_t primary_control_sysid
Definition: mavlink_msg_gimbal_manager_status.h:11
uint8_t secondary_control_sysid
Definition: mavlink_msg_gimbal_manager_status.h:13
uint32_t flags
Definition: mavlink_msg_gimbal_manager_status.h:9
uint32_t time_boot_ms
Definition: mavlink_msg_gimbal_manager_status.h:8
uint8_t secondary_control_compid
Definition: mavlink_msg_gimbal_manager_status.h:14
uint8_t primary_control_compid
Definition: mavlink_msg_gimbal_manager_status.h:12