2 // MESSAGE GIMBAL_MANAGER_INFORMATION PACKING
4 #define MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION 280
7 typedef struct __mavlink_gimbal_manager_information_t
{
8 uint32_t time_boot_ms
; /*< [ms] Timestamp (time since system boot).*/
9 uint32_t cap_flags
; /*< Bitmap of gimbal capability flags.*/
10 float roll_min
; /*< [rad] Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left)*/
11 float roll_max
; /*< [rad] Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left)*/
12 float pitch_min
; /*< [rad] Minimum pitch angle (positive: up, negative: down)*/
13 float pitch_max
; /*< [rad] Maximum pitch angle (positive: up, negative: down)*/
14 float yaw_min
; /*< [rad] Minimum yaw angle (positive: to the right, negative: to the left)*/
15 float yaw_max
; /*< [rad] Maximum yaw angle (positive: to the right, negative: to the left)*/
16 uint8_t gimbal_device_id
; /*< Gimbal device ID that this gimbal manager is responsible for.*/
17 } mavlink_gimbal_manager_information_t
;
19 #define MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN 33
20 #define MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_MIN_LEN 33
21 #define MAVLINK_MSG_ID_280_LEN 33
22 #define MAVLINK_MSG_ID_280_MIN_LEN 33
24 #define MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_CRC 70
25 #define MAVLINK_MSG_ID_280_CRC 70
29 #if MAVLINK_COMMAND_24BIT
30 #define MAVLINK_MESSAGE_INFO_GIMBAL_MANAGER_INFORMATION { \
32 "GIMBAL_MANAGER_INFORMATION", \
34 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_gimbal_manager_information_t, time_boot_ms) }, \
35 { "cap_flags", NULL, MAVLINK_TYPE_UINT32_T, 0, 4, offsetof(mavlink_gimbal_manager_information_t, cap_flags) }, \
36 { "gimbal_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_gimbal_manager_information_t, gimbal_device_id) }, \
37 { "roll_min", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_gimbal_manager_information_t, roll_min) }, \
38 { "roll_max", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_gimbal_manager_information_t, roll_max) }, \
39 { "pitch_min", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_gimbal_manager_information_t, pitch_min) }, \
40 { "pitch_max", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_gimbal_manager_information_t, pitch_max) }, \
41 { "yaw_min", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_gimbal_manager_information_t, yaw_min) }, \
42 { "yaw_max", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_gimbal_manager_information_t, yaw_max) }, \
46 #define MAVLINK_MESSAGE_INFO_GIMBAL_MANAGER_INFORMATION { \
47 "GIMBAL_MANAGER_INFORMATION", \
49 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_gimbal_manager_information_t, time_boot_ms) }, \
50 { "cap_flags", NULL, MAVLINK_TYPE_UINT32_T, 0, 4, offsetof(mavlink_gimbal_manager_information_t, cap_flags) }, \
51 { "gimbal_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_gimbal_manager_information_t, gimbal_device_id) }, \
52 { "roll_min", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_gimbal_manager_information_t, roll_min) }, \
53 { "roll_max", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_gimbal_manager_information_t, roll_max) }, \
54 { "pitch_min", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_gimbal_manager_information_t, pitch_min) }, \
55 { "pitch_max", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_gimbal_manager_information_t, pitch_max) }, \
56 { "yaw_min", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_gimbal_manager_information_t, yaw_min) }, \
57 { "yaw_max", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_gimbal_manager_information_t, yaw_max) }, \
63 * @brief Pack a gimbal_manager_information message
64 * @param system_id ID of this system
65 * @param component_id ID of this component (e.g. 200 for IMU)
66 * @param msg The MAVLink message to compress the data into
68 * @param time_boot_ms [ms] Timestamp (time since system boot).
69 * @param cap_flags Bitmap of gimbal capability flags.
70 * @param gimbal_device_id Gimbal device ID that this gimbal manager is responsible for.
71 * @param roll_min [rad] Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left)
72 * @param roll_max [rad] Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left)
73 * @param pitch_min [rad] Minimum pitch angle (positive: up, negative: down)
74 * @param pitch_max [rad] Maximum pitch angle (positive: up, negative: down)
75 * @param yaw_min [rad] Minimum yaw angle (positive: to the right, negative: to the left)
76 * @param yaw_max [rad] Maximum yaw angle (positive: to the right, negative: to the left)
77 * @return length of the message in bytes (excluding serial stream start sign)
79 static inline uint16_t mavlink_msg_gimbal_manager_information_pack(uint8_t system_id
, uint8_t component_id
, mavlink_message_t
* msg
,
80 uint32_t time_boot_ms
, uint32_t cap_flags
, uint8_t gimbal_device_id
, float roll_min
, float roll_max
, float pitch_min
, float pitch_max
, float yaw_min
, float yaw_max
)
82 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
83 char buf
[MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
];
84 _mav_put_uint32_t(buf
, 0, time_boot_ms
);
85 _mav_put_uint32_t(buf
, 4, cap_flags
);
86 _mav_put_float(buf
, 8, roll_min
);
87 _mav_put_float(buf
, 12, roll_max
);
88 _mav_put_float(buf
, 16, pitch_min
);
89 _mav_put_float(buf
, 20, pitch_max
);
90 _mav_put_float(buf
, 24, yaw_min
);
91 _mav_put_float(buf
, 28, yaw_max
);
92 _mav_put_uint8_t(buf
, 32, gimbal_device_id
);
94 memcpy(_MAV_PAYLOAD_NON_CONST(msg
), buf
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
);
96 mavlink_gimbal_manager_information_t packet
;
97 packet
.time_boot_ms
= time_boot_ms
;
98 packet
.cap_flags
= cap_flags
;
99 packet
.roll_min
= roll_min
;
100 packet
.roll_max
= roll_max
;
101 packet
.pitch_min
= pitch_min
;
102 packet
.pitch_max
= pitch_max
;
103 packet
.yaw_min
= yaw_min
;
104 packet
.yaw_max
= yaw_max
;
105 packet
.gimbal_device_id
= gimbal_device_id
;
107 memcpy(_MAV_PAYLOAD_NON_CONST(msg
), &packet
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
);
110 msg
->msgid
= MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION
;
111 return mavlink_finalize_message(msg
, system_id
, component_id
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_MIN_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_CRC
);
115 * @brief Pack a gimbal_manager_information message on a channel
116 * @param system_id ID of this system
117 * @param component_id ID of this component (e.g. 200 for IMU)
118 * @param chan The MAVLink channel this message will be sent over
119 * @param msg The MAVLink message to compress the data into
120 * @param time_boot_ms [ms] Timestamp (time since system boot).
121 * @param cap_flags Bitmap of gimbal capability flags.
122 * @param gimbal_device_id Gimbal device ID that this gimbal manager is responsible for.
123 * @param roll_min [rad] Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left)
124 * @param roll_max [rad] Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left)
125 * @param pitch_min [rad] Minimum pitch angle (positive: up, negative: down)
126 * @param pitch_max [rad] Maximum pitch angle (positive: up, negative: down)
127 * @param yaw_min [rad] Minimum yaw angle (positive: to the right, negative: to the left)
128 * @param yaw_max [rad] Maximum yaw angle (positive: to the right, negative: to the left)
129 * @return length of the message in bytes (excluding serial stream start sign)
131 static inline uint16_t mavlink_msg_gimbal_manager_information_pack_chan(uint8_t system_id
, uint8_t component_id
, uint8_t chan
,
132 mavlink_message_t
* msg
,
133 uint32_t time_boot_ms
,uint32_t cap_flags
,uint8_t gimbal_device_id
,float roll_min
,float roll_max
,float pitch_min
,float pitch_max
,float yaw_min
,float yaw_max
)
135 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
136 char buf
[MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
];
137 _mav_put_uint32_t(buf
, 0, time_boot_ms
);
138 _mav_put_uint32_t(buf
, 4, cap_flags
);
139 _mav_put_float(buf
, 8, roll_min
);
140 _mav_put_float(buf
, 12, roll_max
);
141 _mav_put_float(buf
, 16, pitch_min
);
142 _mav_put_float(buf
, 20, pitch_max
);
143 _mav_put_float(buf
, 24, yaw_min
);
144 _mav_put_float(buf
, 28, yaw_max
);
145 _mav_put_uint8_t(buf
, 32, gimbal_device_id
);
147 memcpy(_MAV_PAYLOAD_NON_CONST(msg
), buf
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
);
149 mavlink_gimbal_manager_information_t packet
;
150 packet
.time_boot_ms
= time_boot_ms
;
151 packet
.cap_flags
= cap_flags
;
152 packet
.roll_min
= roll_min
;
153 packet
.roll_max
= roll_max
;
154 packet
.pitch_min
= pitch_min
;
155 packet
.pitch_max
= pitch_max
;
156 packet
.yaw_min
= yaw_min
;
157 packet
.yaw_max
= yaw_max
;
158 packet
.gimbal_device_id
= gimbal_device_id
;
160 memcpy(_MAV_PAYLOAD_NON_CONST(msg
), &packet
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
);
163 msg
->msgid
= MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION
;
164 return mavlink_finalize_message_chan(msg
, system_id
, component_id
, chan
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_MIN_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_CRC
);
168 * @brief Encode a gimbal_manager_information struct
170 * @param system_id ID of this system
171 * @param component_id ID of this component (e.g. 200 for IMU)
172 * @param msg The MAVLink message to compress the data into
173 * @param gimbal_manager_information C-struct to read the message contents from
175 static inline uint16_t mavlink_msg_gimbal_manager_information_encode(uint8_t system_id
, uint8_t component_id
, mavlink_message_t
* msg
, const mavlink_gimbal_manager_information_t
* gimbal_manager_information
)
177 return mavlink_msg_gimbal_manager_information_pack(system_id
, component_id
, msg
, gimbal_manager_information
->time_boot_ms
, gimbal_manager_information
->cap_flags
, gimbal_manager_information
->gimbal_device_id
, gimbal_manager_information
->roll_min
, gimbal_manager_information
->roll_max
, gimbal_manager_information
->pitch_min
, gimbal_manager_information
->pitch_max
, gimbal_manager_information
->yaw_min
, gimbal_manager_information
->yaw_max
);
181 * @brief Encode a gimbal_manager_information struct on a channel
183 * @param system_id ID of this system
184 * @param component_id ID of this component (e.g. 200 for IMU)
185 * @param chan The MAVLink channel this message will be sent over
186 * @param msg The MAVLink message to compress the data into
187 * @param gimbal_manager_information C-struct to read the message contents from
189 static inline uint16_t mavlink_msg_gimbal_manager_information_encode_chan(uint8_t system_id
, uint8_t component_id
, uint8_t chan
, mavlink_message_t
* msg
, const mavlink_gimbal_manager_information_t
* gimbal_manager_information
)
191 return mavlink_msg_gimbal_manager_information_pack_chan(system_id
, component_id
, chan
, msg
, gimbal_manager_information
->time_boot_ms
, gimbal_manager_information
->cap_flags
, gimbal_manager_information
->gimbal_device_id
, gimbal_manager_information
->roll_min
, gimbal_manager_information
->roll_max
, gimbal_manager_information
->pitch_min
, gimbal_manager_information
->pitch_max
, gimbal_manager_information
->yaw_min
, gimbal_manager_information
->yaw_max
);
195 * @brief Send a gimbal_manager_information message
196 * @param chan MAVLink channel to send the message
198 * @param time_boot_ms [ms] Timestamp (time since system boot).
199 * @param cap_flags Bitmap of gimbal capability flags.
200 * @param gimbal_device_id Gimbal device ID that this gimbal manager is responsible for.
201 * @param roll_min [rad] Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left)
202 * @param roll_max [rad] Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left)
203 * @param pitch_min [rad] Minimum pitch angle (positive: up, negative: down)
204 * @param pitch_max [rad] Maximum pitch angle (positive: up, negative: down)
205 * @param yaw_min [rad] Minimum yaw angle (positive: to the right, negative: to the left)
206 * @param yaw_max [rad] Maximum yaw angle (positive: to the right, negative: to the left)
208 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
210 static inline void mavlink_msg_gimbal_manager_information_send(mavlink_channel_t chan
, uint32_t time_boot_ms
, uint32_t cap_flags
, uint8_t gimbal_device_id
, float roll_min
, float roll_max
, float pitch_min
, float pitch_max
, float yaw_min
, float yaw_max
)
212 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
213 char buf
[MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
];
214 _mav_put_uint32_t(buf
, 0, time_boot_ms
);
215 _mav_put_uint32_t(buf
, 4, cap_flags
);
216 _mav_put_float(buf
, 8, roll_min
);
217 _mav_put_float(buf
, 12, roll_max
);
218 _mav_put_float(buf
, 16, pitch_min
);
219 _mav_put_float(buf
, 20, pitch_max
);
220 _mav_put_float(buf
, 24, yaw_min
);
221 _mav_put_float(buf
, 28, yaw_max
);
222 _mav_put_uint8_t(buf
, 32, gimbal_device_id
);
224 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION
, buf
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_MIN_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_CRC
);
226 mavlink_gimbal_manager_information_t packet
;
227 packet
.time_boot_ms
= time_boot_ms
;
228 packet
.cap_flags
= cap_flags
;
229 packet
.roll_min
= roll_min
;
230 packet
.roll_max
= roll_max
;
231 packet
.pitch_min
= pitch_min
;
232 packet
.pitch_max
= pitch_max
;
233 packet
.yaw_min
= yaw_min
;
234 packet
.yaw_max
= yaw_max
;
235 packet
.gimbal_device_id
= gimbal_device_id
;
237 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION
, (const char *)&packet
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_MIN_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_CRC
);
242 * @brief Send a gimbal_manager_information message
243 * @param chan MAVLink channel to send the message
244 * @param struct The MAVLink struct to serialize
246 static inline void mavlink_msg_gimbal_manager_information_send_struct(mavlink_channel_t chan
, const mavlink_gimbal_manager_information_t
* gimbal_manager_information
)
248 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
249 mavlink_msg_gimbal_manager_information_send(chan
, gimbal_manager_information
->time_boot_ms
, gimbal_manager_information
->cap_flags
, gimbal_manager_information
->gimbal_device_id
, gimbal_manager_information
->roll_min
, gimbal_manager_information
->roll_max
, gimbal_manager_information
->pitch_min
, gimbal_manager_information
->pitch_max
, gimbal_manager_information
->yaw_min
, gimbal_manager_information
->yaw_max
);
251 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION
, (const char *)gimbal_manager_information
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_MIN_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_CRC
);
255 #if MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN <= MAVLINK_MAX_PAYLOAD_LEN
257 This varient of _send() can be used to save stack space by re-using
258 memory from the receive buffer. The caller provides a
259 mavlink_message_t which is the size of a full mavlink message. This
260 is usually the receive buffer for the channel, and allows a reply to an
261 incoming message with minimum stack space usage.
263 static inline void mavlink_msg_gimbal_manager_information_send_buf(mavlink_message_t
*msgbuf
, mavlink_channel_t chan
, uint32_t time_boot_ms
, uint32_t cap_flags
, uint8_t gimbal_device_id
, float roll_min
, float roll_max
, float pitch_min
, float pitch_max
, float yaw_min
, float yaw_max
)
265 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
266 char *buf
= (char *)msgbuf
;
267 _mav_put_uint32_t(buf
, 0, time_boot_ms
);
268 _mav_put_uint32_t(buf
, 4, cap_flags
);
269 _mav_put_float(buf
, 8, roll_min
);
270 _mav_put_float(buf
, 12, roll_max
);
271 _mav_put_float(buf
, 16, pitch_min
);
272 _mav_put_float(buf
, 20, pitch_max
);
273 _mav_put_float(buf
, 24, yaw_min
);
274 _mav_put_float(buf
, 28, yaw_max
);
275 _mav_put_uint8_t(buf
, 32, gimbal_device_id
);
277 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION
, buf
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_MIN_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_CRC
);
279 mavlink_gimbal_manager_information_t
*packet
= (mavlink_gimbal_manager_information_t
*)msgbuf
;
280 packet
->time_boot_ms
= time_boot_ms
;
281 packet
->cap_flags
= cap_flags
;
282 packet
->roll_min
= roll_min
;
283 packet
->roll_max
= roll_max
;
284 packet
->pitch_min
= pitch_min
;
285 packet
->pitch_max
= pitch_max
;
286 packet
->yaw_min
= yaw_min
;
287 packet
->yaw_max
= yaw_max
;
288 packet
->gimbal_device_id
= gimbal_device_id
;
290 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION
, (const char *)packet
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_MIN_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_CRC
);
297 // MESSAGE GIMBAL_MANAGER_INFORMATION UNPACKING
301 * @brief Get field time_boot_ms from gimbal_manager_information message
303 * @return [ms] Timestamp (time since system boot).
305 static inline uint32_t mavlink_msg_gimbal_manager_information_get_time_boot_ms(const mavlink_message_t
* msg
)
307 return _MAV_RETURN_uint32_t(msg
, 0);
311 * @brief Get field cap_flags from gimbal_manager_information message
313 * @return Bitmap of gimbal capability flags.
315 static inline uint32_t mavlink_msg_gimbal_manager_information_get_cap_flags(const mavlink_message_t
* msg
)
317 return _MAV_RETURN_uint32_t(msg
, 4);
321 * @brief Get field gimbal_device_id from gimbal_manager_information message
323 * @return Gimbal device ID that this gimbal manager is responsible for.
325 static inline uint8_t mavlink_msg_gimbal_manager_information_get_gimbal_device_id(const mavlink_message_t
* msg
)
327 return _MAV_RETURN_uint8_t(msg
, 32);
331 * @brief Get field roll_min from gimbal_manager_information message
333 * @return [rad] Minimum hardware roll angle (positive: rolling to the right, negative: rolling to the left)
335 static inline float mavlink_msg_gimbal_manager_information_get_roll_min(const mavlink_message_t
* msg
)
337 return _MAV_RETURN_float(msg
, 8);
341 * @brief Get field roll_max from gimbal_manager_information message
343 * @return [rad] Maximum hardware roll angle (positive: rolling to the right, negative: rolling to the left)
345 static inline float mavlink_msg_gimbal_manager_information_get_roll_max(const mavlink_message_t
* msg
)
347 return _MAV_RETURN_float(msg
, 12);
351 * @brief Get field pitch_min from gimbal_manager_information message
353 * @return [rad] Minimum pitch angle (positive: up, negative: down)
355 static inline float mavlink_msg_gimbal_manager_information_get_pitch_min(const mavlink_message_t
* msg
)
357 return _MAV_RETURN_float(msg
, 16);
361 * @brief Get field pitch_max from gimbal_manager_information message
363 * @return [rad] Maximum pitch angle (positive: up, negative: down)
365 static inline float mavlink_msg_gimbal_manager_information_get_pitch_max(const mavlink_message_t
* msg
)
367 return _MAV_RETURN_float(msg
, 20);
371 * @brief Get field yaw_min from gimbal_manager_information message
373 * @return [rad] Minimum yaw angle (positive: to the right, negative: to the left)
375 static inline float mavlink_msg_gimbal_manager_information_get_yaw_min(const mavlink_message_t
* msg
)
377 return _MAV_RETURN_float(msg
, 24);
381 * @brief Get field yaw_max from gimbal_manager_information message
383 * @return [rad] Maximum yaw angle (positive: to the right, negative: to the left)
385 static inline float mavlink_msg_gimbal_manager_information_get_yaw_max(const mavlink_message_t
* msg
)
387 return _MAV_RETURN_float(msg
, 28);
391 * @brief Decode a gimbal_manager_information message into a struct
393 * @param msg The message to decode
394 * @param gimbal_manager_information C-struct to decode the message contents into
396 static inline void mavlink_msg_gimbal_manager_information_decode(const mavlink_message_t
* msg
, mavlink_gimbal_manager_information_t
* gimbal_manager_information
)
398 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
399 gimbal_manager_information
->time_boot_ms
= mavlink_msg_gimbal_manager_information_get_time_boot_ms(msg
);
400 gimbal_manager_information
->cap_flags
= mavlink_msg_gimbal_manager_information_get_cap_flags(msg
);
401 gimbal_manager_information
->roll_min
= mavlink_msg_gimbal_manager_information_get_roll_min(msg
);
402 gimbal_manager_information
->roll_max
= mavlink_msg_gimbal_manager_information_get_roll_max(msg
);
403 gimbal_manager_information
->pitch_min
= mavlink_msg_gimbal_manager_information_get_pitch_min(msg
);
404 gimbal_manager_information
->pitch_max
= mavlink_msg_gimbal_manager_information_get_pitch_max(msg
);
405 gimbal_manager_information
->yaw_min
= mavlink_msg_gimbal_manager_information_get_yaw_min(msg
);
406 gimbal_manager_information
->yaw_max
= mavlink_msg_gimbal_manager_information_get_yaw_max(msg
);
407 gimbal_manager_information
->gimbal_device_id
= mavlink_msg_gimbal_manager_information_get_gimbal_device_id(msg
);
409 uint8_t len
= msg
->len
< MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
? msg
->len
: MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
;
410 memset(gimbal_manager_information
, 0, MAVLINK_MSG_ID_GIMBAL_MANAGER_INFORMATION_LEN
);
411 memcpy(gimbal_manager_information
, _MAV_PAYLOAD(msg
), len
);