pub struct VhwData {
pub heading_true: Option<f64>,
pub heading_magnetic: Option<f64>,
pub relative_speed_knots: Option<f64>,
pub relative_speed_kmph: Option<f64>,
}
Expand description
VHW - Water speed and heading
https://gpsd.gitlab.io/gpsd/NMEA.html#_vhw_water_speed_and_heading
1 2 3 4 5 6 7 8 9
| | | | | | | | |
$--VHW,x.x,T,x.x,M,x.x,N,x.x,K*hh<CR><LF>
- Heading degrees, True
- T = True
- Heading degrees, Magnetic
- M = Magnetic
- Speed of vessel relative to the water, knots
- N = Knots
- Speed of vessel relative to the water, km/hr
- K = Kilometers
- Checksum
Note that this implementation follows the documentation published by gpsd
, but the GLOBALSAT documentation may have conflicting definitions.
[GLOBALSAT] describes a different format in which the first three fields are water-temperature measurements. It’s not clear which is correct.
Fields§
§heading_true: Option<f64>
Heading degrees, True
heading_magnetic: Option<f64>
Heading degrees, Magnetic
relative_speed_knots: Option<f64>
Speed of vessel relative to the water, knots
relative_speed_kmph: Option<f64>
Speed of vessel relative to the water, km/hr
Trait Implementations§
source§impl<'de> Deserialize<'de> for VhwData
impl<'de> Deserialize<'de> for VhwData
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<VhwData> for VhwData
impl PartialEq<VhwData> for VhwData
impl StructuralPartialEq for VhwData
Auto Trait Implementations§
impl RefUnwindSafe for VhwData
impl Send for VhwData
impl Sync for VhwData
impl Unpin for VhwData
impl UnwindSafe for VhwData
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