4#define MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET 140
11} mavlink_actuator_control_target_t;
13#define MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN 41
14#define MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_MIN_LEN 41
15#define MAVLINK_MSG_ID_140_LEN 41
16#define MAVLINK_MSG_ID_140_MIN_LEN 41
18#define MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_CRC 181
19#define MAVLINK_MSG_ID_140_CRC 181
21#define MAVLINK_MSG_ACTUATOR_CONTROL_TARGET_FIELD_CONTROLS_LEN 8
23#if MAVLINK_COMMAND_24BIT
24#define MAVLINK_MESSAGE_INFO_ACTUATOR_CONTROL_TARGET {
26 "ACTUATOR_CONTROL_TARGET",
28 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_actuator_control_target_t, time_usec) },
29 { "group_mlx", NULL, MAVLINK_TYPE_UINT8_T, 0
, 40
, offsetof(mavlink_actuator_control_target_t, group_mlx) },
30 { "controls", NULL, MAVLINK_TYPE_FLOAT, 8
, 8
, offsetof(mavlink_actuator_control_target_t, controls) },
32}
34#define MAVLINK_MESSAGE_INFO_ACTUATOR_CONTROL_TARGET {
35 "ACTUATOR_CONTROL_TARGET",
37 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_actuator_control_target_t, time_usec) },
38 { "group_mlx", NULL, MAVLINK_TYPE_UINT8_T, 0
, 40
, offsetof(mavlink_actuator_control_target_t, group_mlx) },
39 { "controls", NULL, MAVLINK_TYPE_FLOAT, 8
, 8
, offsetof(mavlink_actuator_control_target_t, controls) },
41}
45
46
47
48
49
50
51
52
53
54
55static inline uint16_t mavlink_msg_actuator_control_target_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
56 uint64_t time_usec, uint8_t group_mlx,
const float *controls)
58#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
60 _mav_put_uint64_t(buf, 0, time_usec);
61 _mav_put_uint8_t(buf, 40, group_mlx);
62 _mav_put_float_array(buf, 8, controls, 8);
65 mavlink_actuator_control_target_t packet;
66 packet.time_usec = time_usec;
67 packet.group_mlx = group_mlx;
68 mav_array_memcpy(packet.controls, controls,
sizeof(
float)*8);
69 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN);
77
78
79
80
81
82
83
84
85
86
87
88static inline uint16_t mavlink_msg_actuator_control_target_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
89 uint64_t time_usec, uint8_t group_mlx,
const float *controls)
91#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
93 _mav_put_uint64_t(buf, 0, time_usec);
94 _mav_put_uint8_t(buf, 40, group_mlx);
95 _mav_put_float_array(buf, 8, controls, 8);
98 mavlink_actuator_control_target_t packet;
99 packet.time_usec = time_usec;
100 packet.group_mlx = group_mlx;
101 mav_array_memcpy(packet.controls, controls,
sizeof(
float)*8);
102 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN);
107 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_MIN_LEN, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_CRC);
114
115
116
117
118
119
120
121
122
123
124static inline uint16_t mavlink_msg_actuator_control_target_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
125 mavlink_message_t* msg,
126 uint64_t time_usec,uint8_t group_mlx,
const float *controls)
128#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
130 _mav_put_uint64_t(buf, 0, time_usec);
131 _mav_put_uint8_t(buf, 40, group_mlx);
132 _mav_put_float_array(buf, 8, controls, 8);
135 mavlink_actuator_control_target_t packet;
136 packet.time_usec = time_usec;
137 packet.group_mlx = group_mlx;
138 mav_array_memcpy(packet.controls, controls,
sizeof(
float)*8);
139 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN);
147
148
149
150
151
152
153
154static inline uint16_t mavlink_msg_actuator_control_target_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_actuator_control_target_t* actuator_control_target)
156 return mavlink_msg_actuator_control_target_pack(system_id, component_id, msg, actuator_control_target->time_usec, actuator_control_target->group_mlx, actuator_control_target->controls);
160
161
162
163
164
165
166
167
168static inline uint16_t mavlink_msg_actuator_control_target_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_actuator_control_target_t* actuator_control_target)
170 return mavlink_msg_actuator_control_target_pack_chan(system_id, component_id, chan, msg, actuator_control_target->time_usec, actuator_control_target->group_mlx, actuator_control_target->controls);
174
175
176
177
178
179
180
181
182static inline uint16_t mavlink_msg_actuator_control_target_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_actuator_control_target_t* actuator_control_target)
184 return mavlink_msg_actuator_control_target_pack_status(system_id, component_id, _status, msg, actuator_control_target->time_usec, actuator_control_target->group_mlx, actuator_control_target->controls);
188
189
190
191
192
193
194
195#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
197static inline void mavlink_msg_actuator_control_target_send(mavlink_channel_t chan, uint64_t time_usec, uint8_t group_mlx,
const float *controls)
199#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
200 char buf[MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN];
201 _mav_put_uint64_t(buf, 0, time_usec);
202 _mav_put_uint8_t(buf, 40, group_mlx);
203 _mav_put_float_array(buf, 8, controls, 8);
204 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET, buf, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_MIN_LEN, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_CRC);
206 mavlink_actuator_control_target_t packet;
207 packet.time_usec = time_usec;
208 packet.group_mlx = group_mlx;
209 mav_array_memcpy(packet.controls, controls,
sizeof(
float)*8);
210 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET, (
const char *)&packet, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_MIN_LEN, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_CRC);
215
216
217
218
219static inline void mavlink_msg_actuator_control_target_send_struct(mavlink_channel_t chan,
const mavlink_actuator_control_target_t* actuator_control_target)
221#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
222 mavlink_msg_actuator_control_target_send(chan, actuator_control_target->time_usec, actuator_control_target->group_mlx, actuator_control_target->controls);
224 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET, (
const char *)actuator_control_target, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_MIN_LEN, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_CRC);
228#if MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN <= MAVLINK_MAX_PAYLOAD_LEN
230
231
232
233
234
235
236static inline void mavlink_msg_actuator_control_target_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t time_usec, uint8_t group_mlx,
const float *controls)
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_uint8_t(buf, 40, group_mlx);
242 _mav_put_float_array(buf, 8, controls, 8);
243 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET, buf, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_MIN_LEN, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_CRC);
245 mavlink_actuator_control_target_t *packet = (mavlink_actuator_control_target_t *)msgbuf;
246 packet->time_usec = time_usec;
247 packet->group_mlx = group_mlx;
248 mav_array_memcpy(packet->controls, controls,
sizeof(
float)*8);
249 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET, (
const char *)packet, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_MIN_LEN, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_CRC);
260
261
262
263
264static inline uint64_t mavlink_msg_actuator_control_target_get_time_usec(
const mavlink_message_t* msg)
266 return _MAV_RETURN_uint64_t(msg, 0);
270
271
272
273
274static inline uint8_t mavlink_msg_actuator_control_target_get_group_mlx(
const mavlink_message_t* msg)
276 return _MAV_RETURN_uint8_t(msg, 40);
280
281
282
283
284static inline uint16_t mavlink_msg_actuator_control_target_get_controls(
const mavlink_message_t* msg,
float *controls)
286 return _MAV_RETURN_float_array(msg, controls, 8, 8);
290
291
292
293
294
295static inline void mavlink_msg_actuator_control_target_decode(
const mavlink_message_t* msg, mavlink_actuator_control_target_t* actuator_control_target)
297#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
298 actuator_control_target->time_usec = mavlink_msg_actuator_control_target_get_time_usec(msg);
299 mavlink_msg_actuator_control_target_get_controls(msg, actuator_control_target->controls);
300 actuator_control_target->group_mlx = mavlink_msg_actuator_control_target_get_group_mlx(msg);
302 uint8_t len = msg->len < MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN? msg->len : MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN;
303 memset(actuator_control_target, 0, MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN);
304 memcpy(actuator_control_target, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET
Definition: mavlink_msg_actuator_control_target.h:4
#define MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_CRC
Definition: mavlink_msg_actuator_control_target.h:18
#define MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_MIN_LEN
Definition: mavlink_msg_actuator_control_target.h:14
#define MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN
Definition: mavlink_msg_actuator_control_target.h:13
Definition: mavlink_msg_actuator_control_target.h:7
uint64_t time_usec
Definition: mavlink_msg_actuator_control_target.h:8
float controls[8]
Definition: mavlink_msg_actuator_control_target.h:9
uint8_t group_mlx
Definition: mavlink_msg_actuator_control_target.h:10