You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`VHW` - Water speed and heading (feature: `water`)
39
+
-`VTG` - * Track made good and Ground speed (feature: `GNSS`)
40
+
-`WNC` - Distance - Waypoint to waypoint (feature: `waypoint`)
41
+
-`ZDA` - Time & Date - UTC, day, month, year and local time zone (feature: `other`)
42
+
-`ZFO` - UTC & Time from origin Waypoint (feature: `waypoint`)
43
+
-`ZTG` - UTC & Time to Destination Waypoint (feature: `waypoint`)
51
44
52
45
**\*[`Nmea::parse()`] supported sentences**
53
46
@@ -59,10 +52,19 @@ We have an ongoing effort to support as many sentences from `NMEA 0183` as possi
59
52
starting with the most well-known.
60
53
If you'd like to contribute by writing a parser for a given message, check out the [Supporting additional sentences (AeroRust/nmea#54)](https://github.com/AeroRust/nmea/issues/54) issue and contribute in **3** easy steps:
61
54
62
-
1. Write a comment - Please write a comment in the issue for the sentence(s) you'd like to implement, you will be mentioned on the task to avoid duplicate implementations.
63
-
2. Implement each sentence alongside at least 1 test in its own module under the [`./src/sentences`](./src/sentences) directory using the `nom` crate.
55
+
1. Write a comment in the issue for the sentence(s) you'd like to implement, you will be mentioned on the task to avoid duplicate efforts.
56
+
2. Implement each sentence in it's own branch alongside:
57
+
- At least **2 tests** (**1 passing** and **1 failing**) in its own module under the [`./src/sentences`](./src/sentences) directory using the `nom` crate.
58
+
- Re-export the structures and parsing function in [`./src/sentences.rs`](./src/sentences.rs)
59
+
- Add a **passing** test to [`tests/all_supported_messages.rs`](./tests/all_supported_messages.rs)
60
+
- Add the sentence to the features list in `Cargo.toml` in **alphabetical order** and assign it to proper category (if you are unsure which category to use, open a PR to discuss it)
61
+
- Add the sentence to the `README.md` list of [supported sentences above](./README.md#nmea-0183-sentence-parser-for-rust)
62
+
- Passing linters checks. Just run `cargo fmt` and fix any issues raised by `cargo clippy`
63
+
- Appropriate documentation following the rest of the sentences format. For proper documentation you can take a look at `GSV`, `APA` and `WNC` sentences.
64
64
3. Open a PR 🎉
65
65
66
+
**NB:** We use [https://gpsd.gitlab.io/gpsd/NMEA.html](https://gpsd.gitlab.io/gpsd/NMEA.html) as a reference for most sentences as it's a very well documented project.
67
+
66
68
## What is NMEA 0183?
67
69
68
70
> NMEA 0183 is a combined electrical and data specification for communication
0 commit comments