pub struct GnssPositionReport {Show 15 fields
pub run_status: bool,
pub fix_status: bool,
pub utc_time: String,
pub latitude: Option<f64>,
pub longitude: Option<f64>,
pub msl_altitude: Option<f64>,
pub ground_speed: Option<f32>,
pub ground_course: Option<f32>,
pub fix_mode: GnssFixStatus,
pub hdop: Option<f32>,
pub pdop: Option<f32>,
pub vdop: Option<f32>,
pub gps_in_view: Option<u8>,
pub gnss_used: Option<u8>,
pub glonass_in_view: Option<u8>,
}Expand description
Represents a GNSS position report with optional fields for satellite info.
Fields§
§run_status: boolIndicates whether the GNSS receiver is currently running.
fix_status: boolWhether a valid fix has been obtained.
utc_time: StringUTC time of the position report in ISO 8601 format.
latitude: Option<f64>Latitude in decimal degrees.
longitude: Option<f64>Longitude in decimal degrees.
msl_altitude: Option<f64>Mean sea level altitude in meters.
ground_speed: Option<f32>Ground speed in meters per second.
ground_course: Option<f32>Ground course in degrees.
fix_mode: GnssFixStatusFix mode indicating 2D/3D fix or unknown.
hdop: Option<f32>Horizontal Dilution of Precision.
pdop: Option<f32>Position Dilution of Precision.
vdop: Option<f32>Vertical Dilution of Precision.
gps_in_view: Option<u8>Number of GPS satellites in view.
gnss_used: Option<u8>Number of GNSS satellites used in the fix.
glonass_in_view: Option<u8>Number of GLONASS satellites in view.
Trait Implementations§
Source§impl Clone for GnssPositionReport
impl Clone for GnssPositionReport
Source§fn clone(&self) -> GnssPositionReport
fn clone(&self) -> GnssPositionReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GnssPositionReport
impl Debug for GnssPositionReport
Source§impl<'de> Deserialize<'de> for GnssPositionReport
impl<'de> Deserialize<'de> for GnssPositionReport
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GnssPositionReport
impl PartialEq for GnssPositionReport
Source§impl Serialize for GnssPositionReport
impl Serialize for GnssPositionReport
impl StructuralPartialEq for GnssPositionReport
Auto Trait Implementations§
impl Freeze for GnssPositionReport
impl RefUnwindSafe for GnssPositionReport
impl Send for GnssPositionReport
impl Sync for GnssPositionReport
impl Unpin for GnssPositionReport
impl UnwindSafe for GnssPositionReport
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
Mutably borrows from an owned value. Read more