2 // MESSAGE ESC_INFO PACKING
4 #define MAVLINK_MSG_ID_ESC_INFO 290
7 typedef struct __mavlink_esc_info_t
{
8 uint64_t time_usec
; /*< [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.*/
9 uint32_t error_count
[4]; /*< Number of reported errors by each ESC since boot.*/
10 uint16_t counter
; /*< Counter of data packets received.*/
11 uint16_t failure_flags
[4]; /*< Bitmap of ESC failure flags.*/
12 uint8_t index
; /*< Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4.*/
13 uint8_t count
; /*< Total number of ESCs in all messages of this type. Message fields with an index higher than this should be ignored because they contain invalid data.*/
14 uint8_t connection_type
; /*< Connection type protocol for all ESC.*/
15 uint8_t info
; /*< Information regarding online/offline status of each ESC.*/
16 uint8_t temperature
[4]; /*< [degC] Temperature measured by each ESC. UINT8_MAX if data not supplied by ESC.*/
19 #define MAVLINK_MSG_ID_ESC_INFO_LEN 42
20 #define MAVLINK_MSG_ID_ESC_INFO_MIN_LEN 42
21 #define MAVLINK_MSG_ID_290_LEN 42
22 #define MAVLINK_MSG_ID_290_MIN_LEN 42
24 #define MAVLINK_MSG_ID_ESC_INFO_CRC 221
25 #define MAVLINK_MSG_ID_290_CRC 221
27 #define MAVLINK_MSG_ESC_INFO_FIELD_ERROR_COUNT_LEN 4
28 #define MAVLINK_MSG_ESC_INFO_FIELD_FAILURE_FLAGS_LEN 4
29 #define MAVLINK_MSG_ESC_INFO_FIELD_TEMPERATURE_LEN 4
31 #if MAVLINK_COMMAND_24BIT
32 #define MAVLINK_MESSAGE_INFO_ESC_INFO { \
36 { { "index", NULL, MAVLINK_TYPE_UINT8_T, 0, 34, offsetof(mavlink_esc_info_t, index) }, \
37 { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_esc_info_t, time_usec) }, \
38 { "counter", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_esc_info_t, counter) }, \
39 { "count", NULL, MAVLINK_TYPE_UINT8_T, 0, 35, offsetof(mavlink_esc_info_t, count) }, \
40 { "connection_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 36, offsetof(mavlink_esc_info_t, connection_type) }, \
41 { "info", NULL, MAVLINK_TYPE_UINT8_T, 0, 37, offsetof(mavlink_esc_info_t, info) }, \
42 { "failure_flags", NULL, MAVLINK_TYPE_UINT16_T, 4, 26, offsetof(mavlink_esc_info_t, failure_flags) }, \
43 { "error_count", NULL, MAVLINK_TYPE_UINT32_T, 4, 8, offsetof(mavlink_esc_info_t, error_count) }, \
44 { "temperature", NULL, MAVLINK_TYPE_UINT8_T, 4, 38, offsetof(mavlink_esc_info_t, temperature) }, \
48 #define MAVLINK_MESSAGE_INFO_ESC_INFO { \
51 { { "index", NULL, MAVLINK_TYPE_UINT8_T, 0, 34, offsetof(mavlink_esc_info_t, index) }, \
52 { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_esc_info_t, time_usec) }, \
53 { "counter", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_esc_info_t, counter) }, \
54 { "count", NULL, MAVLINK_TYPE_UINT8_T, 0, 35, offsetof(mavlink_esc_info_t, count) }, \
55 { "connection_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 36, offsetof(mavlink_esc_info_t, connection_type) }, \
56 { "info", NULL, MAVLINK_TYPE_UINT8_T, 0, 37, offsetof(mavlink_esc_info_t, info) }, \
57 { "failure_flags", NULL, MAVLINK_TYPE_UINT16_T, 4, 26, offsetof(mavlink_esc_info_t, failure_flags) }, \
58 { "error_count", NULL, MAVLINK_TYPE_UINT32_T, 4, 8, offsetof(mavlink_esc_info_t, error_count) }, \
59 { "temperature", NULL, MAVLINK_TYPE_UINT8_T, 4, 38, offsetof(mavlink_esc_info_t, temperature) }, \
65 * @brief Pack a esc_info message
66 * @param system_id ID of this system
67 * @param component_id ID of this component (e.g. 200 for IMU)
68 * @param msg The MAVLink message to compress the data into
70 * @param index Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4.
71 * @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
72 * @param counter Counter of data packets received.
73 * @param count Total number of ESCs in all messages of this type. Message fields with an index higher than this should be ignored because they contain invalid data.
74 * @param connection_type Connection type protocol for all ESC.
75 * @param info Information regarding online/offline status of each ESC.
76 * @param failure_flags Bitmap of ESC failure flags.
77 * @param error_count Number of reported errors by each ESC since boot.
78 * @param temperature [degC] Temperature measured by each ESC. UINT8_MAX if data not supplied by ESC.
79 * @return length of the message in bytes (excluding serial stream start sign)
81 static inline uint16_t mavlink_msg_esc_info_pack(uint8_t system_id
, uint8_t component_id
, mavlink_message_t
* msg
,
82 uint8_t index
, uint64_t time_usec
, uint16_t counter
, uint8_t count
, uint8_t connection_type
, uint8_t info
, const uint16_t *failure_flags
, const uint32_t *error_count
, const uint8_t *temperature
)
84 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
85 char buf
[MAVLINK_MSG_ID_ESC_INFO_LEN
];
86 _mav_put_uint64_t(buf
, 0, time_usec
);
87 _mav_put_uint16_t(buf
, 24, counter
);
88 _mav_put_uint8_t(buf
, 34, index
);
89 _mav_put_uint8_t(buf
, 35, count
);
90 _mav_put_uint8_t(buf
, 36, connection_type
);
91 _mav_put_uint8_t(buf
, 37, info
);
92 _mav_put_uint32_t_array(buf
, 8, error_count
, 4);
93 _mav_put_uint16_t_array(buf
, 26, failure_flags
, 4);
94 _mav_put_uint8_t_array(buf
, 38, temperature
, 4);
95 memcpy(_MAV_PAYLOAD_NON_CONST(msg
), buf
, MAVLINK_MSG_ID_ESC_INFO_LEN
);
97 mavlink_esc_info_t packet
;
98 packet
.time_usec
= time_usec
;
99 packet
.counter
= counter
;
100 packet
.index
= index
;
101 packet
.count
= count
;
102 packet
.connection_type
= connection_type
;
104 mav_array_memcpy(packet
.error_count
, error_count
, sizeof(uint32_t)*4);
105 mav_array_memcpy(packet
.failure_flags
, failure_flags
, sizeof(uint16_t)*4);
106 mav_array_memcpy(packet
.temperature
, temperature
, sizeof(uint8_t)*4);
107 memcpy(_MAV_PAYLOAD_NON_CONST(msg
), &packet
, MAVLINK_MSG_ID_ESC_INFO_LEN
);
110 msg
->msgid
= MAVLINK_MSG_ID_ESC_INFO
;
111 return mavlink_finalize_message(msg
, system_id
, component_id
, MAVLINK_MSG_ID_ESC_INFO_MIN_LEN
, MAVLINK_MSG_ID_ESC_INFO_LEN
, MAVLINK_MSG_ID_ESC_INFO_CRC
);
115 * @brief Pack a esc_info 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 index Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4.
121 * @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
122 * @param counter Counter of data packets received.
123 * @param count Total number of ESCs in all messages of this type. Message fields with an index higher than this should be ignored because they contain invalid data.
124 * @param connection_type Connection type protocol for all ESC.
125 * @param info Information regarding online/offline status of each ESC.
126 * @param failure_flags Bitmap of ESC failure flags.
127 * @param error_count Number of reported errors by each ESC since boot.
128 * @param temperature [degC] Temperature measured by each ESC. UINT8_MAX if data not supplied by ESC.
129 * @return length of the message in bytes (excluding serial stream start sign)
131 static inline uint16_t mavlink_msg_esc_info_pack_chan(uint8_t system_id
, uint8_t component_id
, uint8_t chan
,
132 mavlink_message_t
* msg
,
133 uint8_t index
,uint64_t time_usec
,uint16_t counter
,uint8_t count
,uint8_t connection_type
,uint8_t info
,const uint16_t *failure_flags
,const uint32_t *error_count
,const uint8_t *temperature
)
135 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
136 char buf
[MAVLINK_MSG_ID_ESC_INFO_LEN
];
137 _mav_put_uint64_t(buf
, 0, time_usec
);
138 _mav_put_uint16_t(buf
, 24, counter
);
139 _mav_put_uint8_t(buf
, 34, index
);
140 _mav_put_uint8_t(buf
, 35, count
);
141 _mav_put_uint8_t(buf
, 36, connection_type
);
142 _mav_put_uint8_t(buf
, 37, info
);
143 _mav_put_uint32_t_array(buf
, 8, error_count
, 4);
144 _mav_put_uint16_t_array(buf
, 26, failure_flags
, 4);
145 _mav_put_uint8_t_array(buf
, 38, temperature
, 4);
146 memcpy(_MAV_PAYLOAD_NON_CONST(msg
), buf
, MAVLINK_MSG_ID_ESC_INFO_LEN
);
148 mavlink_esc_info_t packet
;
149 packet
.time_usec
= time_usec
;
150 packet
.counter
= counter
;
151 packet
.index
= index
;
152 packet
.count
= count
;
153 packet
.connection_type
= connection_type
;
155 mav_array_memcpy(packet
.error_count
, error_count
, sizeof(uint32_t)*4);
156 mav_array_memcpy(packet
.failure_flags
, failure_flags
, sizeof(uint16_t)*4);
157 mav_array_memcpy(packet
.temperature
, temperature
, sizeof(uint8_t)*4);
158 memcpy(_MAV_PAYLOAD_NON_CONST(msg
), &packet
, MAVLINK_MSG_ID_ESC_INFO_LEN
);
161 msg
->msgid
= MAVLINK_MSG_ID_ESC_INFO
;
162 return mavlink_finalize_message_chan(msg
, system_id
, component_id
, chan
, MAVLINK_MSG_ID_ESC_INFO_MIN_LEN
, MAVLINK_MSG_ID_ESC_INFO_LEN
, MAVLINK_MSG_ID_ESC_INFO_CRC
);
166 * @brief Encode a esc_info struct
168 * @param system_id ID of this system
169 * @param component_id ID of this component (e.g. 200 for IMU)
170 * @param msg The MAVLink message to compress the data into
171 * @param esc_info C-struct to read the message contents from
173 static inline uint16_t mavlink_msg_esc_info_encode(uint8_t system_id
, uint8_t component_id
, mavlink_message_t
* msg
, const mavlink_esc_info_t
* esc_info
)
175 return mavlink_msg_esc_info_pack(system_id
, component_id
, msg
, esc_info
->index
, esc_info
->time_usec
, esc_info
->counter
, esc_info
->count
, esc_info
->connection_type
, esc_info
->info
, esc_info
->failure_flags
, esc_info
->error_count
, esc_info
->temperature
);
179 * @brief Encode a esc_info struct on a channel
181 * @param system_id ID of this system
182 * @param component_id ID of this component (e.g. 200 for IMU)
183 * @param chan The MAVLink channel this message will be sent over
184 * @param msg The MAVLink message to compress the data into
185 * @param esc_info C-struct to read the message contents from
187 static inline uint16_t mavlink_msg_esc_info_encode_chan(uint8_t system_id
, uint8_t component_id
, uint8_t chan
, mavlink_message_t
* msg
, const mavlink_esc_info_t
* esc_info
)
189 return mavlink_msg_esc_info_pack_chan(system_id
, component_id
, chan
, msg
, esc_info
->index
, esc_info
->time_usec
, esc_info
->counter
, esc_info
->count
, esc_info
->connection_type
, esc_info
->info
, esc_info
->failure_flags
, esc_info
->error_count
, esc_info
->temperature
);
193 * @brief Send a esc_info message
194 * @param chan MAVLink channel to send the message
196 * @param index Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4.
197 * @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
198 * @param counter Counter of data packets received.
199 * @param count Total number of ESCs in all messages of this type. Message fields with an index higher than this should be ignored because they contain invalid data.
200 * @param connection_type Connection type protocol for all ESC.
201 * @param info Information regarding online/offline status of each ESC.
202 * @param failure_flags Bitmap of ESC failure flags.
203 * @param error_count Number of reported errors by each ESC since boot.
204 * @param temperature [degC] Temperature measured by each ESC. UINT8_MAX if data not supplied by ESC.
206 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
208 static inline void mavlink_msg_esc_info_send(mavlink_channel_t chan
, uint8_t index
, uint64_t time_usec
, uint16_t counter
, uint8_t count
, uint8_t connection_type
, uint8_t info
, const uint16_t *failure_flags
, const uint32_t *error_count
, const uint8_t *temperature
)
210 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
211 char buf
[MAVLINK_MSG_ID_ESC_INFO_LEN
];
212 _mav_put_uint64_t(buf
, 0, time_usec
);
213 _mav_put_uint16_t(buf
, 24, counter
);
214 _mav_put_uint8_t(buf
, 34, index
);
215 _mav_put_uint8_t(buf
, 35, count
);
216 _mav_put_uint8_t(buf
, 36, connection_type
);
217 _mav_put_uint8_t(buf
, 37, info
);
218 _mav_put_uint32_t_array(buf
, 8, error_count
, 4);
219 _mav_put_uint16_t_array(buf
, 26, failure_flags
, 4);
220 _mav_put_uint8_t_array(buf
, 38, temperature
, 4);
221 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_ESC_INFO
, buf
, MAVLINK_MSG_ID_ESC_INFO_MIN_LEN
, MAVLINK_MSG_ID_ESC_INFO_LEN
, MAVLINK_MSG_ID_ESC_INFO_CRC
);
223 mavlink_esc_info_t packet
;
224 packet
.time_usec
= time_usec
;
225 packet
.counter
= counter
;
226 packet
.index
= index
;
227 packet
.count
= count
;
228 packet
.connection_type
= connection_type
;
230 mav_array_memcpy(packet
.error_count
, error_count
, sizeof(uint32_t)*4);
231 mav_array_memcpy(packet
.failure_flags
, failure_flags
, sizeof(uint16_t)*4);
232 mav_array_memcpy(packet
.temperature
, temperature
, sizeof(uint8_t)*4);
233 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_ESC_INFO
, (const char *)&packet
, MAVLINK_MSG_ID_ESC_INFO_MIN_LEN
, MAVLINK_MSG_ID_ESC_INFO_LEN
, MAVLINK_MSG_ID_ESC_INFO_CRC
);
238 * @brief Send a esc_info message
239 * @param chan MAVLink channel to send the message
240 * @param struct The MAVLink struct to serialize
242 static inline void mavlink_msg_esc_info_send_struct(mavlink_channel_t chan
, const mavlink_esc_info_t
* esc_info
)
244 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
245 mavlink_msg_esc_info_send(chan
, esc_info
->index
, esc_info
->time_usec
, esc_info
->counter
, esc_info
->count
, esc_info
->connection_type
, esc_info
->info
, esc_info
->failure_flags
, esc_info
->error_count
, esc_info
->temperature
);
247 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_ESC_INFO
, (const char *)esc_info
, MAVLINK_MSG_ID_ESC_INFO_MIN_LEN
, MAVLINK_MSG_ID_ESC_INFO_LEN
, MAVLINK_MSG_ID_ESC_INFO_CRC
);
251 #if MAVLINK_MSG_ID_ESC_INFO_LEN <= MAVLINK_MAX_PAYLOAD_LEN
253 This varient of _send() can be used to save stack space by re-using
254 memory from the receive buffer. The caller provides a
255 mavlink_message_t which is the size of a full mavlink message. This
256 is usually the receive buffer for the channel, and allows a reply to an
257 incoming message with minimum stack space usage.
259 static inline void mavlink_msg_esc_info_send_buf(mavlink_message_t
*msgbuf
, mavlink_channel_t chan
, uint8_t index
, uint64_t time_usec
, uint16_t counter
, uint8_t count
, uint8_t connection_type
, uint8_t info
, const uint16_t *failure_flags
, const uint32_t *error_count
, const uint8_t *temperature
)
261 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
262 char *buf
= (char *)msgbuf
;
263 _mav_put_uint64_t(buf
, 0, time_usec
);
264 _mav_put_uint16_t(buf
, 24, counter
);
265 _mav_put_uint8_t(buf
, 34, index
);
266 _mav_put_uint8_t(buf
, 35, count
);
267 _mav_put_uint8_t(buf
, 36, connection_type
);
268 _mav_put_uint8_t(buf
, 37, info
);
269 _mav_put_uint32_t_array(buf
, 8, error_count
, 4);
270 _mav_put_uint16_t_array(buf
, 26, failure_flags
, 4);
271 _mav_put_uint8_t_array(buf
, 38, temperature
, 4);
272 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_ESC_INFO
, buf
, MAVLINK_MSG_ID_ESC_INFO_MIN_LEN
, MAVLINK_MSG_ID_ESC_INFO_LEN
, MAVLINK_MSG_ID_ESC_INFO_CRC
);
274 mavlink_esc_info_t
*packet
= (mavlink_esc_info_t
*)msgbuf
;
275 packet
->time_usec
= time_usec
;
276 packet
->counter
= counter
;
277 packet
->index
= index
;
278 packet
->count
= count
;
279 packet
->connection_type
= connection_type
;
281 mav_array_memcpy(packet
->error_count
, error_count
, sizeof(uint32_t)*4);
282 mav_array_memcpy(packet
->failure_flags
, failure_flags
, sizeof(uint16_t)*4);
283 mav_array_memcpy(packet
->temperature
, temperature
, sizeof(uint8_t)*4);
284 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_ESC_INFO
, (const char *)packet
, MAVLINK_MSG_ID_ESC_INFO_MIN_LEN
, MAVLINK_MSG_ID_ESC_INFO_LEN
, MAVLINK_MSG_ID_ESC_INFO_CRC
);
291 // MESSAGE ESC_INFO UNPACKING
295 * @brief Get field index from esc_info message
297 * @return Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4.
299 static inline uint8_t mavlink_msg_esc_info_get_index(const mavlink_message_t
* msg
)
301 return _MAV_RETURN_uint8_t(msg
, 34);
305 * @brief Get field time_usec from esc_info message
307 * @return [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
309 static inline uint64_t mavlink_msg_esc_info_get_time_usec(const mavlink_message_t
* msg
)
311 return _MAV_RETURN_uint64_t(msg
, 0);
315 * @brief Get field counter from esc_info message
317 * @return Counter of data packets received.
319 static inline uint16_t mavlink_msg_esc_info_get_counter(const mavlink_message_t
* msg
)
321 return _MAV_RETURN_uint16_t(msg
, 24);
325 * @brief Get field count from esc_info message
327 * @return Total number of ESCs in all messages of this type. Message fields with an index higher than this should be ignored because they contain invalid data.
329 static inline uint8_t mavlink_msg_esc_info_get_count(const mavlink_message_t
* msg
)
331 return _MAV_RETURN_uint8_t(msg
, 35);
335 * @brief Get field connection_type from esc_info message
337 * @return Connection type protocol for all ESC.
339 static inline uint8_t mavlink_msg_esc_info_get_connection_type(const mavlink_message_t
* msg
)
341 return _MAV_RETURN_uint8_t(msg
, 36);
345 * @brief Get field info from esc_info message
347 * @return Information regarding online/offline status of each ESC.
349 static inline uint8_t mavlink_msg_esc_info_get_info(const mavlink_message_t
* msg
)
351 return _MAV_RETURN_uint8_t(msg
, 37);
355 * @brief Get field failure_flags from esc_info message
357 * @return Bitmap of ESC failure flags.
359 static inline uint16_t mavlink_msg_esc_info_get_failure_flags(const mavlink_message_t
* msg
, uint16_t *failure_flags
)
361 return _MAV_RETURN_uint16_t_array(msg
, failure_flags
, 4, 26);
365 * @brief Get field error_count from esc_info message
367 * @return Number of reported errors by each ESC since boot.
369 static inline uint16_t mavlink_msg_esc_info_get_error_count(const mavlink_message_t
* msg
, uint32_t *error_count
)
371 return _MAV_RETURN_uint32_t_array(msg
, error_count
, 4, 8);
375 * @brief Get field temperature from esc_info message
377 * @return [degC] Temperature measured by each ESC. UINT8_MAX if data not supplied by ESC.
379 static inline uint16_t mavlink_msg_esc_info_get_temperature(const mavlink_message_t
* msg
, uint8_t *temperature
)
381 return _MAV_RETURN_uint8_t_array(msg
, temperature
, 4, 38);
385 * @brief Decode a esc_info message into a struct
387 * @param msg The message to decode
388 * @param esc_info C-struct to decode the message contents into
390 static inline void mavlink_msg_esc_info_decode(const mavlink_message_t
* msg
, mavlink_esc_info_t
* esc_info
)
392 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
393 esc_info
->time_usec
= mavlink_msg_esc_info_get_time_usec(msg
);
394 mavlink_msg_esc_info_get_error_count(msg
, esc_info
->error_count
);
395 esc_info
->counter
= mavlink_msg_esc_info_get_counter(msg
);
396 mavlink_msg_esc_info_get_failure_flags(msg
, esc_info
->failure_flags
);
397 esc_info
->index
= mavlink_msg_esc_info_get_index(msg
);
398 esc_info
->count
= mavlink_msg_esc_info_get_count(msg
);
399 esc_info
->connection_type
= mavlink_msg_esc_info_get_connection_type(msg
);
400 esc_info
->info
= mavlink_msg_esc_info_get_info(msg
);
401 mavlink_msg_esc_info_get_temperature(msg
, esc_info
->temperature
);
403 uint8_t len
= msg
->len
< MAVLINK_MSG_ID_ESC_INFO_LEN
? msg
->len
: MAVLINK_MSG_ID_ESC_INFO_LEN
;
404 memset(esc_info
, 0, MAVLINK_MSG_ID_ESC_INFO_LEN
);
405 memcpy(esc_info
, _MAV_PAYLOAD(msg
), len
);