Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 16-02-2015, 12:41   #61
Registered User

Join Date: Nov 2014
Location: Netherlands
Posts: 179
Re: Plugin Polar

I see that the load routine is not very robust for other polar files.
It works OK for reloading saved files but it does not handle different files correctly.
Have to look into that.

Peter
__________________

__________________
ptulp is offline   Reply With Quote
Old 17-02-2015, 15:40   #62
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,333
Re: Plugin Polar

Peter,
I have looked at both .pol files that load and the Weather_routing .csv files and there is not a significant difference in formatting other than the following:

Wx_routing .csv VS .pol
-------------------------------------------
Beginning twa/tws VS TWA/TWD
Spacer ; VS Tab
End of lines CR LF vs CR LF

It seems to me that if the plugin were to read either format that might solve the problem.

I must admit that I find it difficult to replace ";" with "Tab" and test it, because Notepad ++ does not do that search and replace, but I can replace ";" with 4 spaces and that does not seem to work.

The CR LF is the same for both versions.
__________________

__________________
rgleason is online now   Reply With Quote
Old 17-02-2015, 16:09   #63
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,333
Re: Plugin Polar

I found one recorded Nmea file in OpenCPN File Thingie NMEA folder that does work with "Polar" plugin
the name of that file is not surprizingly "Konni-Wind-AIS.txt"

This file works with
Source: "GPS" Mode: "Data from Nmea" and playing VDR "Konni-Wind-AIS.txt" having the NMEA Debug Window checked to be sure there is data running.
Then the polars are filled in.

This file also works with
Source: "GPS" Mode: "Data from VDR" and selecting "Konni-Wind-AIS.txt" directly
and a window pops up "Loading Nmea messages from file" Then the polars are filled in quite quickly.

PLEASE NOTE that "Data from VDR" should be called "Data from file" because VDR is not involved.

I think that the Hartmut file should work, because it works fine with the Windows Polar Program called "Polauto" so I think that the Polar plugin is not using all nmea statements that can be available or something.
__________________
rgleason is online now   Reply With Quote
Old 17-02-2015, 16:14   #64
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,333
Re: Plugin Polar

Note that Pacupstart.txt works with GPS and Speedo,

but the Hartmut file does not work even though I have done extensive tests using that file with Polauto.

Also VDR_Simulation.txt works with speedo only.

VDR_AIS-File.txt also works with speedo and GPS

I have not tested logbooks files yet nor Have I tested the filters.
__________________
rgleason is online now   Reply With Quote
Old 18-02-2015, 03:54   #65
Registered User

Join Date: Nov 2014
Location: Netherlands
Posts: 179
Re: Plugin Polar

Is there a location where to find these VDR files you are mentioning?
__________________
ptulp is offline   Reply With Quote
Old 18-02-2015, 04:59   #66
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,333
Re: Plugin Polar

These files are in the Nmea folder on opencpn beta file thingie. See the link above.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________
rgleason is online now   Reply With Quote
Old 18-02-2015, 05:37   #67
Registered User

Join Date: Nov 2014
Location: Netherlands
Posts: 179
Re: Plugin Polar

Rick

The Harmut file has a 0 at the beginning of every line.
If I run it in the VDR plugin, I don't see any indication on the dashboard although you see the messages coming by in the NMEA debug window.
So I don't think that they are accepted by OpenCPN.
I have a modified Harmut file without the zeros and I see output in the polar plugin.

The VDR-Simulation file does not contain the RMC NMEA messages needed for the GPS speed.

I will make an update for the Load from VDR to Load from File remark.

Peter
__________________
ptulp is offline   Reply With Quote
Old 18-02-2015, 05:53   #68
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,333
Re: Plugin Polar

Peter, I should have checked Harmut file. I guess it got corrupted somehow with the 0's. I will change it as you did and hopefully it will work. Was very good for testing Polauto.
Thanks.
__________________
rgleason is online now   Reply With Quote
Old 18-02-2015, 06:14   #69
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,333
Re: Plugin Polar

Peter, Is there any chance the Weather_Routing polar.csv files could be supported?
There are just a few differences as far as I can determine. The twa/tws vs TWA/TWS
and the delimiter ";" vs [Tab]

See Plugin Polar
__________________
rgleason is online now   Reply With Quote
Old 18-02-2015, 16:14   #70
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,333
Re: Plugin Polar

Fixed Harmut-Netherlands-Markermeer-Wind-AIS.zip (needs to be unzipped) so that there are not 0$ and 0! at the beginning and the file now works fine with Polar_pi.
Uploaded to OpenCPN Beta File Thingie NMEA subdir.

Thanks

Next need to try the filters and to understand them.
__________________
rgleason is online now   Reply With Quote
Old 19-02-2015, 04:47   #71
Registered User

Join Date: Nov 2014
Location: Netherlands
Posts: 179
Re: Plugin Polar

I just updated the polar_pi plugin on

https://github.com/ptulp/polar_pi/releases/tag/v1.1001

Had to update the version number to reflect the patch number in OCPN.
Updated the load routine to be more robust.
Updated the wind direction in 5 degree steps.
Added colour reference for windspeed
Changed Load from VDR to Load from File

Executables for OSX, Ubuntu 64/32 can be found on above webpage.
Cannot compile for windows,.

Peter
__________________
ptulp is offline   Reply With Quote
Old 19-02-2015, 13:07   #72
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,333
Re: Plugin Polar

Peter,
Have git fetch and git pull and compiled. Running the new version loads weather_routing CSV boat polars much much better. Thank you.
Will test other parts later. Have uploaded to OpenCPN Beta File Thingie rguser rgpass
Look under folder 4.0 Win PI

I will upload some of these polar files as examples for use and testing later. Thanks Peter.
__________________
rgleason is online now   Reply With Quote
Old 19-02-2015, 15:16   #73
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,333
Re: Plugin Polar

Have just tried the average filter on the Harmut file. It appears to work, as it is taking longer with multiple calcs showing in the polar, and the results are different.

I have been trying to find out if I can import Harmut data or some other data into Logbook so that I can test it as a source. Have not found that capability (maybe I have not looked hard enough?).

Anyway it would be very helpful if someone had recorded some data in the logbook that will be useful to create polars and if they could rename to .doc and upload here or to the upload folder in OpenCPN File Thingie so we can test Logbook Konni as a source of nmea data.

Thanks.
__________________
rgleason is online now   Reply With Quote
Old 19-02-2015, 15:17   #74
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,333
Re: Plugin Polar

Thanks for the color reference very helpful.

""Updated the wind direction in 5 degree steps."
Would it be possible to enable selection in 5 degree steps as well?

Thanks Peter.
__________________
rgleason is online now   Reply With Quote
Old 19-02-2015, 15:25   #75
Registered User

Join Date: Nov 2014
Location: Netherlands
Posts: 179
Re: Plugin Polar

Quote:
Originally Posted by rgleason View Post
""Updated the wind direction in 5 degree steps."
Would it be possible to enable selection in 5 degree steps as well?
Do you mean the selection of the degrees like 5, 10 and 15 degrees??
__________________

__________________
ptulp is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 11:31.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.