-
Notifications
You must be signed in to change notification settings - Fork 48
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
APB and BOD sentences not decoded according to SignalK spec #239
Comments
With regard to "navigation.courseRhumbline.nextPoint.ID" what should it be? if we get a consensus, I will fix APB |
Thanks for fixing! With regards to "navigation.courseRhumbline.nextPoint.ID", I think the code is doing the right thing but it needs to be added to the SignalK courseRhumbline spec |
Updating the specification to be inline with how its parsed in some of the nmea0183-signalk hooks. for example, APB. see: SignalK/nmea0183-signalk#239 This is a partial fix
The Code for APB has both "bearingTrackTrue" and "bearingOriginToDestinationTrue" this could be for legacy reasons, so I am reluctant to remove it unless @tkurki says it is OK to remove? See the Current code below: ` {
BOD already has:
Is this part fixed already? |
I've just retested APB, here's what I've found:
Incorrectly mapped to SignalK:
Not mapped to SignalK
Correctly mapped to SignalK:
|
OK, with regard to BOD, I will leave as is. On APB, I can correct the .nextpoint.bearingTrue/Magnetic entries and the .autopilot.targetHeadingTrue/Magnetic but I will wait until @tkurki comments about removal of .courseRhumbline.bearingOriginToDestinationTrue/Magnetic as this may need to be left for legacy reasons |
Looks like the legacy field names were directly copied using the APB field name instead of the SignalK field name. So it could be a simple typo. I agree we need to be careful removing fields in case someone is using the legacy field names. PyPilot springs to mind, I'll alert @seandepagnier |
It would also be prudent to consider the Course API which maintains both the V1 paths and the V2 paths. |
I've noticed a number of areas where the APB and BOD parsers don't follow the SignalK spec:
The APB parser incorrectly stores "bearing to next waypoint" to
navigation.courseRhumbline.bearingToDestinationTrue
which is not defined in the SignalK spec. Instead, it should be stored tonavigation.courseRhumbline.nextPoint.bearingTrue
.(Note, the RMB sentence also contains the same value and already stores it to the correct SignalK field).
Both the APB and BOD parsers incorrectly store "bearing from previous waypoint to next waypoint" to
navigation.courseRhumbline.bearingOriginToDestinationTrue
which is not defined in the SignalK spec. Instead, it should be stored tonavigation.courseRhumbline.bearingTrackTrue
.The APB sentence stores the next waypoint ID to
navigation.courseRhumbline.nextPoint.ID
. This field isn't mentioned in the SignalK spec, should it be added?The confusion is probably due to the NMEA spec mentioning "origin waypoint" and "destination waypoint". They actually mean previous and next waypoint, but it could easily be misinterpreted as the route starting point and final destination.
The text was updated successfully, but these errors were encountered: