pub struct GpsSensor {
pub status: Option<SensorStatus>,
pub fix_type: Option<GpsFixType>,
pub satellites: Option<u32>,
pub hdop: Option<f64>,
pub vdop: Option<f64>,
pub pdop: Option<f64>,
pub horizontal_accuracy_m: Option<f64>,
pub vertical_accuracy_m: Option<f64>,
pub speed_mps: Option<f64>,
pub course_deg: Option<f64>,
}Expand description
GPS sensor information.
Fields§
§status: Option<SensorStatus>Sensor status
fix_type: Option<GpsFixType>Fix type
satellites: Option<u32>Number of satellites
hdop: Option<f64>HDOP (horizontal dilution of precision)
vdop: Option<f64>VDOP (vertical dilution of precision)
pdop: Option<f64>PDOP (position dilution of precision)
horizontal_accuracy_m: Option<f64>Horizontal accuracy in meters
vertical_accuracy_m: Option<f64>Vertical accuracy in meters
speed_mps: Option<f64>Speed over ground in m/s
course_deg: Option<f64>Course over ground in degrees
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GpsSensor
impl<'de> Deserialize<'de> for GpsSensor
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
Auto Trait Implementations§
impl Freeze for GpsSensor
impl RefUnwindSafe for GpsSensor
impl Send for GpsSensor
impl Sync for GpsSensor
impl Unpin for GpsSensor
impl UnwindSafe for GpsSensor
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