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
Regardless of the sentence type, if it is correct as NMEA0183, one would expect it to be parsed using nmea::parse_nmea_sentence, but parsing fails if it is not included in SentenceType.
I don't have any ideas about what to do with the existing PGRMZ, but would it be possible to add an enumerator like VendorExtension(&str) to the SentenceType to handle it?
The text was updated successfully, but these errors were encountered:
There's definitely a place for improvement here. It makes sense to keep our current validation process - if we don't have a parser for the sentences - return an error, however, we could improve the vendor specific sentences although not sure what you envision for it.
PGRMZ is the only Vendor specific sentences and I think it's a good time to discuss how we should handle them
Ok, so my current line of thought is to allow a callback for parsing unknown sentences, which will be great to the user as they will add the vendor-specific sentences instead of us.
A few things to consider:
Re-export nom
Re-export common functions for parsing various parts of a sentence, maybe we will start without this as we are not sure which common parsing fns are needed
Regardless of the sentence type, if it is correct as NMEA0183, one would expect it to be parsed using
nmea::parse_nmea_sentence
, but parsing fails if it is not included inSentenceType
.I don't have any ideas about what to do with the existing
PGRMZ
, but would it be possible to add an enumerator likeVendorExtension(&str)
to theSentenceType
to handle it?The text was updated successfully, but these errors were encountered: