4#define MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS 375
11} mavlink_actuator_output_status_t;
13#define MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN 140
14#define MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_MIN_LEN 140
15#define MAVLINK_MSG_ID_375_LEN 140
16#define MAVLINK_MSG_ID_375_MIN_LEN 140
18#define MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_CRC 251
19#define MAVLINK_MSG_ID_375_CRC 251
21#define MAVLINK_MSG_ACTUATOR_OUTPUT_STATUS_FIELD_ACTUATOR_LEN 32
23#if MAVLINK_COMMAND_24BIT
24#define MAVLINK_MESSAGE_INFO_ACTUATOR_OUTPUT_STATUS {
26 "ACTUATOR_OUTPUT_STATUS",
28 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_actuator_output_status_t, time_usec) },
29 { "active", NULL, MAVLINK_TYPE_UINT32_T, 0
, 8
, offsetof(mavlink_actuator_output_status_t, active) },
30 { "actuator", NULL, MAVLINK_TYPE_FLOAT, 32
, 12
, offsetof(mavlink_actuator_output_status_t, actuator) },
32}
34#define MAVLINK_MESSAGE_INFO_ACTUATOR_OUTPUT_STATUS {
35 "ACTUATOR_OUTPUT_STATUS",
37 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_actuator_output_status_t, time_usec) },
38 { "active", NULL, MAVLINK_TYPE_UINT32_T, 0
, 8
, offsetof(mavlink_actuator_output_status_t, active) },
39 { "actuator", NULL, MAVLINK_TYPE_FLOAT, 32
, 12
, offsetof(mavlink_actuator_output_status_t, actuator) },
41}
45
46
47
48
49
50
51
52
53
54
55static inline uint16_t mavlink_msg_actuator_output_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
56 uint64_t time_usec, uint32_t active,
const float *actuator)
58#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
60 _mav_put_uint64_t(buf, 0, time_usec);
61 _mav_put_uint32_t(buf, 8, active);
62 _mav_put_float_array(buf, 12, actuator, 32);
65 mavlink_actuator_output_status_t packet;
66 packet.time_usec = time_usec;
67 packet.active = active;
68 mav_array_memcpy(packet.actuator, actuator,
sizeof(
float)*32);
69 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN);
77
78
79
80
81
82
83
84
85
86
87
88static inline uint16_t mavlink_msg_actuator_output_status_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
89 uint64_t time_usec, uint32_t active,
const float *actuator)
91#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
93 _mav_put_uint64_t(buf, 0, time_usec);
94 _mav_put_uint32_t(buf, 8, active);
95 _mav_put_float_array(buf, 12, actuator, 32);
98 mavlink_actuator_output_status_t packet;
99 packet.time_usec = time_usec;
100 packet.active = active;
101 mav_array_memcpy(packet.actuator, actuator,
sizeof(
float)*32);
102 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN);
107 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_MIN_LEN, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_CRC);
114
115
116
117
118
119
120
121
122
123
124static inline uint16_t mavlink_msg_actuator_output_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
125 mavlink_message_t* msg,
126 uint64_t time_usec,uint32_t active,
const float *actuator)
128#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
130 _mav_put_uint64_t(buf, 0, time_usec);
131 _mav_put_uint32_t(buf, 8, active);
132 _mav_put_float_array(buf, 12, actuator, 32);
135 mavlink_actuator_output_status_t packet;
136 packet.time_usec = time_usec;
137 packet.active = active;
138 mav_array_memcpy(packet.actuator, actuator,
sizeof(
float)*32);
139 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN);
147
148
149
150
151
152
153
154static inline uint16_t mavlink_msg_actuator_output_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_actuator_output_status_t* actuator_output_status)
156 return mavlink_msg_actuator_output_status_pack(system_id, component_id, msg, actuator_output_status->time_usec, actuator_output_status->active, actuator_output_status->actuator);
160
161
162
163
164
165
166
167
168static inline uint16_t mavlink_msg_actuator_output_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_actuator_output_status_t* actuator_output_status)
170 return mavlink_msg_actuator_output_status_pack_chan(system_id, component_id, chan, msg, actuator_output_status->time_usec, actuator_output_status->active, actuator_output_status->actuator);
174
175
176
177
178
179
180
181
182static inline uint16_t mavlink_msg_actuator_output_status_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_actuator_output_status_t* actuator_output_status)
184 return mavlink_msg_actuator_output_status_pack_status(system_id, component_id, _status, msg, actuator_output_status->time_usec, actuator_output_status->active, actuator_output_status->actuator);
188
189
190
191
192
193
194
195#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
197static inline void mavlink_msg_actuator_output_status_send(mavlink_channel_t chan, uint64_t time_usec, uint32_t active,
const float *actuator)
199#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
200 char buf[MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN];
201 _mav_put_uint64_t(buf, 0, time_usec);
202 _mav_put_uint32_t(buf, 8, active);
203 _mav_put_float_array(buf, 12, actuator, 32);
204 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS, buf, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_MIN_LEN, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_CRC);
206 mavlink_actuator_output_status_t packet;
207 packet.time_usec = time_usec;
208 packet.active = active;
209 mav_array_memcpy(packet.actuator, actuator,
sizeof(
float)*32);
210 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS, (
const char *)&packet, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_MIN_LEN, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_CRC);
215
216
217
218
219static inline void mavlink_msg_actuator_output_status_send_struct(mavlink_channel_t chan,
const mavlink_actuator_output_status_t* actuator_output_status)
221#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
222 mavlink_msg_actuator_output_status_send(chan, actuator_output_status->time_usec, actuator_output_status->active, actuator_output_status->actuator);
224 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS, (
const char *)actuator_output_status, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_MIN_LEN, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_CRC);
228#if MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
230
231
232
233
234
235
236static inline void mavlink_msg_actuator_output_status_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t time_usec, uint32_t active,
const float *actuator)
238#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
239 char *buf = (
char *)msgbuf;
240 _mav_put_uint64_t(buf, 0, time_usec);
241 _mav_put_uint32_t(buf, 8, active);
242 _mav_put_float_array(buf, 12, actuator, 32);
243 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS, buf, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_MIN_LEN, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_CRC);
245 mavlink_actuator_output_status_t *packet = (mavlink_actuator_output_status_t *)msgbuf;
246 packet->time_usec = time_usec;
247 packet->active = active;
248 mav_array_memcpy(packet->actuator, actuator,
sizeof(
float)*32);
249 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS, (
const char *)packet, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_MIN_LEN, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_CRC);
260
261
262
263
264static inline uint64_t mavlink_msg_actuator_output_status_get_time_usec(
const mavlink_message_t* msg)
266 return _MAV_RETURN_uint64_t(msg, 0);
270
271
272
273
274static inline uint32_t mavlink_msg_actuator_output_status_get_active(
const mavlink_message_t* msg)
276 return _MAV_RETURN_uint32_t(msg, 8);
280
281
282
283
284static inline uint16_t mavlink_msg_actuator_output_status_get_actuator(
const mavlink_message_t* msg,
float *actuator)
286 return _MAV_RETURN_float_array(msg, actuator, 32, 12);
290
291
292
293
294
295static inline void mavlink_msg_actuator_output_status_decode(
const mavlink_message_t* msg, mavlink_actuator_output_status_t* actuator_output_status)
297#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
298 actuator_output_status->time_usec = mavlink_msg_actuator_output_status_get_time_usec(msg);
299 actuator_output_status->active = mavlink_msg_actuator_output_status_get_active(msg);
300 mavlink_msg_actuator_output_status_get_actuator(msg, actuator_output_status->actuator);
302 uint8_t len = msg->len < MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN? msg->len : MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN;
303 memset(actuator_output_status, 0, MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN);
304 memcpy(actuator_output_status, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS
Definition: mavlink_msg_actuator_output_status.h:4
#define MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_LEN
Definition: mavlink_msg_actuator_output_status.h:13
#define MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_MIN_LEN
Definition: mavlink_msg_actuator_output_status.h:14
#define MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS_CRC
Definition: mavlink_msg_actuator_output_status.h:18
Definition: mavlink_msg_actuator_output_status.h:7
uint64_t time_usec
Definition: mavlink_msg_actuator_output_status.h:8
float actuator[32]
Definition: mavlink_msg_actuator_output_status.h:10
uint32_t active
Definition: mavlink_msg_actuator_output_status.h:9