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
69 char buf[MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN];
70 _mav_put_uint64_t(buf, 0, time_utc);
71 _mav_put_uint32_t(buf, 8, time_boot_ms);
72 _mav_put_int32_t(buf, 12, lat);
73 _mav_put_int32_t(buf, 16, lon);
74 _mav_put_int32_t(buf, 20, alt);
75 _mav_put_int32_t(buf, 24, relative_alt);
76 _mav_put_float(buf, 28, vx);
77 _mav_put_float(buf, 32, vy);
78 _mav_put_float(buf, 36, vz);
79 _mav_put_uint8_t(buf, 184, estimator_type);
80 _mav_put_float_array(buf, 40, covariance, 36);
81 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN);
94 mav_array_memcpy(packet.
covariance, covariance,
sizeof(
float)*36);
95 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN);
98 msg->msgid = MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV;
100 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_CRC);
102 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN);
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
130 char buf[MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN];
131 _mav_put_uint64_t(buf, 0, time_utc);
132 _mav_put_uint32_t(buf, 8, time_boot_ms);
133 _mav_put_int32_t(buf, 12, lat);
134 _mav_put_int32_t(buf, 16, lon);
135 _mav_put_int32_t(buf, 20, alt);
136 _mav_put_int32_t(buf, 24, relative_alt);
137 _mav_put_float(buf, 28, vx);
138 _mav_put_float(buf, 32, vy);
139 _mav_put_float(buf, 36, vz);
140 _mav_put_uint8_t(buf, 184, estimator_type);
141 _mav_put_float_array(buf, 40, covariance, 36);
142 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN);
155 mav_array_memcpy(packet.
covariance, covariance,
sizeof(
float)*36);
156 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN);
159 msg->msgid = MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV;
160 #if MAVLINK_CRC_EXTRA
161 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_CRC);
163 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN);
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
215 char buf[MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN];
216 _mav_put_uint64_t(buf, 0, time_utc);
217 _mav_put_uint32_t(buf, 8, time_boot_ms);
218 _mav_put_int32_t(buf, 12, lat);
219 _mav_put_int32_t(buf, 16, lon);
220 _mav_put_int32_t(buf, 20, alt);
221 _mav_put_int32_t(buf, 24, relative_alt);
222 _mav_put_float(buf, 28, vx);
223 _mav_put_float(buf, 32, vy);
224 _mav_put_float(buf, 36, vz);
225 _mav_put_uint8_t(buf, 184, estimator_type);
226 _mav_put_float_array(buf, 40, covariance, 36);
227 #if MAVLINK_CRC_EXTRA
228 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV, buf, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_CRC);
230 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV, buf, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN);
244 mav_array_memcpy(packet.
covariance, covariance,
sizeof(
float)*36);
245 #if MAVLINK_CRC_EXTRA
246 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV, (
const char *)&packet, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_CRC);
248 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV, (
const char *)&packet, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN);
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;
265 _mav_put_uint64_t(buf, 0, time_utc);
266 _mav_put_uint32_t(buf, 8, time_boot_ms);
267 _mav_put_int32_t(buf, 12, lat);
268 _mav_put_int32_t(buf, 16, lon);
269 _mav_put_int32_t(buf, 20, alt);
270 _mav_put_int32_t(buf, 24, relative_alt);
271 _mav_put_float(buf, 28, vx);
272 _mav_put_float(buf, 32, vy);
273 _mav_put_float(buf, 36, vz);
274 _mav_put_uint8_t(buf, 184, estimator_type);
275 _mav_put_float_array(buf, 40, covariance, 36);
276 #if MAVLINK_CRC_EXTRA
277 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV, buf, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_CRC);
279 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV, buf, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN);
293 mav_array_memcpy(packet->
covariance, covariance,
sizeof(
float)*36);
294 #if MAVLINK_CRC_EXTRA
295 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV, (
const char *)packet, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_CRC);
297 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV, (
const char *)packet, MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN);
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)
335 return _MAV_RETURN_uint8_t(msg, 184);
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);
439 memcpy(global_position_int_cov, _MAV_PAYLOAD(msg), MAVLINK_MSG_ID_GLOBAL_POSITION_INT_COV_LEN);
float vy
Ground Y Speed (Longitude), expressed as m/s.
Definition: mavlink_msg_global_position_int_cov.h:14
uint8_t estimator_type
Class id of the estimator this estimate originated from.
Definition: mavlink_msg_global_position_int_cov.h:17
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
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
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