-
-
Notifications
You must be signed in to change notification settings - Fork 91
Support additional nmea messages #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
PTNL is parent to e.g. AVR, BPQ, DG, EVT, GGK, PJK, PJT, VGK, VHD
…fullYear, month, day, hours, minutes, seconds, milliseconds, DateTimeKind.Utc)
dotMorten
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dpt, Xdr and Hdt (the latter being deprecated) are the only ones part of the NMEA spec.
The others seem to rely on an odd Trimble pattern that I think would require some adjustments to the underlying library for how messages like that are being identified since they rely on multiple columns. I'm not really in favor of hardcoding those into the message parser, but would prefer you first open an discussing the need for parsing messages like that, and then probably keep these messages locally as message extensions in the application and not in the NMEA library itself.
| /// </para> | ||
| /// </remarks> | ||
| [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "HeHdt")] | ||
| [NmeaMessageType("--HDT")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the NMEA spec HDT is a deprecated message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you which me to revert it?
I can just create it locally in my project if you think it should not be part of this library.
| [TestMethod] | ||
| public void TestDPT() | ||
| { | ||
| string input = "$--DPT,149.5,000.5,1000.0*7F"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really how a real world message looks with the -- prefix and no talker-id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, my data looks like that.
I agree with your reasoning. PTNL,GGK and AML,SVM are different since they rely on the two first part of the message in order to identify what kind of message it is. I will remove them from this PR. |
Write parsers and tests for new NMEA messages: