-
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
XDR support #54
Comments
References: [["PTCH","deg","navigation.attitude_pitch"], ["WCHR","deg",""],//relative wind chill, ref /2/ |
From http://www.cruisersforum.com/forums/f13/openplotter-project-152754-31.html $YXXDR,C,7,C*54 - also from the nasa, outside temperature $OPXDR,C,17.4,C,ENGT_55 Temperatures Airmar device at http://www.airmartechnology.com/uploads/installguide/PB100TechnicalManual_rev1.007.pdf offers a format for their WIXDR sentence like this: $WIXDR,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,<10>,<11>,<12>,<13>,<14>,<15>,<16>*hh |
// Cruzpro YXXDR sentence |
I started work on this in my own fork of the repo: tkurki@0162913 In case anybody wants to help I can add you as collaborator, like I already added @joabakk and @fabdrol in case they can pitch in. |
The "official" sources for nmea 0183 sentences tend to repeat what Airmar notes in their manual. If you add a "compliant" example, I can help populate. I think it's valid to reference as many of these as possible, because there is bound to be conflicts over XDR |
See #58 |
How about a user configurable XDR translation controlled from a plugin? I have some old date from a self made compass, and for sure I won't use that format any more. But I'd like to get that data into use. |
Writing a new XDR mapping in javascript is not too many lines of code. Trying to make the same thing via a universal, configurable engine would take a lot more effort, with maybe very little gain. I would rather create a system where you can add XDR mappings as javascript files added to a directory. |
I follow you @tkurki. I'm just such a fan of the plugin mechanism, so I think of that for every purpose. I'll tweak your code to suit my one time need and we can keep it alive until someone takes up the ball. |
I wrote an XDR handler for the java server. Its not simple, and the whole XDR format is basically "I'll send what suits me and you work it out". Some awful stuff in there. It was never meant to be shared, just a way to send proprietary data over an existing protocol. |
Funny thing @rob42 I just discovered I was trying to decode your NMEA XDR from FreeIMU... I wondered where I got that reference |
:-) The FreeIMU XDR was an attempt to send the roll, pitch,yaw data in NMEA! |
The FreeIMU code predates signalk |
Any efforts to add XDR will in future be most appreciated by OCPN users. |
Have you tried the plugin https://www.npmjs.com/package/xdr-parser-plugin, available in the server's Appstore? One option is to create a "OCPN XDR Plugin" that would parse the same XDRs that O already understands. Or preconfiguration for xdr-parser-plugin for O's sentences. |
No, but I'll check. |
@tkurki |
To get proper support for XDR we could first document some of the sentences out there and then create a solution that works well for them and can be easily extended to cover other sentences.
In practice this is probably another mapping level not unlike the one we have for codecs.
The text was updated successfully, but these errors were encountered: