You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

463 lines
17 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #pragma once
  2. // MESSAGE ASLCTRL_DEBUG PACKING
  3. #define MAVLINK_MSG_ID_ASLCTRL_DEBUG 204
  4. MAVPACKED(
  5. typedef struct __mavlink_aslctrl_debug_t {
  6. uint32_t i32_1; /*< Debug data*/
  7. float f_1; /*< Debug data */
  8. float f_2; /*< Debug data*/
  9. float f_3; /*< Debug data*/
  10. float f_4; /*< Debug data*/
  11. float f_5; /*< Debug data*/
  12. float f_6; /*< Debug data*/
  13. float f_7; /*< Debug data*/
  14. float f_8; /*< Debug data*/
  15. uint8_t i8_1; /*< Debug data*/
  16. uint8_t i8_2; /*< Debug data*/
  17. }) mavlink_aslctrl_debug_t;
  18. #define MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN 38
  19. #define MAVLINK_MSG_ID_ASLCTRL_DEBUG_MIN_LEN 38
  20. #define MAVLINK_MSG_ID_204_LEN 38
  21. #define MAVLINK_MSG_ID_204_MIN_LEN 38
  22. #define MAVLINK_MSG_ID_ASLCTRL_DEBUG_CRC 251
  23. #define MAVLINK_MSG_ID_204_CRC 251
  24. #if MAVLINK_COMMAND_24BIT
  25. #define MAVLINK_MESSAGE_INFO_ASLCTRL_DEBUG { \
  26. 204, \
  27. "ASLCTRL_DEBUG", \
  28. 11, \
  29. { { "i32_1", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_aslctrl_debug_t, i32_1) }, \
  30. { "i8_1", NULL, MAVLINK_TYPE_UINT8_T, 0, 36, offsetof(mavlink_aslctrl_debug_t, i8_1) }, \
  31. { "i8_2", NULL, MAVLINK_TYPE_UINT8_T, 0, 37, offsetof(mavlink_aslctrl_debug_t, i8_2) }, \
  32. { "f_1", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_aslctrl_debug_t, f_1) }, \
  33. { "f_2", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_aslctrl_debug_t, f_2) }, \
  34. { "f_3", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_aslctrl_debug_t, f_3) }, \
  35. { "f_4", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_aslctrl_debug_t, f_4) }, \
  36. { "f_5", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_aslctrl_debug_t, f_5) }, \
  37. { "f_6", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_aslctrl_debug_t, f_6) }, \
  38. { "f_7", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_aslctrl_debug_t, f_7) }, \
  39. { "f_8", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_aslctrl_debug_t, f_8) }, \
  40. } \
  41. }
  42. #else
  43. #define MAVLINK_MESSAGE_INFO_ASLCTRL_DEBUG { \
  44. "ASLCTRL_DEBUG", \
  45. 11, \
  46. { { "i32_1", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_aslctrl_debug_t, i32_1) }, \
  47. { "i8_1", NULL, MAVLINK_TYPE_UINT8_T, 0, 36, offsetof(mavlink_aslctrl_debug_t, i8_1) }, \
  48. { "i8_2", NULL, MAVLINK_TYPE_UINT8_T, 0, 37, offsetof(mavlink_aslctrl_debug_t, i8_2) }, \
  49. { "f_1", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_aslctrl_debug_t, f_1) }, \
  50. { "f_2", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_aslctrl_debug_t, f_2) }, \
  51. { "f_3", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_aslctrl_debug_t, f_3) }, \
  52. { "f_4", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_aslctrl_debug_t, f_4) }, \
  53. { "f_5", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_aslctrl_debug_t, f_5) }, \
  54. { "f_6", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_aslctrl_debug_t, f_6) }, \
  55. { "f_7", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_aslctrl_debug_t, f_7) }, \
  56. { "f_8", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_aslctrl_debug_t, f_8) }, \
  57. } \
  58. }
  59. #endif
  60. /**
  61. * @brief Pack a aslctrl_debug message
  62. * @param system_id ID of this system
  63. * @param component_id ID of this component (e.g. 200 for IMU)
  64. * @param msg The MAVLink message to compress the data into
  65. *
  66. * @param i32_1 Debug data
  67. * @param i8_1 Debug data
  68. * @param i8_2 Debug data
  69. * @param f_1 Debug data
  70. * @param f_2 Debug data
  71. * @param f_3 Debug data
  72. * @param f_4 Debug data
  73. * @param f_5 Debug data
  74. * @param f_6 Debug data
  75. * @param f_7 Debug data
  76. * @param f_8 Debug data
  77. * @return length of the message in bytes (excluding serial stream start sign)
  78. */
  79. static inline uint16_t mavlink_msg_aslctrl_debug_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
  80. uint32_t i32_1, uint8_t i8_1, uint8_t i8_2, float f_1, float f_2, float f_3, float f_4, float f_5, float f_6, float f_7, float f_8)
  81. {
  82. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  83. char buf[MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN];
  84. _mav_put_uint32_t(buf, 0, i32_1);
  85. _mav_put_float(buf, 4, f_1);
  86. _mav_put_float(buf, 8, f_2);
  87. _mav_put_float(buf, 12, f_3);
  88. _mav_put_float(buf, 16, f_4);
  89. _mav_put_float(buf, 20, f_5);
  90. _mav_put_float(buf, 24, f_6);
  91. _mav_put_float(buf, 28, f_7);
  92. _mav_put_float(buf, 32, f_8);
  93. _mav_put_uint8_t(buf, 36, i8_1);
  94. _mav_put_uint8_t(buf, 37, i8_2);
  95. memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN);
  96. #else
  97. mavlink_aslctrl_debug_t packet;
  98. packet.i32_1 = i32_1;
  99. packet.f_1 = f_1;
  100. packet.f_2 = f_2;
  101. packet.f_3 = f_3;
  102. packet.f_4 = f_4;
  103. packet.f_5 = f_5;
  104. packet.f_6 = f_6;
  105. packet.f_7 = f_7;
  106. packet.f_8 = f_8;
  107. packet.i8_1 = i8_1;
  108. packet.i8_2 = i8_2;
  109. memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN);
  110. #endif
  111. msg->msgid = MAVLINK_MSG_ID_ASLCTRL_DEBUG;
  112. return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_ASLCTRL_DEBUG_MIN_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_CRC);
  113. }
  114. /**
  115. * @brief Pack a aslctrl_debug 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 i32_1 Debug data
  121. * @param i8_1 Debug data
  122. * @param i8_2 Debug data
  123. * @param f_1 Debug data
  124. * @param f_2 Debug data
  125. * @param f_3 Debug data
  126. * @param f_4 Debug data
  127. * @param f_5 Debug data
  128. * @param f_6 Debug data
  129. * @param f_7 Debug data
  130. * @param f_8 Debug data
  131. * @return length of the message in bytes (excluding serial stream start sign)
  132. */
  133. static inline uint16_t mavlink_msg_aslctrl_debug_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
  134. mavlink_message_t* msg,
  135. uint32_t i32_1,uint8_t i8_1,uint8_t i8_2,float f_1,float f_2,float f_3,float f_4,float f_5,float f_6,float f_7,float f_8)
  136. {
  137. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  138. char buf[MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN];
  139. _mav_put_uint32_t(buf, 0, i32_1);
  140. _mav_put_float(buf, 4, f_1);
  141. _mav_put_float(buf, 8, f_2);
  142. _mav_put_float(buf, 12, f_3);
  143. _mav_put_float(buf, 16, f_4);
  144. _mav_put_float(buf, 20, f_5);
  145. _mav_put_float(buf, 24, f_6);
  146. _mav_put_float(buf, 28, f_7);
  147. _mav_put_float(buf, 32, f_8);
  148. _mav_put_uint8_t(buf, 36, i8_1);
  149. _mav_put_uint8_t(buf, 37, i8_2);
  150. memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN);
  151. #else
  152. mavlink_aslctrl_debug_t packet;
  153. packet.i32_1 = i32_1;
  154. packet.f_1 = f_1;
  155. packet.f_2 = f_2;
  156. packet.f_3 = f_3;
  157. packet.f_4 = f_4;
  158. packet.f_5 = f_5;
  159. packet.f_6 = f_6;
  160. packet.f_7 = f_7;
  161. packet.f_8 = f_8;
  162. packet.i8_1 = i8_1;
  163. packet.i8_2 = i8_2;
  164. memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN);
  165. #endif
  166. msg->msgid = MAVLINK_MSG_ID_ASLCTRL_DEBUG;
  167. return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_ASLCTRL_DEBUG_MIN_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_CRC);
  168. }
  169. /**
  170. * @brief Encode a aslctrl_debug struct
  171. *
  172. * @param system_id ID of this system
  173. * @param component_id ID of this component (e.g. 200 for IMU)
  174. * @param msg The MAVLink message to compress the data into
  175. * @param aslctrl_debug C-struct to read the message contents from
  176. */
  177. static inline uint16_t mavlink_msg_aslctrl_debug_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_aslctrl_debug_t* aslctrl_debug)
  178. {
  179. return mavlink_msg_aslctrl_debug_pack(system_id, component_id, msg, aslctrl_debug->i32_1, aslctrl_debug->i8_1, aslctrl_debug->i8_2, aslctrl_debug->f_1, aslctrl_debug->f_2, aslctrl_debug->f_3, aslctrl_debug->f_4, aslctrl_debug->f_5, aslctrl_debug->f_6, aslctrl_debug->f_7, aslctrl_debug->f_8);
  180. }
  181. /**
  182. * @brief Encode a aslctrl_debug struct on a channel
  183. *
  184. * @param system_id ID of this system
  185. * @param component_id ID of this component (e.g. 200 for IMU)
  186. * @param chan The MAVLink channel this message will be sent over
  187. * @param msg The MAVLink message to compress the data into
  188. * @param aslctrl_debug C-struct to read the message contents from
  189. */
  190. static inline uint16_t mavlink_msg_aslctrl_debug_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_aslctrl_debug_t* aslctrl_debug)
  191. {
  192. return mavlink_msg_aslctrl_debug_pack_chan(system_id, component_id, chan, msg, aslctrl_debug->i32_1, aslctrl_debug->i8_1, aslctrl_debug->i8_2, aslctrl_debug->f_1, aslctrl_debug->f_2, aslctrl_debug->f_3, aslctrl_debug->f_4, aslctrl_debug->f_5, aslctrl_debug->f_6, aslctrl_debug->f_7, aslctrl_debug->f_8);
  193. }
  194. /**
  195. * @brief Send a aslctrl_debug message
  196. * @param chan MAVLink channel to send the message
  197. *
  198. * @param i32_1 Debug data
  199. * @param i8_1 Debug data
  200. * @param i8_2 Debug data
  201. * @param f_1 Debug data
  202. * @param f_2 Debug data
  203. * @param f_3 Debug data
  204. * @param f_4 Debug data
  205. * @param f_5 Debug data
  206. * @param f_6 Debug data
  207. * @param f_7 Debug data
  208. * @param f_8 Debug data
  209. */
  210. #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
  211. static inline void mavlink_msg_aslctrl_debug_send(mavlink_channel_t chan, uint32_t i32_1, uint8_t i8_1, uint8_t i8_2, float f_1, float f_2, float f_3, float f_4, float f_5, float f_6, float f_7, float f_8)
  212. {
  213. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  214. char buf[MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN];
  215. _mav_put_uint32_t(buf, 0, i32_1);
  216. _mav_put_float(buf, 4, f_1);
  217. _mav_put_float(buf, 8, f_2);
  218. _mav_put_float(buf, 12, f_3);
  219. _mav_put_float(buf, 16, f_4);
  220. _mav_put_float(buf, 20, f_5);
  221. _mav_put_float(buf, 24, f_6);
  222. _mav_put_float(buf, 28, f_7);
  223. _mav_put_float(buf, 32, f_8);
  224. _mav_put_uint8_t(buf, 36, i8_1);
  225. _mav_put_uint8_t(buf, 37, i8_2);
  226. _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASLCTRL_DEBUG, buf, MAVLINK_MSG_ID_ASLCTRL_DEBUG_MIN_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_CRC);
  227. #else
  228. mavlink_aslctrl_debug_t packet;
  229. packet.i32_1 = i32_1;
  230. packet.f_1 = f_1;
  231. packet.f_2 = f_2;
  232. packet.f_3 = f_3;
  233. packet.f_4 = f_4;
  234. packet.f_5 = f_5;
  235. packet.f_6 = f_6;
  236. packet.f_7 = f_7;
  237. packet.f_8 = f_8;
  238. packet.i8_1 = i8_1;
  239. packet.i8_2 = i8_2;
  240. _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASLCTRL_DEBUG, (const char *)&packet, MAVLINK_MSG_ID_ASLCTRL_DEBUG_MIN_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_CRC);
  241. #endif
  242. }
  243. /**
  244. * @brief Send a aslctrl_debug message
  245. * @param chan MAVLink channel to send the message
  246. * @param struct The MAVLink struct to serialize
  247. */
  248. static inline void mavlink_msg_aslctrl_debug_send_struct(mavlink_channel_t chan, const mavlink_aslctrl_debug_t* aslctrl_debug)
  249. {
  250. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  251. mavlink_msg_aslctrl_debug_send(chan, aslctrl_debug->i32_1, aslctrl_debug->i8_1, aslctrl_debug->i8_2, aslctrl_debug->f_1, aslctrl_debug->f_2, aslctrl_debug->f_3, aslctrl_debug->f_4, aslctrl_debug->f_5, aslctrl_debug->f_6, aslctrl_debug->f_7, aslctrl_debug->f_8);
  252. #else
  253. _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASLCTRL_DEBUG, (const char *)aslctrl_debug, MAVLINK_MSG_ID_ASLCTRL_DEBUG_MIN_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_CRC);
  254. #endif
  255. }
  256. #if MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN <= MAVLINK_MAX_PAYLOAD_LEN
  257. /*
  258. This varient of _send() can be used to save stack space by re-using
  259. memory from the receive buffer. The caller provides a
  260. mavlink_message_t which is the size of a full mavlink message. This
  261. is usually the receive buffer for the channel, and allows a reply to an
  262. incoming message with minimum stack space usage.
  263. */
  264. static inline void mavlink_msg_aslctrl_debug_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t i32_1, uint8_t i8_1, uint8_t i8_2, float f_1, float f_2, float f_3, float f_4, float f_5, float f_6, float f_7, float f_8)
  265. {
  266. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  267. char *buf = (char *)msgbuf;
  268. _mav_put_uint32_t(buf, 0, i32_1);
  269. _mav_put_float(buf, 4, f_1);
  270. _mav_put_float(buf, 8, f_2);
  271. _mav_put_float(buf, 12, f_3);
  272. _mav_put_float(buf, 16, f_4);
  273. _mav_put_float(buf, 20, f_5);
  274. _mav_put_float(buf, 24, f_6);
  275. _mav_put_float(buf, 28, f_7);
  276. _mav_put_float(buf, 32, f_8);
  277. _mav_put_uint8_t(buf, 36, i8_1);
  278. _mav_put_uint8_t(buf, 37, i8_2);
  279. _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASLCTRL_DEBUG, buf, MAVLINK_MSG_ID_ASLCTRL_DEBUG_MIN_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_CRC);
  280. #else
  281. mavlink_aslctrl_debug_t *packet = (mavlink_aslctrl_debug_t *)msgbuf;
  282. packet->i32_1 = i32_1;
  283. packet->f_1 = f_1;
  284. packet->f_2 = f_2;
  285. packet->f_3 = f_3;
  286. packet->f_4 = f_4;
  287. packet->f_5 = f_5;
  288. packet->f_6 = f_6;
  289. packet->f_7 = f_7;
  290. packet->f_8 = f_8;
  291. packet->i8_1 = i8_1;
  292. packet->i8_2 = i8_2;
  293. _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ASLCTRL_DEBUG, (const char *)packet, MAVLINK_MSG_ID_ASLCTRL_DEBUG_MIN_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN, MAVLINK_MSG_ID_ASLCTRL_DEBUG_CRC);
  294. #endif
  295. }
  296. #endif
  297. #endif
  298. // MESSAGE ASLCTRL_DEBUG UNPACKING
  299. /**
  300. * @brief Get field i32_1 from aslctrl_debug message
  301. *
  302. * @return Debug data
  303. */
  304. static inline uint32_t mavlink_msg_aslctrl_debug_get_i32_1(const mavlink_message_t* msg)
  305. {
  306. return _MAV_RETURN_uint32_t(msg, 0);
  307. }
  308. /**
  309. * @brief Get field i8_1 from aslctrl_debug message
  310. *
  311. * @return Debug data
  312. */
  313. static inline uint8_t mavlink_msg_aslctrl_debug_get_i8_1(const mavlink_message_t* msg)
  314. {
  315. return _MAV_RETURN_uint8_t(msg, 36);
  316. }
  317. /**
  318. * @brief Get field i8_2 from aslctrl_debug message
  319. *
  320. * @return Debug data
  321. */
  322. static inline uint8_t mavlink_msg_aslctrl_debug_get_i8_2(const mavlink_message_t* msg)
  323. {
  324. return _MAV_RETURN_uint8_t(msg, 37);
  325. }
  326. /**
  327. * @brief Get field f_1 from aslctrl_debug message
  328. *
  329. * @return Debug data
  330. */
  331. static inline float mavlink_msg_aslctrl_debug_get_f_1(const mavlink_message_t* msg)
  332. {
  333. return _MAV_RETURN_float(msg, 4);
  334. }
  335. /**
  336. * @brief Get field f_2 from aslctrl_debug message
  337. *
  338. * @return Debug data
  339. */
  340. static inline float mavlink_msg_aslctrl_debug_get_f_2(const mavlink_message_t* msg)
  341. {
  342. return _MAV_RETURN_float(msg, 8);
  343. }
  344. /**
  345. * @brief Get field f_3 from aslctrl_debug message
  346. *
  347. * @return Debug data
  348. */
  349. static inline float mavlink_msg_aslctrl_debug_get_f_3(const mavlink_message_t* msg)
  350. {
  351. return _MAV_RETURN_float(msg, 12);
  352. }
  353. /**
  354. * @brief Get field f_4 from aslctrl_debug message
  355. *
  356. * @return Debug data
  357. */
  358. static inline float mavlink_msg_aslctrl_debug_get_f_4(const mavlink_message_t* msg)
  359. {
  360. return _MAV_RETURN_float(msg, 16);
  361. }
  362. /**
  363. * @brief Get field f_5 from aslctrl_debug message
  364. *
  365. * @return Debug data
  366. */
  367. static inline float mavlink_msg_aslctrl_debug_get_f_5(const mavlink_message_t* msg)
  368. {
  369. return _MAV_RETURN_float(msg, 20);
  370. }
  371. /**
  372. * @brief Get field f_6 from aslctrl_debug message
  373. *
  374. * @return Debug data
  375. */
  376. static inline float mavlink_msg_aslctrl_debug_get_f_6(const mavlink_message_t* msg)
  377. {
  378. return _MAV_RETURN_float(msg, 24);
  379. }
  380. /**
  381. * @brief Get field f_7 from aslctrl_debug message
  382. *
  383. * @return Debug data
  384. */
  385. static inline float mavlink_msg_aslctrl_debug_get_f_7(const mavlink_message_t* msg)
  386. {
  387. return _MAV_RETURN_float(msg, 28);
  388. }
  389. /**
  390. * @brief Get field f_8 from aslctrl_debug message
  391. *
  392. * @return Debug data
  393. */
  394. static inline float mavlink_msg_aslctrl_debug_get_f_8(const mavlink_message_t* msg)
  395. {
  396. return _MAV_RETURN_float(msg, 32);
  397. }
  398. /**
  399. * @brief Decode a aslctrl_debug message into a struct
  400. *
  401. * @param msg The message to decode
  402. * @param aslctrl_debug C-struct to decode the message contents into
  403. */
  404. static inline void mavlink_msg_aslctrl_debug_decode(const mavlink_message_t* msg, mavlink_aslctrl_debug_t* aslctrl_debug)
  405. {
  406. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  407. aslctrl_debug->i32_1 = mavlink_msg_aslctrl_debug_get_i32_1(msg);
  408. aslctrl_debug->f_1 = mavlink_msg_aslctrl_debug_get_f_1(msg);
  409. aslctrl_debug->f_2 = mavlink_msg_aslctrl_debug_get_f_2(msg);
  410. aslctrl_debug->f_3 = mavlink_msg_aslctrl_debug_get_f_3(msg);
  411. aslctrl_debug->f_4 = mavlink_msg_aslctrl_debug_get_f_4(msg);
  412. aslctrl_debug->f_5 = mavlink_msg_aslctrl_debug_get_f_5(msg);
  413. aslctrl_debug->f_6 = mavlink_msg_aslctrl_debug_get_f_6(msg);
  414. aslctrl_debug->f_7 = mavlink_msg_aslctrl_debug_get_f_7(msg);
  415. aslctrl_debug->f_8 = mavlink_msg_aslctrl_debug_get_f_8(msg);
  416. aslctrl_debug->i8_1 = mavlink_msg_aslctrl_debug_get_i8_1(msg);
  417. aslctrl_debug->i8_2 = mavlink_msg_aslctrl_debug_get_i8_2(msg);
  418. #else
  419. uint8_t len = msg->len < MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN? msg->len : MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN;
  420. memset(aslctrl_debug, 0, MAVLINK_MSG_ID_ASLCTRL_DEBUG_LEN);
  421. memcpy(aslctrl_debug, _MAV_PAYLOAD(msg), len);
  422. #endif
  423. }