4#define MAVLINK_MSG_ID_CAMERA_TRIGGER 112
10} mavlink_camera_trigger_t;
12#define MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN 12
13#define MAVLINK_MSG_ID_CAMERA_TRIGGER_MIN_LEN 12
14#define MAVLINK_MSG_ID_112_LEN 12
15#define MAVLINK_MSG_ID_112_MIN_LEN 12
17#define MAVLINK_MSG_ID_CAMERA_TRIGGER_CRC 174
18#define MAVLINK_MSG_ID_112_CRC 174
22#if MAVLINK_COMMAND_24BIT
23#define MAVLINK_MESSAGE_INFO_CAMERA_TRIGGER {
27 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_camera_trigger_t, time_usec) },
28 { "seq", NULL, MAVLINK_TYPE_UINT32_T, 0
, 8
, offsetof(mavlink_camera_trigger_t, seq) },
30}
32#define MAVLINK_MESSAGE_INFO_CAMERA_TRIGGER {
35 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_camera_trigger_t, time_usec) },
36 { "seq", NULL, MAVLINK_TYPE_UINT32_T, 0
, 8
, offsetof(mavlink_camera_trigger_t, seq) },
38}
42
43
44
45
46
47
48
49
50
51static inline uint16_t mavlink_msg_camera_trigger_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
52 uint64_t time_usec, uint32_t seq)
54#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
56 _mav_put_uint64_t(buf, 0, time_usec);
57 _mav_put_uint32_t(buf, 8, seq);
61 mavlink_camera_trigger_t packet;
62 packet.time_usec = time_usec;
65 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN);
73
74
75
76
77
78
79
80
81
82
83static inline uint16_t mavlink_msg_camera_trigger_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
84 uint64_t time_usec, uint32_t seq)
86#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
88 _mav_put_uint64_t(buf, 0, time_usec);
89 _mav_put_uint32_t(buf, 8, seq);
93 mavlink_camera_trigger_t packet;
94 packet.time_usec = time_usec;
97 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN);
102 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_CAMERA_TRIGGER_MIN_LEN, MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN, MAVLINK_MSG_ID_CAMERA_TRIGGER_CRC);
109
110
111
112
113
114
115
116
117
118static inline uint16_t mavlink_msg_camera_trigger_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
119 mavlink_message_t* msg,
120 uint64_t time_usec,uint32_t seq)
122#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
124 _mav_put_uint64_t(buf, 0, time_usec);
125 _mav_put_uint32_t(buf, 8, seq);
129 mavlink_camera_trigger_t packet;
130 packet.time_usec = time_usec;
133 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN);
141
142
143
144
145
146
147
148static inline uint16_t mavlink_msg_camera_trigger_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_camera_trigger_t* camera_trigger)
150 return mavlink_msg_camera_trigger_pack(system_id, component_id, msg, camera_trigger->time_usec, camera_trigger->seq);
154
155
156
157
158
159
160
161
162static inline uint16_t mavlink_msg_camera_trigger_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_camera_trigger_t* camera_trigger)
164 return mavlink_msg_camera_trigger_pack_chan(system_id, component_id, chan, msg, camera_trigger->time_usec, camera_trigger->seq);
168
169
170
171
172
173
174
175
176static inline uint16_t mavlink_msg_camera_trigger_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_camera_trigger_t* camera_trigger)
178 return mavlink_msg_camera_trigger_pack_status(system_id, component_id, _status, msg, camera_trigger->time_usec, camera_trigger->seq);
182
183
184
185
186
187
188#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
190static inline void mavlink_msg_camera_trigger_send(mavlink_channel_t chan, uint64_t time_usec, uint32_t seq)
192#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
193 char buf[MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN];
194 _mav_put_uint64_t(buf, 0, time_usec);
195 _mav_put_uint32_t(buf, 8, seq);
197 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_TRIGGER, buf, MAVLINK_MSG_ID_CAMERA_TRIGGER_MIN_LEN, MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN, MAVLINK_MSG_ID_CAMERA_TRIGGER_CRC);
199 mavlink_camera_trigger_t packet;
200 packet.time_usec = time_usec;
203 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_TRIGGER, (
const char *)&packet, MAVLINK_MSG_ID_CAMERA_TRIGGER_MIN_LEN, MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN, MAVLINK_MSG_ID_CAMERA_TRIGGER_CRC);
208
209
210
211
212static inline void mavlink_msg_camera_trigger_send_struct(mavlink_channel_t chan,
const mavlink_camera_trigger_t* camera_trigger)
214#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
215 mavlink_msg_camera_trigger_send(chan, camera_trigger->time_usec, camera_trigger->seq);
217 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_TRIGGER, (
const char *)camera_trigger, MAVLINK_MSG_ID_CAMERA_TRIGGER_MIN_LEN, MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN, MAVLINK_MSG_ID_CAMERA_TRIGGER_CRC);
221#if MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN <= MAVLINK_MAX_PAYLOAD_LEN
223
224
225
226
227
228
229static inline void mavlink_msg_camera_trigger_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t time_usec, uint32_t seq)
231#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
232 char *buf = (
char *)msgbuf;
233 _mav_put_uint64_t(buf, 0, time_usec);
234 _mav_put_uint32_t(buf, 8, seq);
236 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_TRIGGER, buf, MAVLINK_MSG_ID_CAMERA_TRIGGER_MIN_LEN, MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN, MAVLINK_MSG_ID_CAMERA_TRIGGER_CRC);
238 mavlink_camera_trigger_t *packet = (mavlink_camera_trigger_t *)msgbuf;
239 packet->time_usec = time_usec;
242 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_TRIGGER, (
const char *)packet, MAVLINK_MSG_ID_CAMERA_TRIGGER_MIN_LEN, MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN, MAVLINK_MSG_ID_CAMERA_TRIGGER_CRC);
253
254
255
256
257static inline uint64_t mavlink_msg_camera_trigger_get_time_usec(
const mavlink_message_t* msg)
259 return _MAV_RETURN_uint64_t(msg, 0);
263
264
265
266
267static inline uint32_t mavlink_msg_camera_trigger_get_seq(
const mavlink_message_t* msg)
269 return _MAV_RETURN_uint32_t(msg, 8);
273
274
275
276
277
278static inline void mavlink_msg_camera_trigger_decode(
const mavlink_message_t* msg, mavlink_camera_trigger_t* camera_trigger)
280#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
281 camera_trigger->time_usec = mavlink_msg_camera_trigger_get_time_usec(msg);
282 camera_trigger->seq = mavlink_msg_camera_trigger_get_seq(msg);
284 uint8_t len = msg->len < MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN? msg->len : MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN;
285 memset(camera_trigger, 0, MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN);
286 memcpy(camera_trigger, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_CAMERA_TRIGGER
Definition: mavlink_msg_camera_trigger.h:4
#define MAVLINK_MSG_ID_CAMERA_TRIGGER_LEN
Definition: mavlink_msg_camera_trigger.h:12
#define MAVLINK_MSG_ID_CAMERA_TRIGGER_MIN_LEN
Definition: mavlink_msg_camera_trigger.h:13
#define MAVLINK_MSG_ID_CAMERA_TRIGGER_CRC
Definition: mavlink_msg_camera_trigger.h:17
Definition: mavlink_msg_camera_trigger.h:7
uint64_t time_usec
Definition: mavlink_msg_camera_trigger.h:8
uint32_t seq
Definition: mavlink_msg_camera_trigger.h:9