2
0

mavlink_msg_mission_ack.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. #pragma once
  2. // MESSAGE MISSION_ACK PACKING
  3. #define MAVLINK_MSG_ID_MISSION_ACK 47
  4. typedef struct __mavlink_mission_ack_t {
  5. uint8_t target_system; /*< System ID*/
  6. uint8_t target_component; /*< Component ID*/
  7. uint8_t type; /*< Mission result.*/
  8. uint8_t mission_type; /*< Mission type.*/
  9. uint32_t opaque_id; /*< Id of new on-vehicle mission, fence, or rally point plan (on upload to vehicle).
  10. The id is calculated and returned by a vehicle when a new plan is uploaded by a GCS.
  11. The only requirement on the id is that it must change when there is any change to the on-vehicle plan type (there is no requirement that the id be globally unique).
  12. 0 on download from the vehicle to the GCS (on download the ID is set in MISSION_COUNT).
  13. 0 if plan ids are not supported.
  14. The current on-vehicle plan ids are streamed in `MISSION_CURRENT`, allowing a GCS to determine if any part of the plan has changed and needs to be re-uploaded.
  15. */
  16. } mavlink_mission_ack_t;
  17. #define MAVLINK_MSG_ID_MISSION_ACK_LEN 8
  18. #define MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN 3
  19. #define MAVLINK_MSG_ID_47_LEN 8
  20. #define MAVLINK_MSG_ID_47_MIN_LEN 3
  21. #define MAVLINK_MSG_ID_MISSION_ACK_CRC 153
  22. #define MAVLINK_MSG_ID_47_CRC 153
  23. #if MAVLINK_COMMAND_24BIT
  24. #define MAVLINK_MESSAGE_INFO_MISSION_ACK { \
  25. 47, \
  26. "MISSION_ACK", \
  27. 5, \
  28. { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_mission_ack_t, target_system) }, \
  29. { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_mission_ack_t, target_component) }, \
  30. { "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_mission_ack_t, type) }, \
  31. { "mission_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_mission_ack_t, mission_type) }, \
  32. { "opaque_id", NULL, MAVLINK_TYPE_UINT32_T, 0, 4, offsetof(mavlink_mission_ack_t, opaque_id) }, \
  33. } \
  34. }
  35. #else
  36. #define MAVLINK_MESSAGE_INFO_MISSION_ACK { \
  37. "MISSION_ACK", \
  38. 5, \
  39. { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_mission_ack_t, target_system) }, \
  40. { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_mission_ack_t, target_component) }, \
  41. { "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_mission_ack_t, type) }, \
  42. { "mission_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_mission_ack_t, mission_type) }, \
  43. { "opaque_id", NULL, MAVLINK_TYPE_UINT32_T, 0, 4, offsetof(mavlink_mission_ack_t, opaque_id) }, \
  44. } \
  45. }
  46. #endif
  47. /**
  48. * @brief Pack a mission_ack message
  49. * @param system_id ID of this system
  50. * @param component_id ID of this component (e.g. 200 for IMU)
  51. * @param msg The MAVLink message to compress the data into
  52. *
  53. * @param target_system System ID
  54. * @param target_component Component ID
  55. * @param type Mission result.
  56. * @param mission_type Mission type.
  57. * @param opaque_id Id of new on-vehicle mission, fence, or rally point plan (on upload to vehicle).
  58. The id is calculated and returned by a vehicle when a new plan is uploaded by a GCS.
  59. The only requirement on the id is that it must change when there is any change to the on-vehicle plan type (there is no requirement that the id be globally unique).
  60. 0 on download from the vehicle to the GCS (on download the ID is set in MISSION_COUNT).
  61. 0 if plan ids are not supported.
  62. The current on-vehicle plan ids are streamed in `MISSION_CURRENT`, allowing a GCS to determine if any part of the plan has changed and needs to be re-uploaded.
  63. * @return length of the message in bytes (excluding serial stream start sign)
  64. */
  65. static inline uint16_t mavlink_msg_mission_ack_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
  66. uint8_t target_system, uint8_t target_component, uint8_t type, uint8_t mission_type, uint32_t opaque_id)
  67. {
  68. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  69. char buf[MAVLINK_MSG_ID_MISSION_ACK_LEN];
  70. _mav_put_uint8_t(buf, 0, target_system);
  71. _mav_put_uint8_t(buf, 1, target_component);
  72. _mav_put_uint8_t(buf, 2, type);
  73. _mav_put_uint8_t(buf, 3, mission_type);
  74. _mav_put_uint32_t(buf, 4, opaque_id);
  75. memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MISSION_ACK_LEN);
  76. #else
  77. mavlink_mission_ack_t packet;
  78. packet.target_system = target_system;
  79. packet.target_component = target_component;
  80. packet.type = type;
  81. packet.mission_type = mission_type;
  82. packet.opaque_id = opaque_id;
  83. memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MISSION_ACK_LEN);
  84. #endif
  85. msg->msgid = MAVLINK_MSG_ID_MISSION_ACK;
  86. return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN, MAVLINK_MSG_ID_MISSION_ACK_LEN, MAVLINK_MSG_ID_MISSION_ACK_CRC);
  87. }
  88. /**
  89. * @brief Pack a mission_ack message
  90. * @param system_id ID of this system
  91. * @param component_id ID of this component (e.g. 200 for IMU)
  92. * @param status MAVLink status structure
  93. * @param msg The MAVLink message to compress the data into
  94. *
  95. * @param target_system System ID
  96. * @param target_component Component ID
  97. * @param type Mission result.
  98. * @param mission_type Mission type.
  99. * @param opaque_id Id of new on-vehicle mission, fence, or rally point plan (on upload to vehicle).
  100. The id is calculated and returned by a vehicle when a new plan is uploaded by a GCS.
  101. The only requirement on the id is that it must change when there is any change to the on-vehicle plan type (there is no requirement that the id be globally unique).
  102. 0 on download from the vehicle to the GCS (on download the ID is set in MISSION_COUNT).
  103. 0 if plan ids are not supported.
  104. The current on-vehicle plan ids are streamed in `MISSION_CURRENT`, allowing a GCS to determine if any part of the plan has changed and needs to be re-uploaded.
  105. * @return length of the message in bytes (excluding serial stream start sign)
  106. */
  107. static inline uint16_t mavlink_msg_mission_ack_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
  108. uint8_t target_system, uint8_t target_component, uint8_t type, uint8_t mission_type, uint32_t opaque_id)
  109. {
  110. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  111. char buf[MAVLINK_MSG_ID_MISSION_ACK_LEN];
  112. _mav_put_uint8_t(buf, 0, target_system);
  113. _mav_put_uint8_t(buf, 1, target_component);
  114. _mav_put_uint8_t(buf, 2, type);
  115. _mav_put_uint8_t(buf, 3, mission_type);
  116. _mav_put_uint32_t(buf, 4, opaque_id);
  117. memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MISSION_ACK_LEN);
  118. #else
  119. mavlink_mission_ack_t packet;
  120. packet.target_system = target_system;
  121. packet.target_component = target_component;
  122. packet.type = type;
  123. packet.mission_type = mission_type;
  124. packet.opaque_id = opaque_id;
  125. memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MISSION_ACK_LEN);
  126. #endif
  127. msg->msgid = MAVLINK_MSG_ID_MISSION_ACK;
  128. #if MAVLINK_CRC_EXTRA
  129. return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN, MAVLINK_MSG_ID_MISSION_ACK_LEN, MAVLINK_MSG_ID_MISSION_ACK_CRC);
  130. #else
  131. return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN, MAVLINK_MSG_ID_MISSION_ACK_LEN);
  132. #endif
  133. }
  134. /**
  135. * @brief Pack a mission_ack message on a channel
  136. * @param system_id ID of this system
  137. * @param component_id ID of this component (e.g. 200 for IMU)
  138. * @param chan The MAVLink channel this message will be sent over
  139. * @param msg The MAVLink message to compress the data into
  140. * @param target_system System ID
  141. * @param target_component Component ID
  142. * @param type Mission result.
  143. * @param mission_type Mission type.
  144. * @param opaque_id Id of new on-vehicle mission, fence, or rally point plan (on upload to vehicle).
  145. The id is calculated and returned by a vehicle when a new plan is uploaded by a GCS.
  146. The only requirement on the id is that it must change when there is any change to the on-vehicle plan type (there is no requirement that the id be globally unique).
  147. 0 on download from the vehicle to the GCS (on download the ID is set in MISSION_COUNT).
  148. 0 if plan ids are not supported.
  149. The current on-vehicle plan ids are streamed in `MISSION_CURRENT`, allowing a GCS to determine if any part of the plan has changed and needs to be re-uploaded.
  150. * @return length of the message in bytes (excluding serial stream start sign)
  151. */
  152. static inline uint16_t mavlink_msg_mission_ack_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
  153. mavlink_message_t* msg,
  154. uint8_t target_system,uint8_t target_component,uint8_t type,uint8_t mission_type,uint32_t opaque_id)
  155. {
  156. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  157. char buf[MAVLINK_MSG_ID_MISSION_ACK_LEN];
  158. _mav_put_uint8_t(buf, 0, target_system);
  159. _mav_put_uint8_t(buf, 1, target_component);
  160. _mav_put_uint8_t(buf, 2, type);
  161. _mav_put_uint8_t(buf, 3, mission_type);
  162. _mav_put_uint32_t(buf, 4, opaque_id);
  163. memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MISSION_ACK_LEN);
  164. #else
  165. mavlink_mission_ack_t packet;
  166. packet.target_system = target_system;
  167. packet.target_component = target_component;
  168. packet.type = type;
  169. packet.mission_type = mission_type;
  170. packet.opaque_id = opaque_id;
  171. memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MISSION_ACK_LEN);
  172. #endif
  173. msg->msgid = MAVLINK_MSG_ID_MISSION_ACK;
  174. return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN, MAVLINK_MSG_ID_MISSION_ACK_LEN, MAVLINK_MSG_ID_MISSION_ACK_CRC);
  175. }
  176. /**
  177. * @brief Encode a mission_ack struct
  178. *
  179. * @param system_id ID of this system
  180. * @param component_id ID of this component (e.g. 200 for IMU)
  181. * @param msg The MAVLink message to compress the data into
  182. * @param mission_ack C-struct to read the message contents from
  183. */
  184. static inline uint16_t mavlink_msg_mission_ack_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_mission_ack_t* mission_ack)
  185. {
  186. return mavlink_msg_mission_ack_pack(system_id, component_id, msg, mission_ack->target_system, mission_ack->target_component, mission_ack->type, mission_ack->mission_type, mission_ack->opaque_id);
  187. }
  188. /**
  189. * @brief Encode a mission_ack struct on a channel
  190. *
  191. * @param system_id ID of this system
  192. * @param component_id ID of this component (e.g. 200 for IMU)
  193. * @param chan The MAVLink channel this message will be sent over
  194. * @param msg The MAVLink message to compress the data into
  195. * @param mission_ack C-struct to read the message contents from
  196. */
  197. static inline uint16_t mavlink_msg_mission_ack_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_mission_ack_t* mission_ack)
  198. {
  199. return mavlink_msg_mission_ack_pack_chan(system_id, component_id, chan, msg, mission_ack->target_system, mission_ack->target_component, mission_ack->type, mission_ack->mission_type, mission_ack->opaque_id);
  200. }
  201. /**
  202. * @brief Encode a mission_ack struct with provided status structure
  203. *
  204. * @param system_id ID of this system
  205. * @param component_id ID of this component (e.g. 200 for IMU)
  206. * @param status MAVLink status structure
  207. * @param msg The MAVLink message to compress the data into
  208. * @param mission_ack C-struct to read the message contents from
  209. */
  210. static inline uint16_t mavlink_msg_mission_ack_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg, const mavlink_mission_ack_t* mission_ack)
  211. {
  212. return mavlink_msg_mission_ack_pack_status(system_id, component_id, _status, msg, mission_ack->target_system, mission_ack->target_component, mission_ack->type, mission_ack->mission_type, mission_ack->opaque_id);
  213. }
  214. /**
  215. * @brief Send a mission_ack message
  216. * @param chan MAVLink channel to send the message
  217. *
  218. * @param target_system System ID
  219. * @param target_component Component ID
  220. * @param type Mission result.
  221. * @param mission_type Mission type.
  222. * @param opaque_id Id of new on-vehicle mission, fence, or rally point plan (on upload to vehicle).
  223. The id is calculated and returned by a vehicle when a new plan is uploaded by a GCS.
  224. The only requirement on the id is that it must change when there is any change to the on-vehicle plan type (there is no requirement that the id be globally unique).
  225. 0 on download from the vehicle to the GCS (on download the ID is set in MISSION_COUNT).
  226. 0 if plan ids are not supported.
  227. The current on-vehicle plan ids are streamed in `MISSION_CURRENT`, allowing a GCS to determine if any part of the plan has changed and needs to be re-uploaded.
  228. */
  229. #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
  230. static inline void mavlink_msg_mission_ack_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t type, uint8_t mission_type, uint32_t opaque_id)
  231. {
  232. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  233. char buf[MAVLINK_MSG_ID_MISSION_ACK_LEN];
  234. _mav_put_uint8_t(buf, 0, target_system);
  235. _mav_put_uint8_t(buf, 1, target_component);
  236. _mav_put_uint8_t(buf, 2, type);
  237. _mav_put_uint8_t(buf, 3, mission_type);
  238. _mav_put_uint32_t(buf, 4, opaque_id);
  239. _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ACK, buf, MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN, MAVLINK_MSG_ID_MISSION_ACK_LEN, MAVLINK_MSG_ID_MISSION_ACK_CRC);
  240. #else
  241. mavlink_mission_ack_t packet;
  242. packet.target_system = target_system;
  243. packet.target_component = target_component;
  244. packet.type = type;
  245. packet.mission_type = mission_type;
  246. packet.opaque_id = opaque_id;
  247. _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ACK, (const char *)&packet, MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN, MAVLINK_MSG_ID_MISSION_ACK_LEN, MAVLINK_MSG_ID_MISSION_ACK_CRC);
  248. #endif
  249. }
  250. /**
  251. * @brief Send a mission_ack message
  252. * @param chan MAVLink channel to send the message
  253. * @param struct The MAVLink struct to serialize
  254. */
  255. static inline void mavlink_msg_mission_ack_send_struct(mavlink_channel_t chan, const mavlink_mission_ack_t* mission_ack)
  256. {
  257. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  258. mavlink_msg_mission_ack_send(chan, mission_ack->target_system, mission_ack->target_component, mission_ack->type, mission_ack->mission_type, mission_ack->opaque_id);
  259. #else
  260. _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ACK, (const char *)mission_ack, MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN, MAVLINK_MSG_ID_MISSION_ACK_LEN, MAVLINK_MSG_ID_MISSION_ACK_CRC);
  261. #endif
  262. }
  263. #if MAVLINK_MSG_ID_MISSION_ACK_LEN <= MAVLINK_MAX_PAYLOAD_LEN
  264. /*
  265. This variant of _send() can be used to save stack space by re-using
  266. memory from the receive buffer. The caller provides a
  267. mavlink_message_t which is the size of a full mavlink message. This
  268. is usually the receive buffer for the channel, and allows a reply to an
  269. incoming message with minimum stack space usage.
  270. */
  271. static inline void mavlink_msg_mission_ack_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t type, uint8_t mission_type, uint32_t opaque_id)
  272. {
  273. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  274. char *buf = (char *)msgbuf;
  275. _mav_put_uint8_t(buf, 0, target_system);
  276. _mav_put_uint8_t(buf, 1, target_component);
  277. _mav_put_uint8_t(buf, 2, type);
  278. _mav_put_uint8_t(buf, 3, mission_type);
  279. _mav_put_uint32_t(buf, 4, opaque_id);
  280. _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ACK, buf, MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN, MAVLINK_MSG_ID_MISSION_ACK_LEN, MAVLINK_MSG_ID_MISSION_ACK_CRC);
  281. #else
  282. mavlink_mission_ack_t *packet = (mavlink_mission_ack_t *)msgbuf;
  283. packet->target_system = target_system;
  284. packet->target_component = target_component;
  285. packet->type = type;
  286. packet->mission_type = mission_type;
  287. packet->opaque_id = opaque_id;
  288. _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ACK, (const char *)packet, MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN, MAVLINK_MSG_ID_MISSION_ACK_LEN, MAVLINK_MSG_ID_MISSION_ACK_CRC);
  289. #endif
  290. }
  291. #endif
  292. #endif
  293. // MESSAGE MISSION_ACK UNPACKING
  294. /**
  295. * @brief Get field target_system from mission_ack message
  296. *
  297. * @return System ID
  298. */
  299. static inline uint8_t mavlink_msg_mission_ack_get_target_system(const mavlink_message_t* msg)
  300. {
  301. return _MAV_RETURN_uint8_t(msg, 0);
  302. }
  303. /**
  304. * @brief Get field target_component from mission_ack message
  305. *
  306. * @return Component ID
  307. */
  308. static inline uint8_t mavlink_msg_mission_ack_get_target_component(const mavlink_message_t* msg)
  309. {
  310. return _MAV_RETURN_uint8_t(msg, 1);
  311. }
  312. /**
  313. * @brief Get field type from mission_ack message
  314. *
  315. * @return Mission result.
  316. */
  317. static inline uint8_t mavlink_msg_mission_ack_get_type(const mavlink_message_t* msg)
  318. {
  319. return _MAV_RETURN_uint8_t(msg, 2);
  320. }
  321. /**
  322. * @brief Get field mission_type from mission_ack message
  323. *
  324. * @return Mission type.
  325. */
  326. static inline uint8_t mavlink_msg_mission_ack_get_mission_type(const mavlink_message_t* msg)
  327. {
  328. return _MAV_RETURN_uint8_t(msg, 3);
  329. }
  330. /**
  331. * @brief Get field opaque_id from mission_ack message
  332. *
  333. * @return Id of new on-vehicle mission, fence, or rally point plan (on upload to vehicle).
  334. The id is calculated and returned by a vehicle when a new plan is uploaded by a GCS.
  335. The only requirement on the id is that it must change when there is any change to the on-vehicle plan type (there is no requirement that the id be globally unique).
  336. 0 on download from the vehicle to the GCS (on download the ID is set in MISSION_COUNT).
  337. 0 if plan ids are not supported.
  338. The current on-vehicle plan ids are streamed in `MISSION_CURRENT`, allowing a GCS to determine if any part of the plan has changed and needs to be re-uploaded.
  339. */
  340. static inline uint32_t mavlink_msg_mission_ack_get_opaque_id(const mavlink_message_t* msg)
  341. {
  342. return _MAV_RETURN_uint32_t(msg, 4);
  343. }
  344. /**
  345. * @brief Decode a mission_ack message into a struct
  346. *
  347. * @param msg The message to decode
  348. * @param mission_ack C-struct to decode the message contents into
  349. */
  350. static inline void mavlink_msg_mission_ack_decode(const mavlink_message_t* msg, mavlink_mission_ack_t* mission_ack)
  351. {
  352. #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
  353. mission_ack->target_system = mavlink_msg_mission_ack_get_target_system(msg);
  354. mission_ack->target_component = mavlink_msg_mission_ack_get_target_component(msg);
  355. mission_ack->type = mavlink_msg_mission_ack_get_type(msg);
  356. mission_ack->mission_type = mavlink_msg_mission_ack_get_mission_type(msg);
  357. mission_ack->opaque_id = mavlink_msg_mission_ack_get_opaque_id(msg);
  358. #else
  359. uint8_t len = msg->len < MAVLINK_MSG_ID_MISSION_ACK_LEN? msg->len : MAVLINK_MSG_ID_MISSION_ACK_LEN;
  360. memset(mission_ack, 0, MAVLINK_MSG_ID_MISSION_ACK_LEN);
  361. memcpy(mission_ack, _MAV_PAYLOAD(msg), len);
  362. #endif
  363. }