4#define MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET 380
13} mavlink_time_estimate_to_target_t;
15#define MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN 20
16#define MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_MIN_LEN 20
17#define MAVLINK_MSG_ID_380_LEN 20
18#define MAVLINK_MSG_ID_380_MIN_LEN 20
20#define MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_CRC 232
21#define MAVLINK_MSG_ID_380_CRC 232
25#if MAVLINK_COMMAND_24BIT
26#define MAVLINK_MESSAGE_INFO_TIME_ESTIMATE_TO_TARGET {
28 "TIME_ESTIMATE_TO_TARGET",
30 { { "safe_return", NULL, MAVLINK_TYPE_INT32_T, 0
, 0
, offsetof(mavlink_time_estimate_to_target_t, safe_return) },
31 { "land", NULL, MAVLINK_TYPE_INT32_T, 0
, 4
, offsetof(mavlink_time_estimate_to_target_t, land) },
32 { "mission_next_item", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_time_estimate_to_target_t, mission_next_item) },
33 { "mission_end", NULL, MAVLINK_TYPE_INT32_T, 0
, 12
, offsetof(mavlink_time_estimate_to_target_t, mission_end) },
34 { "commanded_action", NULL, MAVLINK_TYPE_INT32_T, 0
, 16
, offsetof(mavlink_time_estimate_to_target_t, commanded_action) },
36}
38#define MAVLINK_MESSAGE_INFO_TIME_ESTIMATE_TO_TARGET {
39 "TIME_ESTIMATE_TO_TARGET",
41 { { "safe_return", NULL, MAVLINK_TYPE_INT32_T, 0
, 0
, offsetof(mavlink_time_estimate_to_target_t, safe_return) },
42 { "land", NULL, MAVLINK_TYPE_INT32_T, 0
, 4
, offsetof(mavlink_time_estimate_to_target_t, land) },
43 { "mission_next_item", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_time_estimate_to_target_t, mission_next_item) },
44 { "mission_end", NULL, MAVLINK_TYPE_INT32_T, 0
, 12
, offsetof(mavlink_time_estimate_to_target_t, mission_end) },
45 { "commanded_action", NULL, MAVLINK_TYPE_INT32_T, 0
, 16
, offsetof(mavlink_time_estimate_to_target_t, commanded_action) },
47}
51
52
53
54
55
56
57
58
59
60
61
62
64static inline uint16_t mavlink_msg_time_estimate_to_target_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
65 int32_t safe_return, int32_t land, int32_t mission_next_item, int32_t mission_end, int32_t commanded_action)
67#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
69 _mav_put_int32_t(buf, 0, safe_return);
70 _mav_put_int32_t(buf, 4, land);
71 _mav_put_int32_t(buf, 8, mission_next_item);
72 _mav_put_int32_t(buf, 12, mission_end);
73 _mav_put_int32_t(buf, 16, commanded_action);
77 mavlink_time_estimate_to_target_t packet;
78 packet.safe_return = safe_return;
80 packet.mission_next_item = mission_next_item;
81 packet.mission_end = mission_end;
82 packet.commanded_action = commanded_action;
84 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN);
92
93
94
95
96
97
98
99
100
101
102
103
104
105static inline uint16_t mavlink_msg_time_estimate_to_target_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
106 int32_t safe_return, int32_t land, int32_t mission_next_item, int32_t mission_end, int32_t commanded_action)
108#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
110 _mav_put_int32_t(buf, 0, safe_return);
111 _mav_put_int32_t(buf, 4, land);
112 _mav_put_int32_t(buf, 8, mission_next_item);
113 _mav_put_int32_t(buf, 12, mission_end);
114 _mav_put_int32_t(buf, 16, commanded_action);
118 mavlink_time_estimate_to_target_t packet;
119 packet.safe_return = safe_return;
121 packet.mission_next_item = mission_next_item;
122 packet.mission_end = mission_end;
123 packet.commanded_action = commanded_action;
125 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN);
130 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_MIN_LEN, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_CRC);
137
138
139
140
141
142
143
144
145
146
147
148
150static inline uint16_t mavlink_msg_time_estimate_to_target_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
151 mavlink_message_t* msg,
152 int32_t safe_return,int32_t land,int32_t mission_next_item,int32_t mission_end,int32_t commanded_action)
154#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
156 _mav_put_int32_t(buf, 0, safe_return);
157 _mav_put_int32_t(buf, 4, land);
158 _mav_put_int32_t(buf, 8, mission_next_item);
159 _mav_put_int32_t(buf, 12, mission_end);
160 _mav_put_int32_t(buf, 16, commanded_action);
164 mavlink_time_estimate_to_target_t packet;
165 packet.safe_return = safe_return;
167 packet.mission_next_item = mission_next_item;
168 packet.mission_end = mission_end;
169 packet.commanded_action = commanded_action;
171 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN);
179
180
181
182
183
184
185
187static inline uint16_t mavlink_msg_time_estimate_to_target_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_time_estimate_to_target_t* time_estimate_to_target)
189 return mavlink_msg_time_estimate_to_target_pack(system_id, component_id, msg, time_estimate_to_target->safe_return, time_estimate_to_target->land, time_estimate_to_target->mission_next_item, time_estimate_to_target->mission_end, time_estimate_to_target->commanded_action);
193
194
195
196
197
198
199
200
202static inline uint16_t mavlink_msg_time_estimate_to_target_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_time_estimate_to_target_t* time_estimate_to_target)
204 return mavlink_msg_time_estimate_to_target_pack_chan(system_id, component_id, chan, msg, time_estimate_to_target->safe_return, time_estimate_to_target->land, time_estimate_to_target->mission_next_item, time_estimate_to_target->mission_end, time_estimate_to_target->commanded_action);
208
209
210
211
212
213
214
215
216static inline uint16_t mavlink_msg_time_estimate_to_target_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_time_estimate_to_target_t* time_estimate_to_target)
218 return mavlink_msg_time_estimate_to_target_pack_status(system_id, component_id, _status, msg, time_estimate_to_target->safe_return, time_estimate_to_target->land, time_estimate_to_target->mission_next_item, time_estimate_to_target->mission_end, time_estimate_to_target->commanded_action);
222
223
224
225
226
227
228
229
230
231#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
234static inline void mavlink_msg_time_estimate_to_target_send(mavlink_channel_t chan, int32_t safe_return, int32_t land, int32_t mission_next_item, int32_t mission_end, int32_t commanded_action)
236#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
237 char buf[MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN];
238 _mav_put_int32_t(buf, 0, safe_return);
239 _mav_put_int32_t(buf, 4, land);
240 _mav_put_int32_t(buf, 8, mission_next_item);
241 _mav_put_int32_t(buf, 12, mission_end);
242 _mav_put_int32_t(buf, 16, commanded_action);
244 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET, buf, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_MIN_LEN, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_CRC);
246 mavlink_time_estimate_to_target_t packet;
247 packet.safe_return = safe_return;
249 packet.mission_next_item = mission_next_item;
250 packet.mission_end = mission_end;
251 packet.commanded_action = commanded_action;
253 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET, (
const char *)&packet, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_MIN_LEN, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_CRC);
258
259
260
261
263static inline void mavlink_msg_time_estimate_to_target_send_struct(mavlink_channel_t chan,
const mavlink_time_estimate_to_target_t* time_estimate_to_target)
265#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
266 mavlink_msg_time_estimate_to_target_send(chan, time_estimate_to_target->safe_return, time_estimate_to_target->land, time_estimate_to_target->mission_next_item, time_estimate_to_target->mission_end, time_estimate_to_target->commanded_action);
268 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET, (
const char *)time_estimate_to_target, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_MIN_LEN, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_CRC);
272#if MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN <= MAVLINK_MAX_PAYLOAD_LEN
274
275
276
277
278
279
281static inline void mavlink_msg_time_estimate_to_target_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, int32_t safe_return, int32_t land, int32_t mission_next_item, int32_t mission_end, int32_t commanded_action)
283#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
284 char *buf = (
char *)msgbuf;
285 _mav_put_int32_t(buf, 0, safe_return);
286 _mav_put_int32_t(buf, 4, land);
287 _mav_put_int32_t(buf, 8, mission_next_item);
288 _mav_put_int32_t(buf, 12, mission_end);
289 _mav_put_int32_t(buf, 16, commanded_action);
291 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET, buf, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_MIN_LEN, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_CRC);
293 mavlink_time_estimate_to_target_t *packet = (mavlink_time_estimate_to_target_t *)msgbuf;
294 packet->safe_return = safe_return;
296 packet->mission_next_item = mission_next_item;
297 packet->mission_end = mission_end;
298 packet->commanded_action = commanded_action;
300 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET, (
const char *)packet, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_MIN_LEN, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_CRC);
311
312
313
314
316static inline int32_t mavlink_msg_time_estimate_to_target_get_safe_return(
const mavlink_message_t* msg)
318 return _MAV_RETURN_int32_t(msg, 0);
322
323
324
325
327static inline int32_t mavlink_msg_time_estimate_to_target_get_land(
const mavlink_message_t* msg)
329 return _MAV_RETURN_int32_t(msg, 4);
333
334
335
336
338static inline int32_t mavlink_msg_time_estimate_to_target_get_mission_next_item(
const mavlink_message_t* msg)
340 return _MAV_RETURN_int32_t(msg, 8);
344
345
346
347
349static inline int32_t mavlink_msg_time_estimate_to_target_get_mission_end(
const mavlink_message_t* msg)
351 return _MAV_RETURN_int32_t(msg, 12);
355
356
357
358
360static inline int32_t mavlink_msg_time_estimate_to_target_get_commanded_action(
const mavlink_message_t* msg)
362 return _MAV_RETURN_int32_t(msg, 16);
366
367
368
369
370
372static inline void mavlink_msg_time_estimate_to_target_decode(
const mavlink_message_t* msg, mavlink_time_estimate_to_target_t* time_estimate_to_target)
374#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
375 time_estimate_to_target->safe_return = mavlink_msg_time_estimate_to_target_get_safe_return(msg);
376 time_estimate_to_target->land = mavlink_msg_time_estimate_to_target_get_land(msg);
377 time_estimate_to_target->mission_next_item = mavlink_msg_time_estimate_to_target_get_mission_next_item(msg);
378 time_estimate_to_target->mission_end = mavlink_msg_time_estimate_to_target_get_mission_end(msg);
379 time_estimate_to_target->commanded_action = mavlink_msg_time_estimate_to_target_get_commanded_action(msg);
381 uint8_t len = msg->len < MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN? msg->len : MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN;
382 memset(time_estimate_to_target, 0, MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN);
383 memcpy(time_estimate_to_target, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_MIN_LEN
Definition: mavlink_msg_time_estimate_to_target.h:16
#define MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET
Definition: mavlink_msg_time_estimate_to_target.h:4
#define MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_CRC
Definition: mavlink_msg_time_estimate_to_target.h:20
#define MAVLINK_MSG_ID_TIME_ESTIMATE_TO_TARGET_LEN
Definition: mavlink_msg_time_estimate_to_target.h:15
Definition: mavlink_msg_time_estimate_to_target.h:7
int32_t commanded_action
Definition: mavlink_msg_time_estimate_to_target.h:12
int32_t safe_return
Definition: mavlink_msg_time_estimate_to_target.h:8
int32_t mission_end
Definition: mavlink_msg_time_estimate_to_target.h:11
int32_t mission_next_item
Definition: mavlink_msg_time_estimate_to_target.h:10
int32_t land
Definition: mavlink_msg_time_estimate_to_target.h:9