There remains the problem of exporting GPX waypoints and routes to my Garmin
GPSMAP 4010 chartplotter
directly from OpenCPN
. The main program code is pretty complicated and I was unable to modify this.
Taking another path I played with GPSBabel and the many options available. This program can be run from a command line.
The oBabel plugin is a front end for the GPSBabel executable - gpsbabel.exe.
To use the plugin you need to have installed GPSBabel on your pc. Using the plugin for the first time you have to locate the program .exe.
There are two main sources for exporting to the chartplotter
: KML from OpenCPN
(right-click on a waypoint or route), or a GPX created by OpenCPN or another program.
Using KML a right-click on the clipboard of the plugin will transfer that data to the clipboard, which can then be sent to the plotter.
produced from KML will be named after the waypoints in the KML.
Choosing oGPX displays a file dialog for choosing the GPX you have exported from OpenCPN. The route
name is the same as the one made in route properties in OpenCPN.
The Windows compiled plugin oBabel_pi.dll is attached. This works with both O3.2.2 and O4.0.0 (Win). The plotter needs to be connected before OpenCPN is started, so that the comport is detected. If using Windows 8.1 some Prolific USB/Serial converters will not work (Mine!).
Source code is here: https://github.com/Rasbats/oBabel
I tried to make a standalone installer for the plugin without success. Help is needed! And also for Linux
compilations. Not sure if the comport will be detected with Linux
Only tested with Windows and the Garmin
GPSMAP 4010. It would be easy to add other makes of plotter. Users of the GPSBabel program alongside OpenCPN could assist by describing the options needed.
This plugin was made to avoid the need to leave OpenCPN and use another transfer program, like EasyGPS.
I have tried to remove redundant code from other work but some may remain. Help in de-cluttering would be appreciated.