4#define MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY 350
12} mavlink_debug_float_array_t;
14#define MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN 252
15#define MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_MIN_LEN 20
16#define MAVLINK_MSG_ID_350_LEN 252
17#define MAVLINK_MSG_ID_350_MIN_LEN 20
19#define MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_CRC 232
20#define MAVLINK_MSG_ID_350_CRC 232
22#define MAVLINK_MSG_DEBUG_FLOAT_ARRAY_FIELD_NAME_LEN 10
23#define MAVLINK_MSG_DEBUG_FLOAT_ARRAY_FIELD_DATA_LEN 58
25#if MAVLINK_COMMAND_24BIT
26#define MAVLINK_MESSAGE_INFO_DEBUG_FLOAT_ARRAY {
30 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_debug_float_array_t, time_usec) },
31 { "name", NULL, MAVLINK_TYPE_CHAR, 10
, 10
, offsetof(mavlink_debug_float_array_t, name) },
32 { "array_id", NULL, MAVLINK_TYPE_UINT16_T, 0
, 8
, offsetof(mavlink_debug_float_array_t, array_id) },
33 { "data", NULL, MAVLINK_TYPE_FLOAT, 58
, 20
, offsetof(mavlink_debug_float_array_t, data) },
35}
37#define MAVLINK_MESSAGE_INFO_DEBUG_FLOAT_ARRAY {
40 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_debug_float_array_t, time_usec) },
41 { "name", NULL, MAVLINK_TYPE_CHAR, 10
, 10
, offsetof(mavlink_debug_float_array_t, name) },
42 { "array_id", NULL, MAVLINK_TYPE_UINT16_T, 0
, 8
, offsetof(mavlink_debug_float_array_t, array_id) },
43 { "data", NULL, MAVLINK_TYPE_FLOAT, 58
, 20
, offsetof(mavlink_debug_float_array_t, data) },
45}
49
50
51
52
53
54
55
56
57
58
59
60static inline uint16_t mavlink_msg_debug_float_array_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
61 uint64_t time_usec,
const char *name, uint16_t array_id,
const float *data)
63#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
65 _mav_put_uint64_t(buf, 0, time_usec);
66 _mav_put_uint16_t(buf, 8, array_id);
67 _mav_put_char_array(buf, 10, name, 10);
68 _mav_put_float_array(buf, 20, data, 58);
71 mavlink_debug_float_array_t packet;
72 packet.time_usec = time_usec;
73 packet.array_id = array_id;
74 mav_array_memcpy(packet.name, name,
sizeof(
char)*10);
75 mav_array_memcpy(packet.data, data,
sizeof(
float)*58);
76 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN);
84
85
86
87
88
89
90
91
92
93
94
95
96static inline uint16_t mavlink_msg_debug_float_array_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
97 uint64_t time_usec,
const char *name, uint16_t array_id,
const float *data)
99#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
101 _mav_put_uint64_t(buf, 0, time_usec);
102 _mav_put_uint16_t(buf, 8, array_id);
103 _mav_put_char_array(buf, 10, name, 10);
104 _mav_put_float_array(buf, 20, data, 58);
107 mavlink_debug_float_array_t packet;
108 packet.time_usec = time_usec;
109 packet.array_id = array_id;
110 mav_array_memcpy(packet.name, name,
sizeof(
char)*10);
111 mav_array_memcpy(packet.data, data,
sizeof(
float)*58);
112 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN);
117 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_MIN_LEN, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_CRC);
124
125
126
127
128
129
130
131
132
133
134
135static inline uint16_t mavlink_msg_debug_float_array_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
136 mavlink_message_t* msg,
137 uint64_t time_usec,
const char *name,uint16_t array_id,
const float *data)
139#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
141 _mav_put_uint64_t(buf, 0, time_usec);
142 _mav_put_uint16_t(buf, 8, array_id);
143 _mav_put_char_array(buf, 10, name, 10);
144 _mav_put_float_array(buf, 20, data, 58);
147 mavlink_debug_float_array_t packet;
148 packet.time_usec = time_usec;
149 packet.array_id = array_id;
150 mav_array_memcpy(packet.name, name,
sizeof(
char)*10);
151 mav_array_memcpy(packet.data, data,
sizeof(
float)*58);
152 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN);
160
161
162
163
164
165
166
167static inline uint16_t mavlink_msg_debug_float_array_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_debug_float_array_t* debug_float_array)
169 return mavlink_msg_debug_float_array_pack(system_id, component_id, msg, debug_float_array->time_usec, debug_float_array->name, debug_float_array->array_id, debug_float_array->data);
173
174
175
176
177
178
179
180
181static inline uint16_t mavlink_msg_debug_float_array_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_debug_float_array_t* debug_float_array)
183 return mavlink_msg_debug_float_array_pack_chan(system_id, component_id, chan, msg, debug_float_array->time_usec, debug_float_array->name, debug_float_array->array_id, debug_float_array->data);
187
188
189
190
191
192
193
194
195static inline uint16_t mavlink_msg_debug_float_array_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_debug_float_array_t* debug_float_array)
197 return mavlink_msg_debug_float_array_pack_status(system_id, component_id, _status, msg, debug_float_array->time_usec, debug_float_array->name, debug_float_array->array_id, debug_float_array->data);
201
202
203
204
205
206
207
208
209#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
211static inline void mavlink_msg_debug_float_array_send(mavlink_channel_t chan, uint64_t time_usec,
const char *name, uint16_t array_id,
const float *data)
213#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
214 char buf[MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN];
215 _mav_put_uint64_t(buf, 0, time_usec);
216 _mav_put_uint16_t(buf, 8, array_id);
217 _mav_put_char_array(buf, 10, name, 10);
218 _mav_put_float_array(buf, 20, data, 58);
219 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY, buf, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_MIN_LEN, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_CRC);
221 mavlink_debug_float_array_t packet;
222 packet.time_usec = time_usec;
223 packet.array_id = array_id;
224 mav_array_memcpy(packet.name, name,
sizeof(
char)*10);
225 mav_array_memcpy(packet.data, data,
sizeof(
float)*58);
226 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY, (
const char *)&packet, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_MIN_LEN, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_CRC);
231
232
233
234
235static inline void mavlink_msg_debug_float_array_send_struct(mavlink_channel_t chan,
const mavlink_debug_float_array_t* debug_float_array)
237#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
238 mavlink_msg_debug_float_array_send(chan, debug_float_array->time_usec, debug_float_array->name, debug_float_array->array_id, debug_float_array->data);
240 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY, (
const char *)debug_float_array, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_MIN_LEN, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_CRC);
244#if MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN <= MAVLINK_MAX_PAYLOAD_LEN
246
247
248
249
250
251
252static inline void mavlink_msg_debug_float_array_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t time_usec,
const char *name, uint16_t array_id,
const float *data)
254#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
255 char *buf = (
char *)msgbuf;
256 _mav_put_uint64_t(buf, 0, time_usec);
257 _mav_put_uint16_t(buf, 8, array_id);
258 _mav_put_char_array(buf, 10, name, 10);
259 _mav_put_float_array(buf, 20, data, 58);
260 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY, buf, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_MIN_LEN, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_CRC);
262 mavlink_debug_float_array_t *packet = (mavlink_debug_float_array_t *)msgbuf;
263 packet->time_usec = time_usec;
264 packet->array_id = array_id;
265 mav_array_memcpy(packet->name, name,
sizeof(
char)*10);
266 mav_array_memcpy(packet->data, data,
sizeof(
float)*58);
267 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY, (
const char *)packet, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_MIN_LEN, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_CRC);
278
279
280
281
282static inline uint64_t mavlink_msg_debug_float_array_get_time_usec(
const mavlink_message_t* msg)
284 return _MAV_RETURN_uint64_t(msg, 0);
288
289
290
291
292static inline uint16_t mavlink_msg_debug_float_array_get_name(
const mavlink_message_t* msg,
char *name)
294 return _MAV_RETURN_char_array(msg, name, 10, 10);
298
299
300
301
302static inline uint16_t mavlink_msg_debug_float_array_get_array_id(
const mavlink_message_t* msg)
304 return _MAV_RETURN_uint16_t(msg, 8);
308
309
310
311
312static inline uint16_t mavlink_msg_debug_float_array_get_data(
const mavlink_message_t* msg,
float *data)
314 return _MAV_RETURN_float_array(msg, data, 58, 20);
318
319
320
321
322
323static inline void mavlink_msg_debug_float_array_decode(
const mavlink_message_t* msg, mavlink_debug_float_array_t* debug_float_array)
325#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
326 debug_float_array->time_usec = mavlink_msg_debug_float_array_get_time_usec(msg);
327 debug_float_array->array_id = mavlink_msg_debug_float_array_get_array_id(msg);
328 mavlink_msg_debug_float_array_get_name(msg, debug_float_array->name);
329 mavlink_msg_debug_float_array_get_data(msg, debug_float_array->data);
331 uint8_t len = msg->len < MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN? msg->len : MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN;
332 memset(debug_float_array, 0, MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN);
333 memcpy(debug_float_array, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_CRC
Definition: mavlink_msg_debug_float_array.h:19
#define MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_LEN
Definition: mavlink_msg_debug_float_array.h:14
#define MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY
Definition: mavlink_msg_debug_float_array.h:4
#define MAVLINK_MSG_ID_DEBUG_FLOAT_ARRAY_MIN_LEN
Definition: mavlink_msg_debug_float_array.h:15
Definition: mavlink_msg_debug_float_array.h:7
uint64_t time_usec
Definition: mavlink_msg_debug_float_array.h:8
char name[10]
Definition: mavlink_msg_debug_float_array.h:10
uint16_t array_id
Definition: mavlink_msg_debug_float_array.h:9
float data[58]
Definition: mavlink_msg_debug_float_array.h:11