Skip to content
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

RMC sentence missing field 12, Status - NMEA v2.3 and later #39

Open
jmattioni opened this issue Sep 25, 2022 · 2 comments
Open

RMC sentence missing field 12, Status - NMEA v2.3 and later #39

jmattioni opened this issue Sep 25, 2022 · 2 comments

Comments

@jmattioni
Copy link

A new field (12, FAA Mode Indicator) was added to the RMC sentence in NMEA v2.3. The Set and Parse for this sentence should support this new field.

The content of this field is a single status character: A - Data Valid, or V - Data Invalid. Some devices expecting this field will ignore the entire message if field 12 is missing.

Reference: OpenCPN:
https://www.opencpn.org/wiki/dokuwiki/doku.php?id=opencpn:opencpn_user_manual:advanced_features:nmea_sentences

@ttlappalainen
Copy link
Owner

Sorry for delay - have been busy with N2k.

It could be in this way:
bool NMEA0183SetRMC(tNMEA0183Msg &NMEA0183Msg, double GPSTime, double Latitude, double Longitude,
double TrueCOG, double SOG, unsigned long DaysSince1970, double Variation,
char FAAModeIndicator, char NavStatus, const char *Src="GP");

inline bool NMEA0183SetRMC(tNMEA0183Msg &NMEA0183Msg, double GPSTime, double Latitude, double Longitude,
double TrueCOG, double SOG, unsigned long DaysSince1970, double Variation, const char *Src="GP") {
NMEA0183SetRMC(NMEA0183Msg,GPSTime,Latitude,Longitude,TrueCOG,SOG,DaysSince1970,Variation,0,0,Src);
}

Then you would have new interface to set FAA indicator and also NMEA 4.1 NavStatus. If set to 0, fields will not be populated. So this would not change behavious in case old interface has been used.

@jmattioni
Copy link
Author

jmattioni commented Oct 3, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants