At the moment OpenCPN
does not support plotting of Great Circle and Composite Routes. According to the documentation
, it requires an external application. (Great Circle and Composite Routes | Official OpenCPN Homepage
My plan is to close this gap, by writing a plugin for OpenCPN
that enables plotting of Great Circle and Composite Routes directly via the Gui. Working from the source code of existing plugins I have coded a "Hello World" plugin, with both menu and config menu to Wxformbuilder form.
Currently I am working out how to add routes to OpenCPN. I have worked my way through ocpn_plugin.h, but I could not find a direct function to enter waypoints or routes into OpenCPN.
My next approach was to use the NMEA
data stream to write a route
to OpenCPN. I created a pair of virtual com ports
, and recorded a route
exported with OpenCPN to GPS
. ($GPWPL,3734.013,N,02402.569,E,003*66 etc). I then played this NMEA
data stream (which I had saved to file) back to OpenCPN with VDR plugin. Unfortunately OpenCPN did not use the NMEA data to plot the route.
Other than writing the route to GPX file, which the user than manually needs to open, I am running out of ideas to add a route to OCPN from the plugin API. Dave/Nohal/SethDarth or other developers: any ideas how to implement this? Thank you for your support
My code & NMEA text file is in github: https://github.com/SaltyPaws/route_pi