Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
70-persistent-usb-gp..> | 2012-10-31 17:44 | 2.7K | ||
OpenCPN-devices.png | 2012-10-31 17:46 | 217K | ||
chart1.cpp | 2012-10-31 18:32 | 361K | ||
opencpn_3.0.0-1_i386..> | 2012-10-31 18:40 | 26M | ||
Goal:
1) improve device scanning and propose the end-user with more logical choice.
2) allow device dedicated plugin to add the name in selection list.
Changes:
Updated chart1.cpp code to be compliant with scandir function.
Move all filtering and devices selection into "paternFilter" new function.
Create a "paternAdd" function to allow external pluging to register specific device paterns (ex: ait2000)
To find my code search for "FULUP devices selection with scandir" string, the only modified function is "EnumerateSerialPorts"
How to test:
Replace "chart1.cpp in your opencpn/src and recompile
Ubuntu 12.04/32 may use provided prebuilt package.
Check for PNG to see a screenshot rendering
Other improvement:
I think that when no valid device are found, we could not propose a default list as we know they wont work !!!
Udev rules
To built dedicated name for your GPS upload http://www.fridu.org/images/opencpn/70-persistent-usb-gps.rules
Note: I'm not a WTX expert, and I'm sure that function related to WTX string handling could be improved.