3 #define MAVLINK_MSG_ID_MISSION_CURRENT 42
10 #define MAVLINK_MSG_ID_MISSION_CURRENT_LEN 2
11 #define MAVLINK_MSG_ID_42_LEN 2
13 #define MAVLINK_MSG_ID_MISSION_CURRENT_CRC 28
14 #define MAVLINK_MSG_ID_42_CRC 28
18 #define MAVLINK_MESSAGE_INFO_MISSION_CURRENT { \
21 { { "seq", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_mission_current_t, seq) }, \
35 static inline uint16_t mavlink_msg_mission_current_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
38 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
39 char buf[MAVLINK_MSG_ID_MISSION_CURRENT_LEN];
40 _mav_put_uint16_t(buf, 0, seq);
42 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MISSION_CURRENT_LEN);
47 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MISSION_CURRENT_LEN);
50 msg->msgid = MAVLINK_MSG_ID_MISSION_CURRENT;
52 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_MISSION_CURRENT_LEN, MAVLINK_MSG_ID_MISSION_CURRENT_CRC);
54 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_MISSION_CURRENT_LEN);
67 static inline uint16_t mavlink_msg_mission_current_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
68 mavlink_message_t* msg,
71 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
72 char buf[MAVLINK_MSG_ID_MISSION_CURRENT_LEN];
73 _mav_put_uint16_t(buf, 0, seq);
75 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MISSION_CURRENT_LEN);
80 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MISSION_CURRENT_LEN);
83 msg->msgid = MAVLINK_MSG_ID_MISSION_CURRENT;
85 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_MISSION_CURRENT_LEN, MAVLINK_MSG_ID_MISSION_CURRENT_CRC);
87 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_MISSION_CURRENT_LEN);
99 static inline uint16_t mavlink_msg_mission_current_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_mission_current_t* mission_current)
101 return mavlink_msg_mission_current_pack(system_id, component_id, msg, mission_current->
seq);
113 static inline uint16_t mavlink_msg_mission_current_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_mission_current_t* mission_current)
115 return mavlink_msg_mission_current_pack_chan(system_id, component_id, chan, msg, mission_current->
seq);
124 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
126 static inline void mavlink_msg_mission_current_send(mavlink_channel_t chan, uint16_t seq)
128 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
129 char buf[MAVLINK_MSG_ID_MISSION_CURRENT_LEN];
130 _mav_put_uint16_t(buf, 0, seq);
132 #if MAVLINK_CRC_EXTRA
133 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_CURRENT, buf, MAVLINK_MSG_ID_MISSION_CURRENT_LEN, MAVLINK_MSG_ID_MISSION_CURRENT_CRC);
135 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_CURRENT, buf, MAVLINK_MSG_ID_MISSION_CURRENT_LEN);
141 #if MAVLINK_CRC_EXTRA
142 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_CURRENT, (
const char *)&packet, MAVLINK_MSG_ID_MISSION_CURRENT_LEN, MAVLINK_MSG_ID_MISSION_CURRENT_CRC);
144 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_CURRENT, (
const char *)&packet, MAVLINK_MSG_ID_MISSION_CURRENT_LEN);
149 #if MAVLINK_MSG_ID_MISSION_CURRENT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
157 static inline void mavlink_msg_mission_current_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint16_t seq)
159 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
160 char *buf = (
char *)msgbuf;
161 _mav_put_uint16_t(buf, 0, seq);
163 #if MAVLINK_CRC_EXTRA
164 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_CURRENT, buf, MAVLINK_MSG_ID_MISSION_CURRENT_LEN, MAVLINK_MSG_ID_MISSION_CURRENT_CRC);
166 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_CURRENT, buf, MAVLINK_MSG_ID_MISSION_CURRENT_LEN);
172 #if MAVLINK_CRC_EXTRA
173 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_CURRENT, (
const char *)packet, MAVLINK_MSG_ID_MISSION_CURRENT_LEN, MAVLINK_MSG_ID_MISSION_CURRENT_CRC);
175 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_CURRENT, (
const char *)packet, MAVLINK_MSG_ID_MISSION_CURRENT_LEN);
191 static inline uint16_t mavlink_msg_mission_current_get_seq(
const mavlink_message_t* msg)
193 return _MAV_RETURN_uint16_t(msg, 0);
202 static inline void mavlink_msg_mission_current_decode(
const mavlink_message_t* msg,
mavlink_mission_current_t* mission_current)
204 #if MAVLINK_NEED_BYTE_SWAP
205 mission_current->
seq = mavlink_msg_mission_current_get_seq(msg);
207 memcpy(mission_current, _MAV_PAYLOAD(msg), MAVLINK_MSG_ID_MISSION_CURRENT_LEN);
uint16_t seq
Sequence.
Definition: mavlink_msg_mission_current.h:7
Definition: mavlink_msg_mission_current.h:5