Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 06-11-2013, 08:09   #16
Registered User

Join Date: May 2012
Posts: 1,199
Re: DR Plugin - splitting up GPX route files

To avoid confusion I have started a new thread - DR construction using the Route Manager.

Mike

p.s. I am only hacking this stuff for my own education. But ... I do see a need for constructing DR positions along a route. And ... then I will be looking at the construction of EP positions using tidal current data! Looking being the operative word!
Rasbats is offline   Reply With Quote
Old 08-05-2015, 05:24   #17
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: DR Plugin - splitting up GPX route files

What has happened to this plugin? Perhaps it can be updated/enhanced by someone?
rgleason is offline   Reply With Quote
Old 30-10-2015, 07:45   #18
Registered User

Join Date: May 2012
Posts: 1,199
Re: DR Plugin - splitting up GPX route files

Rick ...

GitHub has been updated and DR_pi now compiles standalone for O 4.1.925+. Cmake alone always found WxWidgets 2.8.12 so I needed to use Cmake-GUI, set for 3.0.2. Still not able to build an installer package.

Modified CMakeLists.txt using Pavel's work as a template.

Mike
Rasbats is offline   Reply With Quote
Old 30-10-2015, 10:48   #19
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: DR Plugin - splitting up GPX route files

Great Mike. I'll git and give it a try! Thanks so much.
rgleason is offline   Reply With Quote
Old 02-11-2015, 15:40   #20
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: DR Plugin - splitting up GPX route files

Mike, It compiled successfully and I was able to package it.
I took a screenshot. I tried to put in a route name that actually exists and shows in Opencpn, and tell it to make a gpx with at 2 knots with 1 hour increments.
The plugin prompted for a name for a gpx file and then said it failed to load that file (?)

Have I got the process somewhat messed up here?
Attached Thumbnails
Click image for larger version

Name:	DR-Plugin.png
Views:	145
Size:	156.7 KB
ID:	112127  
rgleason is offline   Reply With Quote
Old 03-11-2015, 00:46   #21
Registered User

Join Date: May 2012
Posts: 1,199
Re: DR Plugin - splitting up GPX route files

As it stands the DR plugin is editing gpx files that have been saved on your pc. The route name is the name of the route within the GPX file.

Use Route Manager to export the route GPX.
Open DR and set the parameters.
Using DR_pi (Generate) select the GPX you exported.
With the second file dialogue save the GPX+DR as a different GPX file.
Use Route Manager to import the route + DR positions.

Previous discussion centred on building this capacity into route manager. With the enhancements made to the API recently it may be possible to avoid all the file read/save business.

The logic behind creating DR positions over a multi-leg route may be a useful start for someone working on an OpenCPN-Draw DR solution.

Mike
Rasbats is offline   Reply With Quote
Old 03-11-2015, 02:39   #22
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: DR Plugin - splitting up GPX route files

Thankyou Mike. I think I will put your Readme-Instruction above in a file.

Your observation that the code might be useful for creating DR positions over a multileg route might be useful in Opencpn-Draw is noted. Hope jon sees this. Can you explain your DR idea a little more completely? Thanks so much for your effort.
rgleason is offline   Reply With Quote
Old 03-11-2015, 04:07   #23
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: DR Plugin - splitting up GPX route files

Opencpn Beta File Thingie rguser rgpass
4.1.1022 PI Win directory
added DR_pi-0.1-ov4.1.1022-win32

For testing. It uses external routes in gpx.
First save an Opencpn route out to gps.
Then use it in the plugin.
This plugin was developed with an earlier API, so it can now be modified to use internal O routes...
rgleason is offline   Reply With Quote
Old 06-11-2015, 00:32   #24
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
Re: DR Plugin - splitting up GPX route files

Rick,
I have seen this and do have an idea of how to make it work in ocpn_draw_pi, however, I am currently trying to get exclusion/inclusion/none boundary code working and displaying so that this can then be used with the watchdog plugin. I think I will then have to do the watchdog plugin stuff so that it is usable. So I am afraid you will have to bear with me for a little while as I am slowly getting through the stuff and back up to speed after the cruise.

Can someone create a flyspray item for this?

Jon

Quote:
Originally Posted by rgleason View Post
Thankyou Mike. I think I will put your Readme-Instruction above in a file.

Your observation that the code might be useful for creating DR positions over a multileg route might be useful in Opencpn-Draw is noted. Hope jon sees this. Can you explain your DR idea a little more completely? Thanks so much for your effort.
jongough is offline   Reply With Quote
Old 06-11-2015, 10:08   #25
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: DR Plugin - splitting up GPX route files

Thanks Jon, I totally understand and will post a tracker item so we keep the idea. I am glad you understand it.
rgleason is offline   Reply With Quote
Old 02-05-2016, 05:04   #26
Registered User

Join Date: May 2012
Posts: 1,199
Re: DR Plugin - splitting up GPX route files

There is a report of DR_pi not working with the Mac OS.

Would appreciate it if the compiler of DR_pi for Mac could confirm it runs ok with version 4.2 of OpenCPN for Mac.

Thanks.

Mike
Rasbats is offline   Reply With Quote
Old 02-05-2016, 09:53   #27
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: DR Plugin - splitting up GPX route files

Quote:
Originally Posted by Rasbats View Post
There is a report of DR_pi not working with the Mac OS.

Would appreciate it if the compiler of DR_pi for Mac could confirm it runs ok with version 4.2 of OpenCPN for Mac.

Thanks.

Mike
Regarding the DR_pi file from http://opencpn.navnux.org/plugins/dr...Plugin_0.1.pkg it seems someone has forgotten to use the "install_name_tool" command when compiling. So this DR_pi looks at the wrong place for the wxWidgets libraries and does not start therefore.

Gerhard
CarCode is online now   Reply With Quote
Old 04-05-2016, 04:51   #28
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: DR Plugin - splitting up GPX route files

That is of course the easiest way to fix a problem.

Gerhard
Attached Thumbnails
Click image for larger version

Name:	404.png
Views:	143
Size:	41.1 KB
ID:	123692  
CarCode is online now   Reply With Quote
Old 04-05-2016, 05:38   #29
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: DR Plugin - splitting up GPX route files

Gerhard...
Thank you for discovering that the CDN takes time to synchronize the download endpoints, we wouldn't know that without your help.

Pavel
nohal is offline   Reply With Quote
Old 09-02-2019, 09:42   #30
Registered User

Join Date: May 2012
Posts: 1,199
Re: DR Plugin - splitting up GPX route files

GitHub has been updated with a new version of DR_pi, for testing with OpenCPN 5.0.

DR_pi 2.1 now calculates DR positions for a multi-leg route.

A Windows release is available:

https://github.com/Rasbats/DR_pi/releases/tag/v2.1

TODO: Use SVG for icons.

Mike
Rasbats is offline   Reply With Quote
Reply

Tags
plug, route


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Advertise Here


All times are GMT -7. The time now is 12:54.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.