4#define MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE 286
7typedef struct __mavlink_autopilot_state_for_gimbal_device_t {
10 uint32_t q_estimated_delay_us;
14 uint32_t v_estimated_delay_us;
15 float feed_forward_angular_velocity_z;
16 uint16_t estimator_status;
17 uint8_t target_system;
18 uint8_t target_component;
20 float angular_velocity_z;
21}) mavlink_autopilot_state_for_gimbal_device_t;
23#define MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN 57
24#define MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_MIN_LEN 53
25#define MAVLINK_MSG_ID_286_LEN 57
26#define MAVLINK_MSG_ID_286_MIN_LEN 53
28#define MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_CRC 210
29#define MAVLINK_MSG_ID_286_CRC 210
31#define MAVLINK_MSG_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_FIELD_Q_LEN 4
33#if MAVLINK_COMMAND_24BIT
34#define MAVLINK_MESSAGE_INFO_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE {
36 "AUTOPILOT_STATE_FOR_GIMBAL_DEVICE",
38 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 50
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, target_system) },
39 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 51
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, target_component) },
40 { "time_boot_us", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, time_boot_us) },
41 { "q", NULL, MAVLINK_TYPE_FLOAT, 4
, 8
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, q) },
42 { "q_estimated_delay_us", NULL, MAVLINK_TYPE_UINT32_T, 0
, 24
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, q_estimated_delay_us) },
43 { "vx", NULL, MAVLINK_TYPE_FLOAT, 0
, 28
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, vx) },
44 { "vy", NULL, MAVLINK_TYPE_FLOAT, 0
, 32
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, vy) },
45 { "vz", NULL, MAVLINK_TYPE_FLOAT, 0
, 36
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, vz) },
46 { "v_estimated_delay_us", NULL, MAVLINK_TYPE_UINT32_T, 0
, 40
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, v_estimated_delay_us) },
47 { "feed_forward_angular_velocity_z", NULL, MAVLINK_TYPE_FLOAT, 0
, 44
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, feed_forward_angular_velocity_z) },
48 { "estimator_status", NULL, MAVLINK_TYPE_UINT16_T, 0
, 48
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, estimator_status) },
49 { "landed_state", NULL, MAVLINK_TYPE_UINT8_T, 0
, 52
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, landed_state) },
50 { "angular_velocity_z", NULL, MAVLINK_TYPE_FLOAT, 0
, 53
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, angular_velocity_z) },
52}
54#define MAVLINK_MESSAGE_INFO_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE {
55 "AUTOPILOT_STATE_FOR_GIMBAL_DEVICE",
57 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 50
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, target_system) },
58 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 51
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, target_component) },
59 { "time_boot_us", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, time_boot_us) },
60 { "q", NULL, MAVLINK_TYPE_FLOAT, 4
, 8
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, q) },
61 { "q_estimated_delay_us", NULL, MAVLINK_TYPE_UINT32_T, 0
, 24
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, q_estimated_delay_us) },
62 { "vx", NULL, MAVLINK_TYPE_FLOAT, 0
, 28
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, vx) },
63 { "vy", NULL, MAVLINK_TYPE_FLOAT, 0
, 32
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, vy) },
64 { "vz", NULL, MAVLINK_TYPE_FLOAT, 0
, 36
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, vz) },
65 { "v_estimated_delay_us", NULL, MAVLINK_TYPE_UINT32_T, 0
, 40
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, v_estimated_delay_us) },
66 { "feed_forward_angular_velocity_z", NULL, MAVLINK_TYPE_FLOAT, 0
, 44
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, feed_forward_angular_velocity_z) },
67 { "estimator_status", NULL, MAVLINK_TYPE_UINT16_T, 0
, 48
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, estimator_status) },
68 { "landed_state", NULL, MAVLINK_TYPE_UINT8_T, 0
, 52
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, landed_state) },
69 { "angular_velocity_z", NULL, MAVLINK_TYPE_FLOAT, 0
, 53
, offsetof(mavlink_autopilot_state_for_gimbal_device_t, angular_velocity_z) },
71}
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95static inline uint16_t mavlink_msg_autopilot_state_for_gimbal_device_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
96 uint8_t target_system, uint8_t target_component, uint64_t time_boot_us,
const float *q, uint32_t q_estimated_delay_us,
float vx,
float vy,
float vz, uint32_t v_estimated_delay_us,
float feed_forward_angular_velocity_z, uint16_t estimator_status, uint8_t landed_state,
float angular_velocity_z)
98#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
100 _mav_put_uint64_t(buf, 0, time_boot_us);
101 _mav_put_uint32_t(buf, 24, q_estimated_delay_us);
102 _mav_put_float(buf, 28, vx);
103 _mav_put_float(buf, 32, vy);
104 _mav_put_float(buf, 36, vz);
105 _mav_put_uint32_t(buf, 40, v_estimated_delay_us);
106 _mav_put_float(buf, 44, feed_forward_angular_velocity_z);
107 _mav_put_uint16_t(buf, 48, estimator_status);
108 _mav_put_uint8_t(buf, 50, target_system);
109 _mav_put_uint8_t(buf, 51, target_component);
110 _mav_put_uint8_t(buf, 52, landed_state);
111 _mav_put_float(buf, 53, angular_velocity_z);
112 _mav_put_float_array(buf, 8, q, 4);
115 mavlink_autopilot_state_for_gimbal_device_t packet;
116 packet.time_boot_us = time_boot_us;
117 packet.q_estimated_delay_us = q_estimated_delay_us;
121 packet.v_estimated_delay_us = v_estimated_delay_us;
122 packet.feed_forward_angular_velocity_z = feed_forward_angular_velocity_z;
123 packet.estimator_status = estimator_status;
124 packet.target_system = target_system;
125 packet.target_component = target_component;
126 packet.landed_state = landed_state;
127 packet.angular_velocity_z = angular_velocity_z;
128 mav_array_memcpy(packet.q, q,
sizeof(
float)*4);
129 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN);
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158static inline uint16_t mavlink_msg_autopilot_state_for_gimbal_device_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
159 uint8_t target_system, uint8_t target_component, uint64_t time_boot_us,
const float *q, uint32_t q_estimated_delay_us,
float vx,
float vy,
float vz, uint32_t v_estimated_delay_us,
float feed_forward_angular_velocity_z, uint16_t estimator_status, uint8_t landed_state,
float angular_velocity_z)
161#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
163 _mav_put_uint64_t(buf, 0, time_boot_us);
164 _mav_put_uint32_t(buf, 24, q_estimated_delay_us);
165 _mav_put_float(buf, 28, vx);
166 _mav_put_float(buf, 32, vy);
167 _mav_put_float(buf, 36, vz);
168 _mav_put_uint32_t(buf, 40, v_estimated_delay_us);
169 _mav_put_float(buf, 44, feed_forward_angular_velocity_z);
170 _mav_put_uint16_t(buf, 48, estimator_status);
171 _mav_put_uint8_t(buf, 50, target_system);
172 _mav_put_uint8_t(buf, 51, target_component);
173 _mav_put_uint8_t(buf, 52, landed_state);
174 _mav_put_float(buf, 53, angular_velocity_z);
175 _mav_put_float_array(buf, 8, q, 4);
178 mavlink_autopilot_state_for_gimbal_device_t packet;
179 packet.time_boot_us = time_boot_us;
180 packet.q_estimated_delay_us = q_estimated_delay_us;
184 packet.v_estimated_delay_us = v_estimated_delay_us;
185 packet.feed_forward_angular_velocity_z = feed_forward_angular_velocity_z;
186 packet.estimator_status = estimator_status;
187 packet.target_system = target_system;
188 packet.target_component = target_component;
189 packet.landed_state = landed_state;
190 packet.angular_velocity_z = angular_velocity_z;
191 mav_array_memcpy(packet.q, q,
sizeof(
float)*4);
192 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN);
197 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_CRC);
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224static inline uint16_t mavlink_msg_autopilot_state_for_gimbal_device_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
225 mavlink_message_t* msg,
226 uint8_t target_system,uint8_t target_component,uint64_t time_boot_us,
const float *q,uint32_t q_estimated_delay_us,
float vx,
float vy,
float vz,uint32_t v_estimated_delay_us,
float feed_forward_angular_velocity_z,uint16_t estimator_status,uint8_t landed_state,
float angular_velocity_z)
228#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
230 _mav_put_uint64_t(buf, 0, time_boot_us);
231 _mav_put_uint32_t(buf, 24, q_estimated_delay_us);
232 _mav_put_float(buf, 28, vx);
233 _mav_put_float(buf, 32, vy);
234 _mav_put_float(buf, 36, vz);
235 _mav_put_uint32_t(buf, 40, v_estimated_delay_us);
236 _mav_put_float(buf, 44, feed_forward_angular_velocity_z);
237 _mav_put_uint16_t(buf, 48, estimator_status);
238 _mav_put_uint8_t(buf, 50, target_system);
239 _mav_put_uint8_t(buf, 51, target_component);
240 _mav_put_uint8_t(buf, 52, landed_state);
241 _mav_put_float(buf, 53, angular_velocity_z);
242 _mav_put_float_array(buf, 8, q, 4);
245 mavlink_autopilot_state_for_gimbal_device_t packet;
246 packet.time_boot_us = time_boot_us;
247 packet.q_estimated_delay_us = q_estimated_delay_us;
251 packet.v_estimated_delay_us = v_estimated_delay_us;
252 packet.feed_forward_angular_velocity_z = feed_forward_angular_velocity_z;
253 packet.estimator_status = estimator_status;
254 packet.target_system = target_system;
255 packet.target_component = target_component;
256 packet.landed_state = landed_state;
257 packet.angular_velocity_z = angular_velocity_z;
258 mav_array_memcpy(packet.q, q,
sizeof(
float)*4);
259 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN);
267
268
269
270
271
272
273
274static inline uint16_t mavlink_msg_autopilot_state_for_gimbal_device_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_autopilot_state_for_gimbal_device_t* autopilot_state_for_gimbal_device)
276 return mavlink_msg_autopilot_state_for_gimbal_device_pack(system_id, component_id, msg, autopilot_state_for_gimbal_device->target_system, autopilot_state_for_gimbal_device->target_component, autopilot_state_for_gimbal_device->time_boot_us, autopilot_state_for_gimbal_device->q, autopilot_state_for_gimbal_device->q_estimated_delay_us, autopilot_state_for_gimbal_device->vx, autopilot_state_for_gimbal_device->vy, autopilot_state_for_gimbal_device->vz, autopilot_state_for_gimbal_device->v_estimated_delay_us, autopilot_state_for_gimbal_device->feed_forward_angular_velocity_z, autopilot_state_for_gimbal_device->estimator_status, autopilot_state_for_gimbal_device->landed_state, autopilot_state_for_gimbal_device->angular_velocity_z);
280
281
282
283
284
285
286
287
288static inline uint16_t mavlink_msg_autopilot_state_for_gimbal_device_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_autopilot_state_for_gimbal_device_t* autopilot_state_for_gimbal_device)
290 return mavlink_msg_autopilot_state_for_gimbal_device_pack_chan(system_id, component_id, chan, msg, autopilot_state_for_gimbal_device->target_system, autopilot_state_for_gimbal_device->target_component, autopilot_state_for_gimbal_device->time_boot_us, autopilot_state_for_gimbal_device->q, autopilot_state_for_gimbal_device->q_estimated_delay_us, autopilot_state_for_gimbal_device->vx, autopilot_state_for_gimbal_device->vy, autopilot_state_for_gimbal_device->vz, autopilot_state_for_gimbal_device->v_estimated_delay_us, autopilot_state_for_gimbal_device->feed_forward_angular_velocity_z, autopilot_state_for_gimbal_device->estimator_status, autopilot_state_for_gimbal_device->landed_state, autopilot_state_for_gimbal_device->angular_velocity_z);
294
295
296
297
298
299
300
301
302static inline uint16_t mavlink_msg_autopilot_state_for_gimbal_device_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_autopilot_state_for_gimbal_device_t* autopilot_state_for_gimbal_device)
304 return mavlink_msg_autopilot_state_for_gimbal_device_pack_status(system_id, component_id, _status, msg, autopilot_state_for_gimbal_device->target_system, autopilot_state_for_gimbal_device->target_component, autopilot_state_for_gimbal_device->time_boot_us, autopilot_state_for_gimbal_device->q, autopilot_state_for_gimbal_device->q_estimated_delay_us, autopilot_state_for_gimbal_device->vx, autopilot_state_for_gimbal_device->vy, autopilot_state_for_gimbal_device->vz, autopilot_state_for_gimbal_device->v_estimated_delay_us, autopilot_state_for_gimbal_device->feed_forward_angular_velocity_z, autopilot_state_for_gimbal_device->estimator_status, autopilot_state_for_gimbal_device->landed_state, autopilot_state_for_gimbal_device->angular_velocity_z);
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
327static inline void mavlink_msg_autopilot_state_for_gimbal_device_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint64_t time_boot_us,
const float *q, uint32_t q_estimated_delay_us,
float vx,
float vy,
float vz, uint32_t v_estimated_delay_us,
float feed_forward_angular_velocity_z, uint16_t estimator_status, uint8_t landed_state,
float angular_velocity_z)
329#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
330 char buf[MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN];
331 _mav_put_uint64_t(buf, 0, time_boot_us);
332 _mav_put_uint32_t(buf, 24, q_estimated_delay_us);
333 _mav_put_float(buf, 28, vx);
334 _mav_put_float(buf, 32, vy);
335 _mav_put_float(buf, 36, vz);
336 _mav_put_uint32_t(buf, 40, v_estimated_delay_us);
337 _mav_put_float(buf, 44, feed_forward_angular_velocity_z);
338 _mav_put_uint16_t(buf, 48, estimator_status);
339 _mav_put_uint8_t(buf, 50, target_system);
340 _mav_put_uint8_t(buf, 51, target_component);
341 _mav_put_uint8_t(buf, 52, landed_state);
342 _mav_put_float(buf, 53, angular_velocity_z);
343 _mav_put_float_array(buf, 8, q, 4);
344 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE, buf, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_CRC);
346 mavlink_autopilot_state_for_gimbal_device_t packet;
347 packet.time_boot_us = time_boot_us;
348 packet.q_estimated_delay_us = q_estimated_delay_us;
352 packet.v_estimated_delay_us = v_estimated_delay_us;
353 packet.feed_forward_angular_velocity_z = feed_forward_angular_velocity_z;
354 packet.estimator_status = estimator_status;
355 packet.target_system = target_system;
356 packet.target_component = target_component;
357 packet.landed_state = landed_state;
358 packet.angular_velocity_z = angular_velocity_z;
359 mav_array_memcpy(packet.q, q,
sizeof(
float)*4);
360 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE, (
const char *)&packet, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_CRC);
365
366
367
368
369static inline void mavlink_msg_autopilot_state_for_gimbal_device_send_struct(mavlink_channel_t chan,
const mavlink_autopilot_state_for_gimbal_device_t* autopilot_state_for_gimbal_device)
371#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
372 mavlink_msg_autopilot_state_for_gimbal_device_send(chan, autopilot_state_for_gimbal_device->target_system, autopilot_state_for_gimbal_device->target_component, autopilot_state_for_gimbal_device->time_boot_us, autopilot_state_for_gimbal_device->q, autopilot_state_for_gimbal_device->q_estimated_delay_us, autopilot_state_for_gimbal_device->vx, autopilot_state_for_gimbal_device->vy, autopilot_state_for_gimbal_device->vz, autopilot_state_for_gimbal_device->v_estimated_delay_us, autopilot_state_for_gimbal_device->feed_forward_angular_velocity_z, autopilot_state_for_gimbal_device->estimator_status, autopilot_state_for_gimbal_device->landed_state, autopilot_state_for_gimbal_device->angular_velocity_z);
374 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE, (
const char *)autopilot_state_for_gimbal_device, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_CRC);
378#if MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
380
381
382
383
384
385
386static inline void mavlink_msg_autopilot_state_for_gimbal_device_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint64_t time_boot_us,
const float *q, uint32_t q_estimated_delay_us,
float vx,
float vy,
float vz, uint32_t v_estimated_delay_us,
float feed_forward_angular_velocity_z, uint16_t estimator_status, uint8_t landed_state,
float angular_velocity_z)
388#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
389 char *buf = (
char *)msgbuf;
390 _mav_put_uint64_t(buf, 0, time_boot_us);
391 _mav_put_uint32_t(buf, 24, q_estimated_delay_us);
392 _mav_put_float(buf, 28, vx);
393 _mav_put_float(buf, 32, vy);
394 _mav_put_float(buf, 36, vz);
395 _mav_put_uint32_t(buf, 40, v_estimated_delay_us);
396 _mav_put_float(buf, 44, feed_forward_angular_velocity_z);
397 _mav_put_uint16_t(buf, 48, estimator_status);
398 _mav_put_uint8_t(buf, 50, target_system);
399 _mav_put_uint8_t(buf, 51, target_component);
400 _mav_put_uint8_t(buf, 52, landed_state);
401 _mav_put_float(buf, 53, angular_velocity_z);
402 _mav_put_float_array(buf, 8, q, 4);
403 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE, buf, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_CRC);
405 mavlink_autopilot_state_for_gimbal_device_t *packet = (mavlink_autopilot_state_for_gimbal_device_t *)msgbuf;
406 packet->time_boot_us = time_boot_us;
407 packet->q_estimated_delay_us = q_estimated_delay_us;
411 packet->v_estimated_delay_us = v_estimated_delay_us;
412 packet->feed_forward_angular_velocity_z = feed_forward_angular_velocity_z;
413 packet->estimator_status = estimator_status;
414 packet->target_system = target_system;
415 packet->target_component = target_component;
416 packet->landed_state = landed_state;
417 packet->angular_velocity_z = angular_velocity_z;
418 mav_array_memcpy(packet->q, q,
sizeof(
float)*4);
419 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE, (
const char *)packet, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_MIN_LEN, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_CRC);
430
431
432
433
434static inline uint8_t mavlink_msg_autopilot_state_for_gimbal_device_get_target_system(
const mavlink_message_t* msg)
436 return _MAV_RETURN_uint8_t(msg, 50);
440
441
442
443
444static inline uint8_t mavlink_msg_autopilot_state_for_gimbal_device_get_target_component(
const mavlink_message_t* msg)
446 return _MAV_RETURN_uint8_t(msg, 51);
450
451
452
453
454static inline uint64_t mavlink_msg_autopilot_state_for_gimbal_device_get_time_boot_us(
const mavlink_message_t* msg)
456 return _MAV_RETURN_uint64_t(msg, 0);
460
461
462
463
464static inline uint16_t mavlink_msg_autopilot_state_for_gimbal_device_get_q(
const mavlink_message_t* msg,
float *q)
466 return _MAV_RETURN_float_array(msg, q, 4, 8);
470
471
472
473
474static inline uint32_t mavlink_msg_autopilot_state_for_gimbal_device_get_q_estimated_delay_us(
const mavlink_message_t* msg)
476 return _MAV_RETURN_uint32_t(msg, 24);
480
481
482
483
484static inline float mavlink_msg_autopilot_state_for_gimbal_device_get_vx(
const mavlink_message_t* msg)
486 return _MAV_RETURN_float(msg, 28);
490
491
492
493
494static inline float mavlink_msg_autopilot_state_for_gimbal_device_get_vy(
const mavlink_message_t* msg)
496 return _MAV_RETURN_float(msg, 32);
500
501
502
503
504static inline float mavlink_msg_autopilot_state_for_gimbal_device_get_vz(
const mavlink_message_t* msg)
506 return _MAV_RETURN_float(msg, 36);
510
511
512
513
514static inline uint32_t mavlink_msg_autopilot_state_for_gimbal_device_get_v_estimated_delay_us(
const mavlink_message_t* msg)
516 return _MAV_RETURN_uint32_t(msg, 40);
520
521
522
523
524static inline float mavlink_msg_autopilot_state_for_gimbal_device_get_feed_forward_angular_velocity_z(
const mavlink_message_t* msg)
526 return _MAV_RETURN_float(msg, 44);
530
531
532
533
534static inline uint16_t mavlink_msg_autopilot_state_for_gimbal_device_get_estimator_status(
const mavlink_message_t* msg)
536 return _MAV_RETURN_uint16_t(msg, 48);
540
541
542
543
544static inline uint8_t mavlink_msg_autopilot_state_for_gimbal_device_get_landed_state(
const mavlink_message_t* msg)
546 return _MAV_RETURN_uint8_t(msg, 52);
550
551
552
553
554static inline float mavlink_msg_autopilot_state_for_gimbal_device_get_angular_velocity_z(
const mavlink_message_t* msg)
556 return _MAV_RETURN_float(msg, 53);
560
561
562
563
564
565static inline void mavlink_msg_autopilot_state_for_gimbal_device_decode(
const mavlink_message_t* msg, mavlink_autopilot_state_for_gimbal_device_t* autopilot_state_for_gimbal_device)
567#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
568 autopilot_state_for_gimbal_device->time_boot_us = mavlink_msg_autopilot_state_for_gimbal_device_get_time_boot_us(msg);
569 mavlink_msg_autopilot_state_for_gimbal_device_get_q(msg, autopilot_state_for_gimbal_device->q);
570 autopilot_state_for_gimbal_device->q_estimated_delay_us = mavlink_msg_autopilot_state_for_gimbal_device_get_q_estimated_delay_us(msg);
571 autopilot_state_for_gimbal_device->vx = mavlink_msg_autopilot_state_for_gimbal_device_get_vx(msg);
572 autopilot_state_for_gimbal_device->vy = mavlink_msg_autopilot_state_for_gimbal_device_get_vy(msg);
573 autopilot_state_for_gimbal_device->vz = mavlink_msg_autopilot_state_for_gimbal_device_get_vz(msg);
574 autopilot_state_for_gimbal_device->v_estimated_delay_us = mavlink_msg_autopilot_state_for_gimbal_device_get_v_estimated_delay_us(msg);
575 autopilot_state_for_gimbal_device->feed_forward_angular_velocity_z = mavlink_msg_autopilot_state_for_gimbal_device_get_feed_forward_angular_velocity_z(msg);
576 autopilot_state_for_gimbal_device->estimator_status = mavlink_msg_autopilot_state_for_gimbal_device_get_estimator_status(msg);
577 autopilot_state_for_gimbal_device->target_system = mavlink_msg_autopilot_state_for_gimbal_device_get_target_system(msg);
578 autopilot_state_for_gimbal_device->target_component = mavlink_msg_autopilot_state_for_gimbal_device_get_target_component(msg);
579 autopilot_state_for_gimbal_device->landed_state = mavlink_msg_autopilot_state_for_gimbal_device_get_landed_state(msg);
580 autopilot_state_for_gimbal_device->angular_velocity_z = mavlink_msg_autopilot_state_for_gimbal_device_get_angular_velocity_z(msg);
582 uint8_t len = msg->len < MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN? msg->len : MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN;
583 memset(autopilot_state_for_gimbal_device, 0, MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN);
584 memcpy(autopilot_state_for_gimbal_device, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_LEN
Definition: mavlink_msg_autopilot_state_for_gimbal_device.h:23
#define MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE
Definition: mavlink_msg_autopilot_state_for_gimbal_device.h:4
#define MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_CRC
Definition: mavlink_msg_autopilot_state_for_gimbal_device.h:28
#define MAVLINK_MSG_ID_AUTOPILOT_STATE_FOR_GIMBAL_DEVICE_MIN_LEN
Definition: mavlink_msg_autopilot_state_for_gimbal_device.h:24