Struct mavlink::ualberta::HIL_GPS_DATA
source · pub struct HIL_GPS_DATA {}
ualberta
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 moresource§impl Debug for HIL_GPS_DATA
impl Debug for HIL_GPS_DATA
source§impl Default for HIL_GPS_DATA
impl Default for HIL_GPS_DATA
source§impl<'de> Deserialize<'de> for HIL_GPS_DATA
impl<'de> Deserialize<'de> for HIL_GPS_DATA
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl MessageData for HIL_GPS_DATA
impl MessageData for HIL_GPS_DATA
const ID: u32 = 113u32
const NAME: &'static str = "HIL_GPS"
const EXTRA_CRC: u8 = 124u8
const ENCODED_LEN: usize = 39usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for HIL_GPS_DATA
impl PartialEq for HIL_GPS_DATA
source§impl Serialize for HIL_GPS_DATA
impl Serialize for HIL_GPS_DATA
impl StructuralPartialEq for HIL_GPS_DATA
Auto Trait Implementations§
impl Freeze for HIL_GPS_DATA
impl RefUnwindSafe for HIL_GPS_DATA
impl Send for HIL_GPS_DATA
impl Sync for HIL_GPS_DATA
impl Unpin for HIL_GPS_DATA
impl UnwindSafe for HIL_GPS_DATA
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)