pub struct GpsInput {Show 19 fields
pub time_usec: u64,
pub gps_id: u8,
pub ignore_flags: GpsInputIgnoreFlags,
pub time_week_ms: u32,
pub time_week: u16,
pub fix_type: u8,
pub lat: i32,
pub lon: i32,
pub alt: f32,
pub hdop: f32,
pub vdop: f32,
pub vn: f32,
pub ve: f32,
pub vd: f32,
pub speed_accuracy: f32,
pub horiz_accuracy: f32,
pub vert_accuracy: f32,
pub satellites_visible: u8,
pub yaw: u16,
}
Expand description
MAVLink GPS_INPUT
message.
The minimum supported MAVLink version is MAVLink 1
.
§Description
GPS sensor input message. This is a raw sensor value sent by the GPS. This is NOT the global position estimate of the system.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload>
for
GpsInput
(encoding) and [IntoPayload
] (decoding) traits.
These traits are implemented by Message
proc macro.
Fields§
§time_usec: u64
MAVLink 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.
gps_id: u8
MAVLink field gps_id
.
ID of the GPS for multiple GPS inputs
ignore_flags: GpsInputIgnoreFlags
MAVLink field ignore_flags
.
Bitmap indicating which GPS input flags fields to ignore. All other fields must be provided.
time_week_ms: u32
MAVLink field time_week_ms
.
GPS time (from start of GPS week)
time_week: u16
MAVLink field time_week
.
GPS week number
fix_type: u8
MAVLink field fix_type
.
0-1: no fix, 2: 2D fix, 3: 3D fix. 4: 3D with DGPS. 5: 3D with RTK
lat: i32
MAVLink field lat
.
Latitude (WGS84)
lon: i32
MAVLink field lon
.
Longitude (WGS84)
alt: f32
MAVLink field alt
.
Altitude (MSL). Positive for up.
hdop: f32
MAVLink field hdop
.
GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX
vdop: f32
MAVLink field vdop
.
GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX
vn: f32
MAVLink field vn
.
GPS velocity in north direction in earth-fixed NED frame
ve: f32
MAVLink field ve
.
GPS velocity in east direction in earth-fixed NED frame
vd: f32
MAVLink field vd
.
GPS velocity in down direction in earth-fixed NED frame
speed_accuracy: f32
MAVLink field speed_accuracy
.
GPS speed accuracy
horiz_accuracy: f32
MAVLink field horiz_accuracy
.
GPS horizontal accuracy
vert_accuracy: f32
MAVLink field vert_accuracy
.
GPS vertical accuracy
satellites_visible: u8
MAVLink field satellites_visible
.
Number of satellites visible.
yaw: u16
MAVLink field yaw
.
Yaw of vehicle relative to Earth’s North, zero means not available, use 36000 for north
Implementations§
Source§impl GpsInput
impl GpsInput
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 GpsInput
impl<'de> Deserialize<'de> for GpsInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GpsInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GpsInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl IntoPayload for GpsInput
impl IntoPayload for GpsInput
Source§impl MessageSpec for GpsInput
impl MessageSpec for GpsInput
Source§impl MessageSpecStatic for GpsInput
impl MessageSpecStatic for GpsInput
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 GpsInput
impl NamedType for GpsInput
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 GpsInput
impl Serialize for GpsInput
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 GpsInput
impl Type for GpsInput
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.