[][src]Struct mavlink::common::GLOBAL_POSITION_INT_DATA

pub struct GLOBAL_POSITION_INT_DATA {
    pub time_boot_ms: u32,
    pub lat: i32,
    pub lon: i32,
    pub alt: i32,
    pub relative_alt: i32,
    pub vx: i16,
    pub vy: i16,
    pub vz: i16,
    pub hdg: u16,
}

id: 33 The filtered global position (e.g. fused GPS and accelerometers). The position is in GPS-frame (right-handed, Z-up). It is designed as scaled integer message since the resolution of float is not sufficient..

Fields

time_boot_ms: u32

Timestamp (time since system boot)..

lat: i32

Latitude, expressed.

lon: i32

Longitude, expressed.

alt: i32

Altitude (MSL). Note that virtually all GPS modules provide both WGS84 and MSL..

relative_alt: i32

Altitude above ground.

vx: i16

Ground X Speed (Latitude, positive north).

vy: i16

Ground Y Speed (Longitude, positive east).

vz: i16

Ground Z Speed (Altitude, positive down).

hdg: u16

Vehicle heading (yaw angle), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX.

Implementations

impl GLOBAL_POSITION_INT_DATA[src]

pub const ENCODED_LEN: usize[src]

pub fn deser(
    version: MavlinkVersion,
    _input: &[u8]
) -> Result<Self, ParserError>
[src]

pub fn ser(&self) -> Vec<u8>[src]

Trait Implementations

impl Clone for GLOBAL_POSITION_INT_DATA[src]

impl Debug for GLOBAL_POSITION_INT_DATA[src]

impl Default for GLOBAL_POSITION_INT_DATA[src]

impl<'de> Deserialize<'de> for GLOBAL_POSITION_INT_DATA[src]

impl PartialEq<GLOBAL_POSITION_INT_DATA> for GLOBAL_POSITION_INT_DATA[src]

impl Serialize for GLOBAL_POSITION_INT_DATA[src]

impl StructuralPartialEq for GLOBAL_POSITION_INT_DATA[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.