4#define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV 64
20} mavlink_local_position_ned_cov_t;
22#define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN 225
23#define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_MIN_LEN 225
24#define MAVLINK_MSG_ID_64_LEN 225
25#define MAVLINK_MSG_ID_64_MIN_LEN 225
27#define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_CRC 191
28#define MAVLINK_MSG_ID_64_CRC 191
30#define MAVLINK_MSG_LOCAL_POSITION_NED_COV_FIELD_COVARIANCE_LEN 45
32#if MAVLINK_COMMAND_24BIT
33#define MAVLINK_MESSAGE_INFO_LOCAL_POSITION_NED_COV {
35 "LOCAL_POSITION_NED_COV",
37 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_local_position_ned_cov_t, time_usec) },
38 { "estimator_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 224
, offsetof(mavlink_local_position_ned_cov_t, estimator_type) },
39 { "x", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_local_position_ned_cov_t, x) },
40 { "y", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_local_position_ned_cov_t, y) },
41 { "z", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_local_position_ned_cov_t, z) },
42 { "vx", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_local_position_ned_cov_t, vx) },
43 { "vy", NULL, MAVLINK_TYPE_FLOAT, 0
, 24
, offsetof(mavlink_local_position_ned_cov_t, vy) },
44 { "vz", NULL, MAVLINK_TYPE_FLOAT, 0
, 28
, offsetof(mavlink_local_position_ned_cov_t, vz) },
45 { "ax", NULL, MAVLINK_TYPE_FLOAT, 0
, 32
, offsetof(mavlink_local_position_ned_cov_t, ax) },
46 { "ay", NULL, MAVLINK_TYPE_FLOAT, 0
, 36
, offsetof(mavlink_local_position_ned_cov_t, ay) },
47 { "az", NULL, MAVLINK_TYPE_FLOAT, 0
, 40
, offsetof(mavlink_local_position_ned_cov_t, az) },
48 { "covariance", NULL, MAVLINK_TYPE_FLOAT, 45
, 44
, offsetof(mavlink_local_position_ned_cov_t, covariance) },
50}
52#define MAVLINK_MESSAGE_INFO_LOCAL_POSITION_NED_COV {
53 "LOCAL_POSITION_NED_COV",
55 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_local_position_ned_cov_t, time_usec) },
56 { "estimator_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 224
, offsetof(mavlink_local_position_ned_cov_t, estimator_type) },
57 { "x", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_local_position_ned_cov_t, x) },
58 { "y", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_local_position_ned_cov_t, y) },
59 { "z", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_local_position_ned_cov_t, z) },
60 { "vx", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_local_position_ned_cov_t, vx) },
61 { "vy", NULL, MAVLINK_TYPE_FLOAT, 0
, 24
, offsetof(mavlink_local_position_ned_cov_t, vy) },
62 { "vz", NULL, MAVLINK_TYPE_FLOAT, 0
, 28
, offsetof(mavlink_local_position_ned_cov_t, vz) },
63 { "ax", NULL, MAVLINK_TYPE_FLOAT, 0
, 32
, offsetof(mavlink_local_position_ned_cov_t, ax) },
64 { "ay", NULL, MAVLINK_TYPE_FLOAT, 0
, 36
, offsetof(mavlink_local_position_ned_cov_t, ay) },
65 { "az", NULL, MAVLINK_TYPE_FLOAT, 0
, 40
, offsetof(mavlink_local_position_ned_cov_t, az) },
66 { "covariance", NULL, MAVLINK_TYPE_FLOAT, 45
, 44
, offsetof(mavlink_local_position_ned_cov_t, covariance) },
68}
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91static inline uint16_t mavlink_msg_local_position_ned_cov_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
92 uint64_t time_usec, uint8_t estimator_type,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float ax,
float ay,
float az,
const float *covariance)
94#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
96 _mav_put_uint64_t(buf, 0, time_usec);
97 _mav_put_float(buf, 8, x);
98 _mav_put_float(buf, 12, y);
99 _mav_put_float(buf, 16, z);
100 _mav_put_float(buf, 20, vx);
101 _mav_put_float(buf, 24, vy);
102 _mav_put_float(buf, 28, vz);
103 _mav_put_float(buf, 32, ax);
104 _mav_put_float(buf, 36, ay);
105 _mav_put_float(buf, 40, az);
106 _mav_put_uint8_t(buf, 224, estimator_type);
107 _mav_put_float_array(buf, 44, covariance, 45);
110 mavlink_local_position_ned_cov_t packet;
111 packet.time_usec = time_usec;
121 packet.estimator_type = estimator_type;
122 mav_array_memcpy(packet.covariance, covariance,
sizeof(
float)*45);
123 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN);
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151static inline uint16_t mavlink_msg_local_position_ned_cov_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
152 uint64_t time_usec, uint8_t estimator_type,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float ax,
float ay,
float az,
const float *covariance)
154#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
156 _mav_put_uint64_t(buf, 0, time_usec);
157 _mav_put_float(buf, 8, x);
158 _mav_put_float(buf, 12, y);
159 _mav_put_float(buf, 16, z);
160 _mav_put_float(buf, 20, vx);
161 _mav_put_float(buf, 24, vy);
162 _mav_put_float(buf, 28, vz);
163 _mav_put_float(buf, 32, ax);
164 _mav_put_float(buf, 36, ay);
165 _mav_put_float(buf, 40, az);
166 _mav_put_uint8_t(buf, 224, estimator_type);
167 _mav_put_float_array(buf, 44, covariance, 45);
170 mavlink_local_position_ned_cov_t packet;
171 packet.time_usec = time_usec;
181 packet.estimator_type = estimator_type;
182 mav_array_memcpy(packet.covariance, covariance,
sizeof(
float)*45);
183 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN);
188 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_MIN_LEN, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_CRC);
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214static inline uint16_t mavlink_msg_local_position_ned_cov_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
215 mavlink_message_t* msg,
216 uint64_t time_usec,uint8_t estimator_type,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float ax,
float ay,
float az,
const float *covariance)
218#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
220 _mav_put_uint64_t(buf, 0, time_usec);
221 _mav_put_float(buf, 8, x);
222 _mav_put_float(buf, 12, y);
223 _mav_put_float(buf, 16, z);
224 _mav_put_float(buf, 20, vx);
225 _mav_put_float(buf, 24, vy);
226 _mav_put_float(buf, 28, vz);
227 _mav_put_float(buf, 32, ax);
228 _mav_put_float(buf, 36, ay);
229 _mav_put_float(buf, 40, az);
230 _mav_put_uint8_t(buf, 224, estimator_type);
231 _mav_put_float_array(buf, 44, covariance, 45);
234 mavlink_local_position_ned_cov_t packet;
235 packet.time_usec = time_usec;
245 packet.estimator_type = estimator_type;
246 mav_array_memcpy(packet.covariance, covariance,
sizeof(
float)*45);
247 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN);
255
256
257
258
259
260
261
262static inline uint16_t mavlink_msg_local_position_ned_cov_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_local_position_ned_cov_t* local_position_ned_cov)
264 return mavlink_msg_local_position_ned_cov_pack(system_id, component_id, msg, local_position_ned_cov->time_usec, local_position_ned_cov->estimator_type, local_position_ned_cov->x, local_position_ned_cov->y, local_position_ned_cov->z, local_position_ned_cov->vx, local_position_ned_cov->vy, local_position_ned_cov->vz, local_position_ned_cov->ax, local_position_ned_cov->ay, local_position_ned_cov->az, local_position_ned_cov->covariance);
268
269
270
271
272
273
274
275
276static inline uint16_t mavlink_msg_local_position_ned_cov_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_local_position_ned_cov_t* local_position_ned_cov)
278 return mavlink_msg_local_position_ned_cov_pack_chan(system_id, component_id, chan, msg, local_position_ned_cov->time_usec, local_position_ned_cov->estimator_type, local_position_ned_cov->x, local_position_ned_cov->y, local_position_ned_cov->z, local_position_ned_cov->vx, local_position_ned_cov->vy, local_position_ned_cov->vz, local_position_ned_cov->ax, local_position_ned_cov->ay, local_position_ned_cov->az, local_position_ned_cov->covariance);
282
283
284
285
286
287
288
289
290static inline uint16_t mavlink_msg_local_position_ned_cov_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_local_position_ned_cov_t* local_position_ned_cov)
292 return mavlink_msg_local_position_ned_cov_pack_status(system_id, component_id, _status, msg, local_position_ned_cov->time_usec, local_position_ned_cov->estimator_type, local_position_ned_cov->x, local_position_ned_cov->y, local_position_ned_cov->z, local_position_ned_cov->vx, local_position_ned_cov->vy, local_position_ned_cov->vz, local_position_ned_cov->ax, local_position_ned_cov->ay, local_position_ned_cov->az, local_position_ned_cov->covariance);
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
314static inline void mavlink_msg_local_position_ned_cov_send(mavlink_channel_t chan, uint64_t time_usec, uint8_t estimator_type,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float ax,
float ay,
float az,
const float *covariance)
316#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
317 char buf[MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN];
318 _mav_put_uint64_t(buf, 0, time_usec);
319 _mav_put_float(buf, 8, x);
320 _mav_put_float(buf, 12, y);
321 _mav_put_float(buf, 16, z);
322 _mav_put_float(buf, 20, vx);
323 _mav_put_float(buf, 24, vy);
324 _mav_put_float(buf, 28, vz);
325 _mav_put_float(buf, 32, ax);
326 _mav_put_float(buf, 36, ay);
327 _mav_put_float(buf, 40, az);
328 _mav_put_uint8_t(buf, 224, estimator_type);
329 _mav_put_float_array(buf, 44, covariance, 45);
330 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV, buf, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_MIN_LEN, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_CRC);
332 mavlink_local_position_ned_cov_t packet;
333 packet.time_usec = time_usec;
343 packet.estimator_type = estimator_type;
344 mav_array_memcpy(packet.covariance, covariance,
sizeof(
float)*45);
345 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV, (
const char *)&packet, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_MIN_LEN, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_CRC);
350
351
352
353
354static inline void mavlink_msg_local_position_ned_cov_send_struct(mavlink_channel_t chan,
const mavlink_local_position_ned_cov_t* local_position_ned_cov)
356#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
357 mavlink_msg_local_position_ned_cov_send(chan, local_position_ned_cov->time_usec, local_position_ned_cov->estimator_type, local_position_ned_cov->x, local_position_ned_cov->y, local_position_ned_cov->z, local_position_ned_cov->vx, local_position_ned_cov->vy, local_position_ned_cov->vz, local_position_ned_cov->ax, local_position_ned_cov->ay, local_position_ned_cov->az, local_position_ned_cov->covariance);
359 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV, (
const char *)local_position_ned_cov, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_MIN_LEN, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_CRC);
363#if MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN <= MAVLINK_MAX_PAYLOAD_LEN
365
366
367
368
369
370
371static inline void mavlink_msg_local_position_ned_cov_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t time_usec, uint8_t estimator_type,
float x,
float y,
float z,
float vx,
float vy,
float vz,
float ax,
float ay,
float az,
const float *covariance)
373#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
374 char *buf = (
char *)msgbuf;
375 _mav_put_uint64_t(buf, 0, time_usec);
376 _mav_put_float(buf, 8, x);
377 _mav_put_float(buf, 12, y);
378 _mav_put_float(buf, 16, z);
379 _mav_put_float(buf, 20, vx);
380 _mav_put_float(buf, 24, vy);
381 _mav_put_float(buf, 28, vz);
382 _mav_put_float(buf, 32, ax);
383 _mav_put_float(buf, 36, ay);
384 _mav_put_float(buf, 40, az);
385 _mav_put_uint8_t(buf, 224, estimator_type);
386 _mav_put_float_array(buf, 44, covariance, 45);
387 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV, buf, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_MIN_LEN, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_CRC);
389 mavlink_local_position_ned_cov_t *packet = (mavlink_local_position_ned_cov_t *)msgbuf;
390 packet->time_usec = time_usec;
400 packet->estimator_type = estimator_type;
401 mav_array_memcpy(packet->covariance, covariance,
sizeof(
float)*45);
402 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV, (
const char *)packet, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_MIN_LEN, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_CRC);
413
414
415
416
417static inline uint64_t mavlink_msg_local_position_ned_cov_get_time_usec(
const mavlink_message_t* msg)
419 return _MAV_RETURN_uint64_t(msg, 0);
423
424
425
426
427static inline uint8_t mavlink_msg_local_position_ned_cov_get_estimator_type(
const mavlink_message_t* msg)
429 return _MAV_RETURN_uint8_t(msg, 224);
433
434
435
436
437static inline float mavlink_msg_local_position_ned_cov_get_x(
const mavlink_message_t* msg)
439 return _MAV_RETURN_float(msg, 8);
443
444
445
446
447static inline float mavlink_msg_local_position_ned_cov_get_y(
const mavlink_message_t* msg)
449 return _MAV_RETURN_float(msg, 12);
453
454
455
456
457static inline float mavlink_msg_local_position_ned_cov_get_z(
const mavlink_message_t* msg)
459 return _MAV_RETURN_float(msg, 16);
463
464
465
466
467static inline float mavlink_msg_local_position_ned_cov_get_vx(
const mavlink_message_t* msg)
469 return _MAV_RETURN_float(msg, 20);
473
474
475
476
477static inline float mavlink_msg_local_position_ned_cov_get_vy(
const mavlink_message_t* msg)
479 return _MAV_RETURN_float(msg, 24);
483
484
485
486
487static inline float mavlink_msg_local_position_ned_cov_get_vz(
const mavlink_message_t* msg)
489 return _MAV_RETURN_float(msg, 28);
493
494
495
496
497static inline float mavlink_msg_local_position_ned_cov_get_ax(
const mavlink_message_t* msg)
499 return _MAV_RETURN_float(msg, 32);
503
504
505
506
507static inline float mavlink_msg_local_position_ned_cov_get_ay(
const mavlink_message_t* msg)
509 return _MAV_RETURN_float(msg, 36);
513
514
515
516
517static inline float mavlink_msg_local_position_ned_cov_get_az(
const mavlink_message_t* msg)
519 return _MAV_RETURN_float(msg, 40);
523
524
525
526
527static inline uint16_t mavlink_msg_local_position_ned_cov_get_covariance(
const mavlink_message_t* msg,
float *covariance)
529 return _MAV_RETURN_float_array(msg, covariance, 45, 44);
533
534
535
536
537
538static inline void mavlink_msg_local_position_ned_cov_decode(
const mavlink_message_t* msg, mavlink_local_position_ned_cov_t* local_position_ned_cov)
540#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
541 local_position_ned_cov->time_usec = mavlink_msg_local_position_ned_cov_get_time_usec(msg);
542 local_position_ned_cov->x = mavlink_msg_local_position_ned_cov_get_x(msg);
543 local_position_ned_cov->y = mavlink_msg_local_position_ned_cov_get_y(msg);
544 local_position_ned_cov->z = mavlink_msg_local_position_ned_cov_get_z(msg);
545 local_position_ned_cov->vx = mavlink_msg_local_position_ned_cov_get_vx(msg);
546 local_position_ned_cov->vy = mavlink_msg_local_position_ned_cov_get_vy(msg);
547 local_position_ned_cov->vz = mavlink_msg_local_position_ned_cov_get_vz(msg);
548 local_position_ned_cov->ax = mavlink_msg_local_position_ned_cov_get_ax(msg);
549 local_position_ned_cov->ay = mavlink_msg_local_position_ned_cov_get_ay(msg);
550 local_position_ned_cov->az = mavlink_msg_local_position_ned_cov_get_az(msg);
551 mavlink_msg_local_position_ned_cov_get_covariance(msg, local_position_ned_cov->covariance);
552 local_position_ned_cov->estimator_type = mavlink_msg_local_position_ned_cov_get_estimator_type(msg);
554 uint8_t len = msg->len < MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN? msg->len : MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN;
555 memset(local_position_ned_cov, 0, MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN);
556 memcpy(local_position_ned_cov, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV
Definition: mavlink_msg_local_position_ned_cov.h:4
#define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_CRC
Definition: mavlink_msg_local_position_ned_cov.h:27
#define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_MIN_LEN
Definition: mavlink_msg_local_position_ned_cov.h:23
#define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN
Definition: mavlink_msg_local_position_ned_cov.h:22
Definition: mavlink_msg_local_position_ned_cov.h:7
uint8_t estimator_type
Definition: mavlink_msg_local_position_ned_cov.h:19
uint64_t time_usec
Definition: mavlink_msg_local_position_ned_cov.h:8
float vz
Definition: mavlink_msg_local_position_ned_cov.h:14
float vy
Definition: mavlink_msg_local_position_ned_cov.h:13
float az
Definition: mavlink_msg_local_position_ned_cov.h:17
float vx
Definition: mavlink_msg_local_position_ned_cov.h:12
float ax
Definition: mavlink_msg_local_position_ned_cov.h:15
float covariance[45]
Definition: mavlink_msg_local_position_ned_cov.h:18
float y
Definition: mavlink_msg_local_position_ned_cov.h:10
float x
Definition: mavlink_msg_local_position_ned_cov.h:9
float ay
Definition: mavlink_msg_local_position_ned_cov.h:16
float z
Definition: mavlink_msg_local_position_ned_cov.h:11