AeroRust / nmea

NMEA 0183 - for communication between marine electronics such as echo sounder, sonars, anemometer, gyrocompass, autopilot, GNSS receivers and many other types of instruments. Defined and controlled by the National Marine Electronics Association (NMEA)
https://crates.io/crates/nmea
Other
56 stars 41 forks source link

Add VHW sentence parser #84

Closed ekuinox closed 1 year ago

ekuinox commented 1 year ago

54 Implements parser for VHW sentence.

Different definitions seem to exist, but for the time being, the implementation follows gpsd.

[GLOBALSAT] describes a different format in which the first three fields are water-temperature measurements. It’s not clear which is correct.

From https://gpsd.gitlab.io/gpsd/NMEA.html#_vhw_water_speed_and_heading

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 95.83% and project coverage change: +0.33 :tada:

Comparison is base (750e0a9) 80.39% compared to head (c0139e5) 80.72%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #84 +/- ## ========================================== + Coverage 80.39% 80.72% +0.33% ========================================== Files 29 30 +1 Lines 1076 1100 +24 ========================================== + Hits 865 888 +23 - Misses 211 212 +1 ``` | [Impacted Files](https://codecov.io/gh/AeroRust/nmea/pull/84?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AeroRust) | Coverage Δ | | |---|---|---| | [src/lib.rs](https://codecov.io/gh/AeroRust/nmea/pull/84?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AeroRust#diff-c3JjL2xpYi5ycw==) | `0.00% <ø> (ø)` | | | [src/parser.rs](https://codecov.io/gh/AeroRust/nmea/pull/84?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AeroRust#diff-c3JjL3BhcnNlci5ycw==) | `77.30% <0.00%> (-0.30%)` | :arrow_down: | | [src/sentences/mod.rs](https://codecov.io/gh/AeroRust/nmea/pull/84?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AeroRust#diff-c3JjL3NlbnRlbmNlcy9tb2QucnM=) | `0.00% <ø> (ø)` | | | [src/parse.rs](https://codecov.io/gh/AeroRust/nmea/pull/84?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AeroRust#diff-c3JjL3BhcnNlLnJz) | `71.95% <100.00%> (+0.70%)` | :arrow_up: | | [src/sentences/vhw.rs](https://codecov.io/gh/AeroRust/nmea/pull/84?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AeroRust#diff-c3JjL3NlbnRlbmNlcy92aHcucnM=) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AeroRust). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AeroRust)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

elpiel commented 1 year ago

Thank you for your PR!