-
Notifications
You must be signed in to change notification settings - Fork 3
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
nmea0183 left overs from OCPN #15
Comments
Good catch, thanks! Probably not just to remove, will fix somehow anyway. |
Filed OpenCPN/OpenCPN#3161. This actually reflects a bug in core OpenCPN and it should be solved there before we make anything here. If you have an immediate problem building a plugin I for now suggest the manual work around:
|
Your insights have taken this to higher level to find the root cause. |
I am preparing a PR for main opencpn. There is now an updated version of opencpn-libs available in the devel branch. Since you reported this, could you possibly test? Testing is done using something llike this:
EDIT: Of course, Plugin.cmake must be updated to actually use opencpn-libs for this to take effect. |
Yes, seems to work. I made a test on ais-vd_pi So now with api-18 I may start to find out out how to use N0183 listener. |
hm... I suppose you are about to re-read https://opencpn-manuals.github.io/main/opencpn-dev/plugin-messaging.html ? in that case, any feedback to that manual page is more than welcome, for example by editing it... |
Yes I tried to follow that but didn't succeed at first attempt. Partly some api-18 issues and partly I don't understand "what's not said" or there by implication. (Me novice) |
Please do. Zulip is probably a better channel for this. First step would be to check that your "rare message" is supported in src/comm_bridge.cpp , not each and every message type is handled here (I think). If you make this check quickly, we might be able to get a patch into 5.8.2 if it's required. |
Thanks for info about comm_bridge. I wasn't so far aware of that. I suppose transmit of a message out from the plugin will still be handled by "PushNMEABuffer()"? To zulip next? If so pls make a topic. |
Done: Testing 0183 messages on new API |
In present collection there are two files with a not valid "extern" reference creating build errors. The files are seldom used by plugins but still there.
..\opencpn-libs\nmea0183\src\apb.cpp. Take out the (extern) for int g_NMEAAPBPrecision
..\opencpn-libs\nmea0183\src\response.cpp. Take out the (extern) for wxString g_TalkerIdText
Error example:
The text was updated successfully, but these errors were encountered: