Cruisers Forum
 


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 30-09-2010, 12:44   #1
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
New History Plugin for OpenCPN

I wanted a quick easy way to analyse my sailboat's autosteering abilities. For this I need a log of gps positions and and a way to easily plot them. With the patch I have, this has become reality (with a few clicks) from opencpn, but I believe more improvements could be made, and there are many more features to add (like calculating the optimal tack angle etc...)

For a demo I used my solar powered electric trolling motor to move around the anchorage and obtained the following screenshots

1. course with respect to time
2. speed with respect to time
3. latitude with respect to longitude
4. screenshot showing interface


As well as plotting ability, it is possible to store the data to a text file, and also plot the trail (breadcrumb) plus show a more accurate predictor which is based on history rather than current position, speed and course.

What other improvements could be made? I will post the patch shortly (still doing improvements)
Attached Thumbnails
Click image for larger version

Name:	course.png
Views:	351
Size:	69.7 KB
ID:	19703   Click image for larger version

Name:	speed.png
Views:	284
Size:	77.8 KB
ID:	19704  

Click image for larger version

Name:	latlon.png
Views:	298
Size:	46.3 KB
ID:	19705   Click image for larger version

Name:	historyplugin.png
Views:	332
Size:	171.6 KB
ID:	19706  

seandepagnier is offline   Reply With Quote
Old 30-09-2010, 12:57   #2
Registered User

Join Date: Oct 2008
Location: San Diego, CA
Boat: Beneteau Oceanis 38.1
Posts: 284
Wow, that is really cool!

Since you asked for suggestions, how about programmed heading versus actual heading with respect to time, in other words a delta between the intended course to steer and the actual? That would give you a really good idea how well the autopilot is working. You could do the same with actual track versus expected track if steering off a waypoint.
gjorgensen is offline   Reply With Quote
Old 30-09-2010, 13:09   #3
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
It is already possible to plot rate of change of heading which I did not show the plot of. This plot makes it pretty easy to see how straight you are steering.

I was thinking about taking the fourier transform of heading so that you could see how the wave tendencies and autosteering time constants match up. For stuff like jib-sheet steering, it would be cool to get quick feedback so you can adjust the sheets and tension the bungee appropriately. Same for pendulum wind vanes.. I want to vary the vane size as well as the counterweight as well as helm offset and gain (position along tiller the lines pull) and this way I can get feedback.

Of course, steering the straightest course is not everything, the distance made good over ground may well be greater if the autosteering uses the waves to propulsion advantage weaving back and forth between them.
seandepagnier is offline   Reply With Quote
Old 30-09-2010, 14:08   #4
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
Quote:
Originally Posted by gjorgensen View Post
Wow, that is really cool!
+1
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 01-10-2010, 05:23   #5
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
This is really cool. If you have access to a Raymarine X-5 system the computer has these algorithms for tacking already build in but you need wind speed data inputs. So it automatically calculates the best time to tack based on wind direction, angle, and speed over ground. Perhaps there is some help.

Congratulations. This is very cool,.
sailias is offline   Reply With Quote
Old 01-10-2010, 06:45   #6
Registered User

Join Date: Jan 2010
Location: Montevideo, Uruguay
Posts: 242
Really neat.

I would suggest polar plots on heading, to avoid the not very nice crossover lines between 359 and 1. Or even more easily, don't plot between these two headings.

I attach an example.
Attached Thumbnails
Click image for larger version

Name:	auto_15.png
Views:	220
Size:	5.2 KB
ID:	19715  
dpons is offline   Reply With Quote
Old 01-10-2010, 08:41   #7
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
I'll add an option for polar plots for heading.

I do not have access to a Raymarine X-5, is it open source? Eventually I will be implementing electronic sheet control which should help pointing ability and overall speed (as wind speed changes)

As far as wind speed/direction, magnetic heading, speed through water, gyroscopes and accelerometers (wave action) etc... (all the data gps does not cover) I have all the hardware to do this, but opencpn needs a better interface for reading this data, and publishing it to plugins. Preferably supporting as many systems as possible.

If anyone knows, please explain how some sailing algorithms could work (maybe that is my next plugin) I could optimize gps speed over ground by slight variations in heading and sheets. But everything changes based on currents and windspeed (or if you reef), but it should still be useful, and pointing angle will change based on it. Maybe we can build support into opencpn to automatically calculate routes that avoid water too shallow for your draft, take advantage of tides/currents, and automatically calculate tack angles and when to do so.
seandepagnier is offline   Reply With Quote
Old 01-10-2010, 11:46   #8
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
CapCode-software suite for sailors | Download CapCode-software suite for sailors software for free at SourceForge.net <- capcode has polars in (free software) java
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 01-10-2010, 13:01   #9
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Wrt to Raymarine Im pretty sure its an emedded linux. Will check. Basically how they do it is as follows from the stuff I read in the manual. Assume you are at point A and want to get to point B. Assume as straight vector. Now with the input of windspeed and direction it gives you the best course to head to Point B. As you accellerate you gain speed but also move away from Point B to a degree. The algorithm determines the best time along the course/track to tack to maintain optimum speed and shortest distance to Point B. Tack and then the calculation repeats again on this second tack.

Basically I think its just vectors but above my math skills at present.
sailias is offline   Reply With Quote
Old 01-10-2010, 13:12   #10
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
I fixed some problems, but it probably wont work in windows, I am posting the patch if anyone wants to test it.
Attached Files
File Type: doc opencpn_history_plugin_10012010.patch.doc (53.8 KB, 91 views)
seandepagnier is offline   Reply With Quote
Old 01-10-2010, 13:48   #11
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Get the patch here: (not above)

FS#135 : history plugin for opencpn
seandepagnier is offline   Reply With Quote
Old 04-10-2010, 14:11   #12
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
apologies for the nubie question but applying the patch with patch < filename.patch barfed for the first chunch and then proceeded for the rest. Im assuming this is a git thing....so any instruction on how to apply this patch would be most welcomed.

Best regards and thanks

/ch
sailias is offline   Reply With Quote
Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin: DashBoard SethDart OpenCPN 644 02-04-2024 16:55
OpenCPN PlugIn Development bdbcat OpenCPN 161 04-09-2019 12:50
BSB 4 PlugIn bdbcat OpenCPN 98 25-04-2018 18:46
Writing Plugin for nv.digital Map Format ? Netsurfer OpenCPN 7 17-08-2010 16:09
A Brief History of CF GordMay Forum News & Announcements 57 10-01-2009 15:44

Advertise Here


All times are GMT -7. The time now is 03:18.


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.