-
Notifications
You must be signed in to change notification settings - Fork 31
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
PGN 129284: nextPoint latitude found null by navigation.js conversion callback but it is available in data browser #94
Comments
I think it can be solved changing the key transferred to callback in navigationdata.js line 37 from: |
The source for the navigation data is RMB - so I think the error has been introduced with SignalK/nmea0183-signalk@141bcbe. As far as I understand the RMB parser is now inline with the spec (although the documentation at https://signalk.org/specification/1.7.0/doc/vesselsBranch.html does not really describe the "position" property of nextPoint). |
In the SK schema things are already different: |
This fixed the issue for me. Thank you @dpazz |
That fixed it for me as well, thanks. Looks like #99 is the full fix. |
Ok but as of release v2.20.0 of the plugin the #99 fix hasn't already merged |
For some reason I have totally missed this conversation. I blame gmail for sometimes classifying email from github as spam. Anyway: as @wellenvogel pointed out above the V1 schema has
Conversion from PGN 129284 to Signal K is aligned with this and so is mostly conversion from NMEA 0183, with extra property I merged #99 so that should resolve this issue. |
If the "Navigation Data" option is enabled in the plugin this exception appears in the log:
![Screenshot(24)](https://private-user-images.githubusercontent.com/75132802/313489008-0d6885a4-4dab-4769-b5b8-3187a66e5257.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTc1NzMsIm5iZiI6MTczOTQ1NzI3MywicGF0aCI6Ii83NTEzMjgwMi8zMTM0ODkwMDgtMGQ2ODg1YTQtNGRhYi00NzY5LWI1YjgtMzE4N2E2NmU1MjU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE0MzQzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIyNWU3OWI1MTUwN2Y4OTdjODNiNGE3ZmIxYzk4MmJjOTkwODdjMWIxMzBhYWQ3ZGNjYTU2NzYyMDU4MjZjOGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.IZf7WoAxSz9PMOnqDzbffcO4rm165vNP3fR3Gwe7eGE)
Mar 17 17:23:55 TypeError: Cannot read properties of null (reading 'latitude') at callback (/home/pi/.signalk/node_modules/signalk-to-nmea2000/conversions/navigationdata.js:69:39) at /home/pi/.signalk/node_modules/signalk-to-nmea2000/index.js:209:44 at Next.valueF (/home/pi/.signalk/node_modules/baconjs/dist/Bacon.js:912:14) at Next.value (/home/pi/.signalk/node_modules/baconjs/dist/Bacon.js:901:31) at /home/pi/.signalk/node_modules/baconjs/dist/Bacon.js:1048:24 at /home/pi/.signalk/node_modules/baconjs/dist/Bacon.js:463:23 at processAfters (/home/pi/.signalk/node_modules/baconjs/dist/Bacon.js:359:11) at Object.inTransaction (/home/pi/.signalk/node_modules/baconjs/dist/Bacon.js:439:9) at Dispatcher.push (/home/pi/.signalk/node_modules/baconjs/dist/Bacon.js:1214:24) at Dispatcher.handleEvent (/home/pi/.signalk/node_modules/baconjs/dist/Bacon.js:1267:17) at /home/pi/.signalk/node_modules/baconjs/dist/Bacon.js:242:17 at /home/pi/.signalk/node_modules/baconjs/dist/Bacon.js:1787:17 at Timeout.sender [as _onTimeout] (/home/pi/.signalk/node_modules/baconjs/dist/Bacon.js:2242:14) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7)
But data required for conversion) are there (...nextPoint.position obj has a 'not null' latitude property), as is reported by Data Browser (see the attached screenshot). The signalk-server release is the last one (2.6.2) but I didn't looked to see if the exception occured in previous releases too.
The text was updated successfully, but these errors were encountered: