pub struct GpsRawInt {}Expand description
MAVLink GPS_RAW_INT message.
The minimum supported MAVLink version is MAVLink 1.
§Description
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.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
GpsRawInt (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§time_usec: u64MAVLink field time_usec.
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.
fix_type: GpsFixTypeMAVLink field fix_type.
GPS fix type.
lat: i32MAVLink field lat.
Latitude (WGS84, EGM96 ellipsoid)
lon: i32MAVLink field lon.
Longitude (WGS84, EGM96 ellipsoid)
alt: i32MAVLink field alt.
Altitude (MSL). Positive for up. Note that virtually all GPS modules provide the MSL altitude in addition to the WGS84 altitude.
eph: u16MAVLink field eph.
GPS HDOP horizontal dilution of position (unitless * 100). If unknown, set to: UINT16_MAX
epv: u16MAVLink field epv.
GPS VDOP vertical dilution of position (unitless * 100). If unknown, set to: UINT16_MAX
vel: u16MAVLink field vel.
GPS ground speed. If unknown, set to: UINT16_MAX
cog: u16MAVLink field cog.
Course over ground (NOT heading, but direction of movement) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: UINT16_MAX
satellites_visible: u8MAVLink field satellites_visible.
Number of satellites visible. If unknown, set to UINT8_MAX
alt_ellipsoid: i32MAVLink field alt_ellipsoid.
Altitude (above WGS84, EGM96 ellipsoid). Positive for up.
h_acc: u32MAVLink field h_acc.
Position uncertainty.
v_acc: u32MAVLink field v_acc.
Altitude uncertainty.
vel_acc: u32MAVLink field vel_acc.
Speed uncertainty.
hdg_acc: u32MAVLink field hdg_acc.
Heading / track uncertainty
yaw: u16MAVLink field yaw.
Yaw in earth frame from north. Use 0 if this GPS does not provide yaw. Use UINT16_MAX if this GPS is configured to provide yaw and is currently unable to provide it. Use 36000 for north.
Implementations§
Source§impl GpsRawInt
impl GpsRawInt
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<'de> Deserialize<'de> for GpsRawInt
impl<'de> Deserialize<'de> for GpsRawInt
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GpsRawInt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GpsRawInt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl IntoPayload for GpsRawInt
impl IntoPayload for GpsRawInt
Source§impl MessageSpec for GpsRawInt
impl MessageSpec for GpsRawInt
Source§impl MessageSpecStatic for GpsRawInt
impl MessageSpecStatic for GpsRawInt
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 GpsRawInt
impl NamedType for GpsRawInt
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 Serialize for GpsRawInt
impl Serialize for GpsRawInt
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,
Source§impl Type for GpsRawInt
impl Type for GpsRawInt
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.