pub struct HIL_GPS_DATA {}
cubepilot
only.Expand description
id: 113 The global position, as returned by the Global Positioning System (GPS). This is NOT the global position estimate of the system, but rather a RAW sensor value. See message GLOBAL_POSITION_INT for the global position estimate..
Fields§
§time_usec: u64
Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number..
lat: i32
Latitude (WGS84).
lon: i32
Longitude (WGS84).
alt: i32
Altitude (MSL). Positive for up..
eph: u16
GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX.
epv: u16
GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX.
vel: u16
GPS ground speed. If unknown, set to: UINT16_MAX.
vn: i16
GPS velocity in north direction in earth-fixed NED frame.
ve: i16
GPS velocity in east direction in earth-fixed NED frame.
vd: i16
GPS velocity in down direction in earth-fixed NED frame.
cog: u16
Course over ground (NOT heading, but direction of movement), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX.
fix_type: u8
0-1: no fix, 2: 2D fix, 3: 3D fix. Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix..
satellites_visible: u8
Number of satellites visible. If unknown, set to UINT8_MAX.
id: u8
GPS ID (zero indexed). Used for multiple GPS inputs.
yaw: u16
Yaw of vehicle relative to Earth’s North, zero means not available, use 36000 for north.
Implementations§
Source§impl HIL_GPS_DATA
impl HIL_GPS_DATA
pub const ENCODED_LEN: usize = 39usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for HIL_GPS_DATA
impl Clone for HIL_GPS_DATA
Source§fn clone(&self) -> HIL_GPS_DATA
fn clone(&self) -> HIL_GPS_DATA
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more