pub struct GlobalPositionInt {
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,
}Expand description
MAVLink GLOBAL_POSITION_INT message.
The minimum supported MAVLink version is MAVLink 1.
§Description
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.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
GlobalPositionInt (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§time_boot_ms: u32MAVLink field time_boot_ms.
Timestamp (time since system boot).
lat: i32MAVLink field lat.
Latitude, expressed
lon: i32MAVLink field lon.
Longitude, expressed
alt: i32MAVLink field alt.
Altitude (MSL). Note that virtually all GPS modules provide both WGS84 and MSL.
relative_alt: i32MAVLink field relative_alt.
Altitude above home
vx: i16MAVLink field vx.
Ground X Speed (Latitude, positive north)
vy: i16MAVLink field vy.
Ground Y Speed (Longitude, positive east)
vz: i16MAVLink field vz.
Ground Z Speed (Altitude, positive down)
hdg: u16MAVLink field hdg.
Vehicle heading (yaw angle), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX
Implementations§
Source§impl GlobalPositionInt
impl GlobalPositionInt
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> u32
pub const fn message_id() -> u32
Message ID.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl Clone for GlobalPositionInt
impl Clone for GlobalPositionInt
Source§fn clone(&self) -> GlobalPositionInt
fn clone(&self) -> GlobalPositionInt
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GlobalPositionInt
impl Debug for GlobalPositionInt
Source§impl Default for GlobalPositionInt
impl Default for GlobalPositionInt
Source§fn default() -> GlobalPositionInt
fn default() -> GlobalPositionInt
Source§impl<'de> Deserialize<'de> for GlobalPositionInt
impl<'de> Deserialize<'de> for GlobalPositionInt
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GlobalPositionInt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GlobalPositionInt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Flatten for GlobalPositionInt
Source§impl From<GlobalPositionInt> for Common
impl From<GlobalPositionInt> for Common
Source§fn from(value: GlobalPositionInt) -> Common
fn from(value: GlobalPositionInt) -> Common
Source§impl IntoPayload for GlobalPositionInt
impl IntoPayload for GlobalPositionInt
impl Message for GlobalPositionInt
Source§impl MessageSpec for GlobalPositionInt
impl MessageSpec for GlobalPositionInt
Source§impl MessageSpecStatic for GlobalPositionInt
impl MessageSpecStatic for GlobalPositionInt
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> u32
fn message_id() -> u32
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for GlobalPositionInt
impl NamedType for GlobalPositionInt
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl PartialEq for GlobalPositionInt
impl PartialEq for GlobalPositionInt
Source§fn eq(&self, other: &GlobalPositionInt) -> bool
fn eq(&self, other: &GlobalPositionInt) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for GlobalPositionInt
impl Serialize for GlobalPositionInt
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for GlobalPositionInt
Source§impl TryFrom<&Payload> for GlobalPositionInt
impl TryFrom<&Payload> for GlobalPositionInt
Source§impl Type for GlobalPositionInt
impl Type for GlobalPositionInt
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.