-
Notifications
You must be signed in to change notification settings - Fork 69
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
Feat: add satellites definition to GNSS object in navigation group (non-breaking) #572
base: master
Are you sure you want to change the base?
Conversation
Imho all spec additions need corresponding sample/test data, making sense of json schema is hard enough. It says satellites in view. How do satellites get purged from full? What about when you have more than one gps? Is the data set the same regardless of the positioning system? I would like to see this addition tied to concrete implementations in n2k-signalk and nmea0183 parser. Using Furthermore it would be great to exercise this data to create a sample ui, perhaps a map of the sky, like gps Devices show? |
@tkurki we had some discussion about the merits of providing test data and use cases as you suggested in your post. I think it's a bad order to provide implementation before specification, as I strongly believe that implementation should follow specification. Also, I think that demanding implementation in order to test specification will slow down changes massively. That said, I will commit to making PRs in n2k-signalk and nmea0138 parser once this is approved and part of the specification. In order to answer your questions about GPS data (which are relevant to this PR, imo), I've asked @paul_dy to weigh in on the questions about GPS systems in general, and about test data. |
Here is some test data - from our GPS160 in "Tri-Nav" professional mode which shows the latest GNSS sentences. Note the different Talker IDs - GP = GPS, GA = Galileo, GL = GLONASS and GN = GNSS (combined). The actual position sentences are GN as they are calculated using all three constellations, while the GSV sentences have the relevant talker ID based on which satellite signals it is related to. I could set the GPS160 to a GPS, GALILEO or GLONASS only mode and then the Talker ID for all sentences would be GP, GA or GL (as applicable). The GSA sentence lists all satellite PRNs for the satellites used in the position fix, while the GSV sentences show the status of all of the satellites currently in view. You would need to purge all no longer used satellites from Full, every second so Full only lists the satellites currently in view. The datasets NMEA0183 or NMEA2000 should be the same for all GNSS systems, assuming correct adoption of the standard. If you had multiple GNSS systems on the boat, each one could be outputting this level of data and so you would need to support multiple sources. |
I’m agreement that this is the time to go and do the implementation. That way you can validate that the spec is complete before merging it. Too many times something comes up in implementation that was missed when writing the spec. |
I was referring to example/test full & delta data in this comment. We have previously merged schema PRs that were not actually doing what they were supposed to. TDD, you know. And I would start the TDD process from real world data in 0183 parser, now that Paul has graciously provided some. If I were to start SK in Github today I'd seriously consider a monorepo approach. Then the NMEA0183, N2K and specification changes could be a single PR, bringing the RI and specification forward in atomic steps. Not that it needs atomicity, just trying to demonstrate the thinking that the spec and RI should move forward together. We still have inconsistencies that you've witnessed yourself like SignalK/signalk-server#1076 from adding stuff to the specification and failing to match it in implementation. See #562 for an example of trying to practise what I'm preaching here.
Things are slowed down by not following up on the PRs and/or getting stuck in debate. My questions above still remain unanswered... |
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.
See #163 for earlier work in this direction. |
This PR implements the following paths in the
navigation
group, with the goal of making it possible to express the satellites of a GNSS fix in Signal K. Use cases include:The PR would add the following paths to the specification, without breaking anything else:
Satellites are identified by PRN code, which is unique to each satellite.
signalToNoiseRatio
has a unitdB
(decibells), which is not a SI base unit, but sanctioned by SI anyway.