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

How to convert NMEA0183 sentence which needs different SKUpdates? #131

Open
ronzeiller opened this issue Feb 26, 2018 · 2 comments
Open
Labels

Comments

@ronzeiller
Copy link
Contributor

ronzeiller commented Feb 26, 2018

Some NMEA0183 need more than one SKUpdate, e.g. the RMC sentence which consists of:

UTC Time
Latitude
Longitude
Speed over ground, knots
Track made good, degrees true
Date, ddmmyy
Magnetic Variation, degrees

Or HDG:
Magnetic Sensor heading in degrees
Magnetic Deviation, degrees
Magnetic Deviation direction, E = Easterly, W = Westerly
Magnetic Variation degrees

But how to get these values?

BTW: Global Time would be nice too, then logfiles could get date & time

@sarfata
Copy link
Owner

sarfata commented Feb 27, 2018

@ronzeiller you can include all of this in one SKUpdate object. One SKUpdate can contain multiple values. For example the existing parseRMC function already includes SOG, COG, Latitude and Longitude.

Does that answer your question?

@ronzeiller
Copy link
Contributor Author

ronzeiller commented Feb 27, 2018

@sarfata
Sorry, I am afraid not.

We get from NMEA2000 different PGN which are in separated SKUpdate

  1. PGN 129025 Position, Rapid Update Lat/Lon
  2. PGN 129026 COG SOG rapid
  3. PGN 127258 Magnetic Variation (for this we even do not have SignalK if I remember right...)
  4. PGN 126992 UTC Time and Date (We do not have SKUpdate for this as a string is missing)

All those PGNs are needed to convert into one NMEA0183 sentence $IIRMC

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

No branches or pull requests

2 participants