3 #define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV 64
22 #define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN 229
23 #define MAVLINK_MSG_ID_64_LEN 229
25 #define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_CRC 59
26 #define MAVLINK_MSG_ID_64_CRC 59
28 #define MAVLINK_MSG_LOCAL_POSITION_NED_COV_FIELD_COVARIANCE_LEN 45
30 #define MAVLINK_MESSAGE_INFO_LOCAL_POSITION_NED_COV { \
31 "LOCAL_POSITION_NED_COV", \
33 { { "time_utc", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_local_position_ned_cov_t, time_utc) }, \
34 { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_local_position_ned_cov_t, time_boot_ms) }, \
35 { "x", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_local_position_ned_cov_t, x) }, \
36 { "y", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_local_position_ned_cov_t, y) }, \
37 { "z", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_local_position_ned_cov_t, z) }, \
38 { "vx", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_local_position_ned_cov_t, vx) }, \
39 { "vy", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_local_position_ned_cov_t, vy) }, \
40 { "vz", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_local_position_ned_cov_t, vz) }, \
41 { "ax", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_local_position_ned_cov_t, ax) }, \
42 { "ay", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_local_position_ned_cov_t, ay) }, \
43 { "az", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_local_position_ned_cov_t, az) }, \
44 { "covariance", NULL, MAVLINK_TYPE_FLOAT, 45, 48, offsetof(mavlink_local_position_ned_cov_t, covariance) }, \
45 { "estimator_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 228, offsetof(mavlink_local_position_ned_cov_t, estimator_type) }, \
71 static inline uint16_t mavlink_msg_local_position_ned_cov_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
72 uint32_t time_boot_ms, uint64_t time_utc, 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)
74 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
88 _mav_put_float_array(buf, 48, covariance, 45);
104 mav_array_memcpy(packet.
covariance, covariance,
sizeof(
float)*45);
109 #if MAVLINK_CRC_EXTRA
137 static inline uint16_t mavlink_msg_local_position_ned_cov_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
138 mavlink_message_t* msg,
139 uint32_t time_boot_ms,uint64_t time_utc,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)
141 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
155 _mav_put_float_array(buf, 48, covariance, 45);
171 mav_array_memcpy(packet.
covariance, covariance,
sizeof(
float)*45);
176 #if MAVLINK_CRC_EXTRA
191 static 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)
193 return mavlink_msg_local_position_ned_cov_pack(system_id, component_id, msg, local_position_ned_cov->
time_boot_ms, local_position_ned_cov->
time_utc, 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);
205 static 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)
207 return mavlink_msg_local_position_ned_cov_pack_chan(system_id, component_id, chan, msg, local_position_ned_cov->
time_boot_ms, local_position_ned_cov->
time_utc, 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);
228 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
230 static inline void mavlink_msg_local_position_ned_cov_send(
mavlink_channel_t chan, uint32_t time_boot_ms, uint64_t time_utc, 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)
232 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
246 _mav_put_float_array(buf, 48, covariance, 45);
247 #if MAVLINK_CRC_EXTRA
266 mav_array_memcpy(packet.
covariance, covariance,
sizeof(
float)*45);
267 #if MAVLINK_CRC_EXTRA
275 #if MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN <= MAVLINK_MAX_PAYLOAD_LEN
283 static inline void mavlink_msg_local_position_ned_cov_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint32_t time_boot_ms, uint64_t time_utc, 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)
285 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
286 char *buf = (
char *)msgbuf;
299 _mav_put_float_array(buf, 48, covariance, 45);
300 #if MAVLINK_CRC_EXTRA
319 mav_array_memcpy(packet->
covariance, covariance,
sizeof(
float)*45);
320 #if MAVLINK_CRC_EXTRA
339 static inline uint32_t mavlink_msg_local_position_ned_cov_get_time_boot_ms(
const mavlink_message_t* msg)
341 return _MAV_RETURN_uint32_t(msg, 8);
349 static inline uint64_t mavlink_msg_local_position_ned_cov_get_time_utc(
const mavlink_message_t* msg)
351 return _MAV_RETURN_uint64_t(msg, 0);
359 static inline uint8_t mavlink_msg_local_position_ned_cov_get_estimator_type(
const mavlink_message_t* msg)
369 static inline float mavlink_msg_local_position_ned_cov_get_x(
const mavlink_message_t* msg)
371 return _MAV_RETURN_float(msg, 12);
379 static inline float mavlink_msg_local_position_ned_cov_get_y(
const mavlink_message_t* msg)
381 return _MAV_RETURN_float(msg, 16);
389 static inline float mavlink_msg_local_position_ned_cov_get_z(
const mavlink_message_t* msg)
391 return _MAV_RETURN_float(msg, 20);
399 static inline float mavlink_msg_local_position_ned_cov_get_vx(
const mavlink_message_t* msg)
401 return _MAV_RETURN_float(msg, 24);
409 static inline float mavlink_msg_local_position_ned_cov_get_vy(
const mavlink_message_t* msg)
411 return _MAV_RETURN_float(msg, 28);
419 static inline float mavlink_msg_local_position_ned_cov_get_vz(
const mavlink_message_t* msg)
421 return _MAV_RETURN_float(msg, 32);
429 static inline float mavlink_msg_local_position_ned_cov_get_ax(
const mavlink_message_t* msg)
431 return _MAV_RETURN_float(msg, 36);
439 static inline float mavlink_msg_local_position_ned_cov_get_ay(
const mavlink_message_t* msg)
441 return _MAV_RETURN_float(msg, 40);
449 static inline float mavlink_msg_local_position_ned_cov_get_az(
const mavlink_message_t* msg)
451 return _MAV_RETURN_float(msg, 44);
459 static inline uint16_t mavlink_msg_local_position_ned_cov_get_covariance(
const mavlink_message_t* msg,
float *covariance)
461 return _MAV_RETURN_float_array(msg, covariance, 45, 48);
472 #if MAVLINK_NEED_BYTE_SWAP
473 local_position_ned_cov->
time_utc = mavlink_msg_local_position_ned_cov_get_time_utc(msg);
474 local_position_ned_cov->
time_boot_ms = mavlink_msg_local_position_ned_cov_get_time_boot_ms(msg);
475 local_position_ned_cov->
x = mavlink_msg_local_position_ned_cov_get_x(msg);
476 local_position_ned_cov->
y = mavlink_msg_local_position_ned_cov_get_y(msg);
477 local_position_ned_cov->
z = mavlink_msg_local_position_ned_cov_get_z(msg);
478 local_position_ned_cov->
vx = mavlink_msg_local_position_ned_cov_get_vx(msg);
479 local_position_ned_cov->
vy = mavlink_msg_local_position_ned_cov_get_vy(msg);
480 local_position_ned_cov->
vz = mavlink_msg_local_position_ned_cov_get_vz(msg);
481 local_position_ned_cov->
ax = mavlink_msg_local_position_ned_cov_get_ax(msg);
482 local_position_ned_cov->
ay = mavlink_msg_local_position_ned_cov_get_ay(msg);
483 local_position_ned_cov->
az = mavlink_msg_local_position_ned_cov_get_az(msg);
484 mavlink_msg_local_position_ned_cov_get_covariance(msg, local_position_ned_cov->
covariance);
485 local_position_ned_cov->
estimator_type = mavlink_msg_local_position_ned_cov_get_estimator_type(msg);
uint32_t time_boot_ms
Timestamp (milliseconds since system boot). 0 for system without monotonic timestamp.
Definition: mavlink_msg_local_position_ned_cov.h:8
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
float vy
Y Speed (m/s)
Definition: mavlink_msg_local_position_ned_cov.h:13
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
float z
Z Position.
Definition: mavlink_msg_local_position_ned_cov.h:11
float vx
X Speed (m/s)
Definition: mavlink_msg_local_position_ned_cov.h:12
float ax
X Acceleration (m/s^2)
Definition: mavlink_msg_local_position_ned_cov.h:15
float x
X Position.
Definition: mavlink_msg_local_position_ned_cov.h:9
#define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV
Definition: mavlink_msg_local_position_ned_cov.h:3
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
Definition: mavlink_helpers.h:105
#define _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#define _mav_put_uint64_t(buf, wire_offset, b)
Definition: protocol.h:143
#define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_CRC
Definition: mavlink_msg_local_position_ned_cov.h:25
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
uint8_t estimator_type
Class id of the estimator this estimate originated from.
Definition: mavlink_msg_local_position_ned_cov.h:19
float covariance[45]
Covariance matrix upper right triangular (first nine entries are the first ROW, next eight entries ar...
Definition: mavlink_msg_local_position_ned_cov.h:18
mavlink_channel_t
Definition: mavlink_types.h:178
float ay
Y Acceleration (m/s^2)
Definition: mavlink_msg_local_position_ned_cov.h:16
float y
Y Position.
Definition: mavlink_msg_local_position_ned_cov.h:10
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
float az
Z Acceleration (m/s^2)
Definition: mavlink_msg_local_position_ned_cov.h:17
uint8_t z
set the acc deadband for z-Axis, this ignores small accelerations
Definition: accelerometer.h:52
#define MAVLINK_MSG_ID_LOCAL_POSITION_NED_COV_LEN
Definition: mavlink_msg_local_position_ned_cov.h:22
float vz
Z Speed (m/s)
Definition: mavlink_msg_local_position_ned_cov.h:14
struct __mavlink_local_position_ned_cov_t mavlink_local_position_ned_cov_t
uint64_t time_utc
Timestamp (microseconds since UNIX epoch) in UTC. 0 for unknown. Commonly filled by the precision tim...
Definition: mavlink_msg_local_position_ned_cov.h:7
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
Definition: mavlink_helpers.h:71
Definition: mavlink_msg_local_position_ned_cov.h:5
#define _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141