3 #define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV 63
20 #define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN 185
21 #define MAVLINK_MSG_ID_63_LEN 185
23 #define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_CRC 51
24 #define MAVLINK_MSG_ID_63_CRC 51
26 #define MAVLINK_MSG_GLOBAL_POSITION_INT_COV_FIELD_COVARIANCE_LEN 36
28 #define MAVLINK_MESSAGE_INFO_GLOBAL_POSITION_INT_COV { \
29 "GLOBAL_POSITION_INT_COV", \
31 { { "time_utc", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_global_position_int_cov_t, time_utc) }, \
32 { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_global_position_int_cov_t, time_boot_ms) }, \
33 { "lat", NULL, MAVLINK_TYPE_INT32_T, 0, 12, offsetof(mavlink_global_position_int_cov_t, lat) }, \
34 { "lon", NULL, MAVLINK_TYPE_INT32_T, 0, 16, offsetof(mavlink_global_position_int_cov_t, lon) }, \
35 { "alt", NULL, MAVLINK_TYPE_INT32_T, 0, 20, offsetof(mavlink_global_position_int_cov_t, alt) }, \
36 { "relative_alt", NULL, MAVLINK_TYPE_INT32_T, 0, 24, offsetof(mavlink_global_position_int_cov_t, relative_alt) }, \
37 { "vx", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_global_position_int_cov_t, vx) }, \
38 { "vy", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_global_position_int_cov_t, vy) }, \
39 { "vz", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_global_position_int_cov_t, vz) }, \
40 { "covariance", NULL, MAVLINK_TYPE_FLOAT, 36, 40, offsetof(mavlink_global_position_int_cov_t, covariance) }, \
41 { "estimator_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 184, offsetof(mavlink_global_position_int_cov_t, estimator_type) }, \
65 static inline uint16_t mavlink_msg_global_position_int_cov_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
66 uint32_t time_boot_ms, uint64_t time_utc, uint8_t estimator_type, int32_t lat, int32_t lon, int32_t alt, int32_t relative_alt,
float vx,
float vy,
float vz,
const float *covariance)
68 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
80 _mav_put_float_array(buf, 40, covariance, 36);
94 mav_array_memcpy(packet.
covariance, covariance,
sizeof(
float)*36);
125 static inline uint16_t mavlink_msg_global_position_int_cov_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
126 mavlink_message_t* msg,
127 uint32_t time_boot_ms,uint64_t time_utc,uint8_t estimator_type,int32_t lat,int32_t lon,int32_t alt,int32_t relative_alt,
float vx,
float vy,
float vz,
const float *covariance)
129 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
141 _mav_put_float_array(buf, 40, covariance, 36);
155 mav_array_memcpy(packet.
covariance, covariance,
sizeof(
float)*36);
160 #if MAVLINK_CRC_EXTRA
175 static inline uint16_t mavlink_msg_global_position_int_cov_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_global_position_int_cov_t* global_position_int_cov)
177 return mavlink_msg_global_position_int_cov_pack(system_id, component_id, msg, global_position_int_cov->
time_boot_ms, global_position_int_cov->
time_utc, global_position_int_cov->
estimator_type, global_position_int_cov->
lat, global_position_int_cov->
lon, global_position_int_cov->
alt, global_position_int_cov->
relative_alt, global_position_int_cov->
vx, global_position_int_cov->
vy, global_position_int_cov->
vz, global_position_int_cov->
covariance);
189 static inline uint16_t mavlink_msg_global_position_int_cov_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_global_position_int_cov_t* global_position_int_cov)
191 return mavlink_msg_global_position_int_cov_pack_chan(system_id, component_id, chan, msg, global_position_int_cov->
time_boot_ms, global_position_int_cov->
time_utc, global_position_int_cov->
estimator_type, global_position_int_cov->
lat, global_position_int_cov->
lon, global_position_int_cov->
alt, global_position_int_cov->
relative_alt, global_position_int_cov->
vx, global_position_int_cov->
vy, global_position_int_cov->
vz, global_position_int_cov->
covariance);
210 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
212 static inline void mavlink_msg_global_position_int_cov_send(
mavlink_channel_t chan, uint32_t time_boot_ms, uint64_t time_utc, uint8_t estimator_type, int32_t lat, int32_t lon, int32_t alt, int32_t relative_alt,
float vx,
float vy,
float vz,
const float *covariance)
214 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
226 _mav_put_float_array(buf, 40, covariance, 36);
227 #if MAVLINK_CRC_EXTRA
244 mav_array_memcpy(packet.
covariance, covariance,
sizeof(
float)*36);
245 #if MAVLINK_CRC_EXTRA
253 #if MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN <= MAVLINK_MAX_PAYLOAD_LEN
261 static inline void mavlink_msg_global_position_int_cov_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint32_t time_boot_ms, uint64_t time_utc, uint8_t estimator_type, int32_t lat, int32_t lon, int32_t alt, int32_t relative_alt,
float vx,
float vy,
float vz,
const float *covariance)
263 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
264 char *buf = (
char *)msgbuf;
275 _mav_put_float_array(buf, 40, covariance, 36);
276 #if MAVLINK_CRC_EXTRA
293 mav_array_memcpy(packet->
covariance, covariance,
sizeof(
float)*36);
294 #if MAVLINK_CRC_EXTRA
313 static inline uint32_t mavlink_msg_global_position_int_cov_get_time_boot_ms(
const mavlink_message_t* msg)
315 return _MAV_RETURN_uint32_t(msg, 8);
323 static inline uint64_t mavlink_msg_global_position_int_cov_get_time_utc(
const mavlink_message_t* msg)
325 return _MAV_RETURN_uint64_t(msg, 0);
333 static inline uint8_t mavlink_msg_global_position_int_cov_get_estimator_type(
const mavlink_message_t* msg)
343 static inline int32_t mavlink_msg_global_position_int_cov_get_lat(
const mavlink_message_t* msg)
345 return _MAV_RETURN_int32_t(msg, 12);
353 static inline int32_t mavlink_msg_global_position_int_cov_get_lon(
const mavlink_message_t* msg)
355 return _MAV_RETURN_int32_t(msg, 16);
363 static inline int32_t mavlink_msg_global_position_int_cov_get_alt(
const mavlink_message_t* msg)
365 return _MAV_RETURN_int32_t(msg, 20);
373 static inline int32_t mavlink_msg_global_position_int_cov_get_relative_alt(
const mavlink_message_t* msg)
375 return _MAV_RETURN_int32_t(msg, 24);
383 static inline float mavlink_msg_global_position_int_cov_get_vx(
const mavlink_message_t* msg)
385 return _MAV_RETURN_float(msg, 28);
393 static inline float mavlink_msg_global_position_int_cov_get_vy(
const mavlink_message_t* msg)
395 return _MAV_RETURN_float(msg, 32);
403 static inline float mavlink_msg_global_position_int_cov_get_vz(
const mavlink_message_t* msg)
405 return _MAV_RETURN_float(msg, 36);
413 static inline uint16_t mavlink_msg_global_position_int_cov_get_covariance(
const mavlink_message_t* msg,
float *covariance)
415 return _MAV_RETURN_float_array(msg, covariance, 36, 40);
426 #if MAVLINK_NEED_BYTE_SWAP
427 global_position_int_cov->
time_utc = mavlink_msg_global_position_int_cov_get_time_utc(msg);
428 global_position_int_cov->
time_boot_ms = mavlink_msg_global_position_int_cov_get_time_boot_ms(msg);
429 global_position_int_cov->
lat = mavlink_msg_global_position_int_cov_get_lat(msg);
430 global_position_int_cov->
lon = mavlink_msg_global_position_int_cov_get_lon(msg);
431 global_position_int_cov->
alt = mavlink_msg_global_position_int_cov_get_alt(msg);
432 global_position_int_cov->
relative_alt = mavlink_msg_global_position_int_cov_get_relative_alt(msg);
433 global_position_int_cov->
vx = mavlink_msg_global_position_int_cov_get_vx(msg);
434 global_position_int_cov->
vy = mavlink_msg_global_position_int_cov_get_vy(msg);
435 global_position_int_cov->
vz = mavlink_msg_global_position_int_cov_get_vz(msg);
436 mavlink_msg_global_position_int_cov_get_covariance(msg, global_position_int_cov->
covariance);
437 global_position_int_cov->
estimator_type = mavlink_msg_global_position_int_cov_get_estimator_type(msg);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
float vy
Ground Y Speed (Longitude), expressed as m/s.
Definition: mavlink_msg_global_position_int_cov.h:14
#define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_CRC
Definition: mavlink_msg_global_position_int_cov.h:23
uint8_t estimator_type
Class id of the estimator this estimate originated from.
Definition: mavlink_msg_global_position_int_cov.h:17
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
struct __mavlink_global_position_int_cov_t mavlink_global_position_int_cov_t
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 _mav_put_int32_t(buf, wire_offset, b)
Definition: protocol.h:142
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
int32_t alt
Altitude in meters, expressed as * 1000 (millimeters), above MSL.
Definition: mavlink_msg_global_position_int_cov.h:11
int32_t lon
Longitude, expressed as degrees * 1E7.
Definition: mavlink_msg_global_position_int_cov.h:10
mavlink_channel_t
Definition: mavlink_types.h:178
Definition: mavlink_msg_global_position_int_cov.h:5
float covariance[36]
Covariance matrix (first six entries are the first ROW, next six entries are the second row...
Definition: mavlink_msg_global_position_int_cov.h:16
#define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV
Definition: mavlink_msg_global_position_int_cov.h:3
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN
Definition: mavlink_msg_global_position_int_cov.h:20
int32_t relative_alt
Altitude above ground in meters, expressed as * 1000 (millimeters)
Definition: mavlink_msg_global_position_int_cov.h:12
float vz
Ground Z Speed (Altitude), expressed as m/s.
Definition: mavlink_msg_global_position_int_cov.h:15
uint64_t time_utc
Timestamp (microseconds since UNIX epoch) in UTC. 0 for unknown. Commonly filled by the precision tim...
Definition: mavlink_msg_global_position_int_cov.h:7
float vx
Ground X Speed (Latitude), expressed as m/s.
Definition: mavlink_msg_global_position_int_cov.h:13
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_global_position_int_cov.h:8
int32_t lat
Latitude, expressed as degrees * 1E7.
Definition: mavlink_msg_global_position_int_cov.h:9
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
#define _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141