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 28-02-2018, 08:13   #16
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: autopilot route plugin

Sean this is the problem:
Opencpn v 4.99.0
autopilot_route_pi compiled with opencpn.lib api 1.15
Attached Thumbnails
Click image for larger version

Name:	Screenshot (37).jpg
Views:	170
Size:	245.4 KB
ID:	165107   Click image for larger version

Name:	Screenshot (38).jpg
Views:	185
Size:	260.7 KB
ID:	165108  

rgleason is offline   Reply With Quote
Old 28-02-2018, 09:08   #17
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: autopilot route plugin

rick,

You cannot use the older lib. You need to use the git version of opencpn with that lib for this plugin to work.
seandepagnier is offline   Reply With Quote
Old 28-02-2018, 15:35   #18
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: autopilot route plugin

Quote:
Originally Posted by boat_alexandra View Post
rick,

You cannot use the older lib. You need to use the git version of opencpn with that lib for this plugin to work.
Of course not. That is what I did. I copied the opencpn.lib from v4.99.0 to the plugin build directory. Then I get that message after compile.

I can try it again if you want.... I have done this several times I believe.
rgleason is offline   Reply With Quote
Old 28-02-2018, 15:51   #19
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: autopilot route plugin

Here is the PR
https://github.com/OpenCPN/OpenCPN/c...2b74d52ac088c7

It appears to affect ocpn_plugin.h
do I need that file?

Also I may be using the API 115 version of opencpn.lib from a version after 4.8.2 but before v4.99.0.
I can no longer build Opencpn after v 4.8.2 as the files have been changed for use with MSVC++ 2017 and wxwidgets 3.1.1
rgleason is offline   Reply With Quote
Old 04-03-2018, 11:27   #20
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: autopilot route plugin

Although these plugins are not Beta, I've added them to the Dev > Beta Plugins list:

Sean's Autopilot Route Plugin


and Bernd Cirotzki's Autopilot Raymarine Plugin working first version


The documentation is minimal at this point.
rgleason is offline   Reply With Quote
Old 12-05-2018, 05:33   #21
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: autopilot route plugin

Sean has updated his Autopilot_Route_pi
https://opencpn.org/wiki/dokuwiki/do...pilot_route_pi
The wiki page for this Beta Plugin is here


Sorry, I posted that notice to the wrong thread! This is the correct thread.

Sean advises:
Quote:
The autopilot route plugin capable of steering under sail in harbors is used in my video:
https://youtu.be/KQuBwLSMSxI

We need someone experienced with this plugin to augment the plugin manual!
rgleason is offline   Reply With Quote
Old 23-08-2018, 12:01   #22
Registered User

Join Date: Nov 2015
Posts: 30
Re: Arrival alarm autopilot route plugin

I hope this is the right forum for this discussion!

While experimenting with my ST4000 autopilot in TRACK mode using ROUTES defined in OpenCPN I thought it would be useful to incorporate an arrival alarm.

Now for starters the ST4000 does alarm on arrival at a waypoint within a route, the autopilot does not advance to the next waypoint until until arrival is acknowledge by pressing the TRACK button (the literature indicates that the purpose was to confirm conditions ie. traffic/right of way before the course change. Seems reasonable.

In my example (I can think of others) waypoints were selected before and after crossing a traffic lane or ship channel. The radius of the arrival is of course is a default property of the route waypoint (Arrival Radius) but, this feature does not alarm at the Nav Station, only at the Autopilot Control Head.

It seems that an OpenCPN alarm would be a good idea.

I was wondering if we should be able to generate a Watchdog Alarm for the ACTIVE ROUTE/ACTIVE WAYPOINT on arrival

This might be something like an anchor watch but exclusion vs. inclusion. Or like a AIS style guard zone that is triggered by the LAT/LON of the ACTIVE WAYPOINT as your vessel approaches the mark. So, the alarm could be either a property of the vessel or the target waypoint whichever is more efficient to code/implement.

Besides establishing the right of way safety of the new course, this alarm may trigger pre-arrival activities also important for safe operation on the new heading (reefing and sail changes, sail dousing, more hands on deck, transfer to diesel power) power) comfortably before the actual course change.



COMMENTS?????
BILLY_BUDD is offline   Reply With Quote
Old 23-08-2018, 17:28   #23
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: autopilot route plugin

Quote:
I was wondering if we should be able to generate a Watchdog Alarm for the ACTIVE ROUTE/ACTIVE WAYPOINT on arrival

Yes, download it and try.
https://opencpn.org/wiki/dokuwiki/do...afety:watchdog
rgleason is offline   Reply With Quote
Old 26-08-2018, 22:11   #24
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Arrival alarm autopilot route plugin

Quote:
Originally Posted by BILLY_BUDD View Post
I hope this is the right forum for this discussion!

While experimenting with my ST4000 autopilot in TRACK mode using ROUTES defined in OpenCPN I thought it would be useful to incorporate an arrival alarm.

Now for starters the ST4000 does alarm on arrival at a waypoint within a route, the autopilot does not advance to the next waypoint until until arrival is acknowledge by pressing the TRACK button (the literature indicates that the purpose was to confirm conditions ie. traffic/right of way before the course change. Seems reasonable.
This seems unreasonable to me. I just sailed up a winding river and there was no traffic. Presumably you are adjusting sails at course changes already not actually sleeping although this might be possible on downwind course changes.

Furthermore, under autopilot, the course is already changing all of the time by to a greater or lesser degree. Otherwise cross track error, and arrival radius wouldn't exist, because the autopilot would be perfect and not need these. Therefore the argument for verifying it is safe to change course actually applies for holding the same course under autopilot, so either way you need to make sure it is safe, so acknowledging is annoying.

So... the autopilot route plugin has confirmation as optional.. to me, this is just extra thing to click all the time and I would never use it.
Quote:
In my example (I can think of others) waypoints were selected before and after crossing a traffic lane or ship channel. The radius of the arrival is of course is a default property of the route waypoint (Arrival Radius) but, this feature does not alarm at the Nav Station, only at the Autopilot Control Head.

It seems that an OpenCPN alarm would be a good idea.
I was wondering if we should be able to generate a Watchdog Alarm for the ACTIVE ROUTE/ACTIVE WAYPOINT on arrival
This seems like a good idea for a watchdog plugin alarm. It is not difficult to do. I just implemented pypilot specific autopilot alarms for watchdog, but nothing to do with route following yet.
Quote:

This might be something like an anchor watch but exclusion vs. inclusion. Or like a AIS style guard zone that is triggered by the LAT/LON of the ACTIVE WAYPOINT as your vessel approaches the mark. So, the alarm could be either a property of the vessel or the target waypoint whichever is more efficient to code/implement.
I am thinking the alarm would go off whenever the boat enters the arrival radius of any waypoint on the active route. An option would make it only trigger on the final waypoint if you wanted a separate alarm or only alarm at the end.
Quote:
Besides establishing the right of way safety of the new course, this alarm may trigger pre-arrival activities also important for safe operation on the new heading (reefing and sail changes, sail dousing, more hands on deck, transfer to diesel power) power) comfortably before the actual course change.
Do you want a different alarm radius than the normal arrival radius??

Should it be able to alarm a certain estimated time before the waypoint arrival?

Should it have an option to alarm only if the boat is likely to jibe or tack at the waypoint (turn through the wind) ?


What about alarm if the autopilot fails to follow the route? This could be caused by many possible reasons, like autopilot switched off, or the route being too hard on the wind.

What about alarm if the cross track error exceeds a certain value?

What about alarm if ais detects a ship that will maybe collide along the intended route if we make those turns?
seandepagnier is offline   Reply With Quote
Old 28-08-2018, 02:47   #25
Registered User

Join Date: Nov 2015
Posts: 30
Re: autopilot route plugin

A. This seems like a good idea for a watchdog plugin alarm. It is not difficult to do. I just implemented pypilot specific autopilot alarms for watchdog, but nothing to do with route following yet.

Agree. Watchdog feels like the right place

B. I am thinking the alarm would go off whenever the boat enters the arrival radius of any waypoint on the active route. An option would make it only trigger on the final waypoint if you wanted a separate alarm or only alarm at the end.

Yes. Does the Arrival Radius have any other associated functions? Does the alarm radius trigger communication of the next course? Or is that handled some other way? Google maps uses a different technique on the highway for this concept. Ie. “Exit right in half a mile. “. Why? To allow the drive time for any maneuvers to facilitate the future command. Whatever they may be, speed up, slow down, execute lane changes. We are all comfortable with this technique. We may or may not wish to use voice interpreters. After all we have the liberty of taking our eyes off the road.

C. Do you want a different alarm radius than the normal arrival radius??

I think for our purposes, the alarm when necessary would be somewhat anticipatory in nature. And in open water, not always required. To cut down on the nuisance alarms.

D. Should it be able to alarm a certain estimated time before the waypoint arrival?

See above, time or distance doesn’t matter to me. I thought allowing the active waypoint to alarm a forward looking guard zone might be an elegant way to accomplish much of there considerations. Alarm distance, alarm reset, and alarm update to new destination on arrival.

E. Should it have an option to alarm only if the boat is likely to jibe or tack at the waypoint (turn through the wind) ?

A nice idea but maybe a future if we fall in love with simple notification.

F. What about alarm if the autopilot fails to follow the route? This could be caused by many possible reasons, like autopilot switched off, or the route being too hard on the wind.

This is more to the point. In turning over control of the vessel, what command information is critical to success! You may find yourself using autopilot to address casualties personal or mechanical. As such supervisory alarms could/would be a great idea!

G. What about alarm if the cross track error exceeds a certain value?

See above. There is a watchdog course alarm but, maybe we could bundle it better under to general concept of Route Management.

H. What about alarm if ais detects a ship that will maybe collide along the intended route if we make those turns?

Another great idea since AIS do not alarm if boats have parallel courses, I have seen where a minor course change will quickly set off a collision risk. This is especially true of operation near harbor entrance with fast moving cargo and cruise ships. You can’t hang at the nav station all day watching to see if a close call will develop. With the speed of cruise ships and large commercial vessels they can be on you in a heart beat. It’s a good idea to decide to stay clear in a forward thinking manner. Since for the most part they will be unwilling or unable to change course and speed.

Note: As an aside. Is it possible to imagine Watchdog handling other useful alarm conditions. Engine temperature rate of rise, bilge pump running nonstop? For instance most boats will not reveal that they are taking on water until their feet tell them and the continuously running bilge pump has been overwhelmed.
BILLY_BUDD is offline   Reply With Quote
Old 28-08-2018, 08:13   #26
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: autopilot route plugin

Quote:
Originally Posted by BILLY_BUDD View Post
Agree. Watchdog feels like the right place

B. I am thinking the alarm would go off whenever the boat enters the arrival radius of any waypoint on the active route. An option would make it only trigger on the final waypoint if you wanted a separate alarm or only alarm at the end.

Yes. Does the Arrival Radius have any other associated functions? Does the alarm radius trigger communication of the next course? Or is that handled some other way? Google maps uses a different technique on the highway for this concept. Ie. “Exit right in half a mile. “. Why? To allow the drive time for any maneuvers to facilitate the future command. Whatever they may be, speed up, slow down, execute lane changes. We are all comfortable with this technique. We may or may not wish to use voice interpreters. After all we have the liberty of taking our eyes off the road.
With standard route following, as soon as you reach the arrival radius, the next waypoint is activated. If confirmation is required, it will not activate until confirmed.

With the autopilot route plugin, there is an additional route following mode "Route Position Bearing" mode. In this mode, arrival radius is not used. Instead, the autopilot follows a continuous course along the route. This has several advantages, mostly it gives smoother turns, and doesn't overshoot turns the way standard route following logic because there are no discontinuities at each waypoint. It is much easier to tune as you can set the radius smaller for tight areas. This is the mode I usually use with good results.

Quote:
F. What about alarm if the autopilot fails to follow the route? This could be caused by many possible reasons, like autopilot switched off, or the route being too hard on the wind.

This is more to the point. In turning over control of the vessel, what command information is critical to success! You may find yourself using autopilot to address casualties personal or mechanical. As such supervisory alarms could/would be a great idea!
There is already autopilot alarm if the heading error exceeds a certain value, but nothing to do with failure to stay on the route.
Quote:
G. What about alarm if the cross track error exceeds a certain value?

See above. There is a watchdog course alarm but, maybe we could bundle it better under to general concept of Route Management.
The course alarm is not to be confused with future route alarms. These are completely separate... the course alarm is simpler and has nothing to do with routes.
Quote:
H. What about alarm if ais detects a ship that will maybe collide along the intended route if we make those turns?

Another great idea since AIS do not alarm if boats have parallel courses, I have seen where a minor course change will quickly set off a collision risk. This is especially true of operation near harbor entrance with fast moving cargo and cruise ships. You can’t hang at the nav station all day watching to see if a close call will develop. With the speed of cruise ships and large commercial vessels they can be on you in a heart beat. It’s a good idea to decide to stay clear in a forward thinking manner. Since for the most part they will be unwilling or unable to change course and speed.
as far as I know, AIS does not transmit the intended route of the other vessels, so ths would be limited to comparing their course and speed with our own speed and intended route. It is difficult also because our speed may change when our route changes due to currents, or different wind angle.
Quote:
Note: As an aside. Is it possible to imagine Watchdog handling other useful alarm conditions. Engine temperature rate of rise, bilge pump running nonstop? For instance most boats will not reveal that they are taking on water until their feet tell them and the continuously running bilge pump has been overwhelmed.
Yes sure, this is probably a good discussion for the watchdog thread.
seandepagnier is offline   Reply With Quote
Old 03-09-2018, 06:07   #27
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: autopilot route plugin

Sean has updated his Pypilot Autopilot Route 0.3.0 plugin. It compiles and opens in Opencpn, but I have not tested it.
rgleason is offline   Reply With Quote
Old 12-01-2019, 23:10   #28
Registered User

Join Date: Jan 2019
Posts: 2
Re: autopilot route plugin

Hi, I tried installing the autopilot route plugin but didn't succeed. I built it directly from the git library last updated Aug 28 2018. There were a few errors building it but finally managed after updating to wxWidgets 3.0.2 Linux 32 bit wxGTK.

I am using OpenCPN version 4.8.8 Build 2018-11-06 and getting the following error message in the log:

21:11:30 PST: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libautopilot_route_pi.so
21:11:30 PST: Error: /usr/lib/opencpn/libautopilot_route_pi.so: undefined symbol: _Z26PlugInHandleAutopilotRouteb
21:11:30 PST: PlugInManager: Cannot load library: /usr/lib/opencpn/libautopilot_route_pi.so

I suspect it has to do with the wxWidgets version that built the library.

Any tips on how to fix this?

Thanks!
donovanes is offline   Reply With Quote
Old 15-01-2019, 12:17   #29
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: autopilot route plugin

Quote:
Originally Posted by donovanes View Post
Hi, I tried installing the autopilot route plugin but didn't succeed. I built it directly from the git library last updated Aug 28 2018. There were a few errors building it but finally managed after updating to wxWidgets 3.0.2 Linux 32 bit wxGTK.

I am using OpenCPN version 4.8.8 Build 2018-11-06 and getting the following error message in the log:

21:11:30 PST: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libautopilot_route_pi.so
21:11:30 PST: Error: /usr/lib/opencpn/libautopilot_route_pi.so: undefined symbol: _Z26PlugInHandleAutopilotRouteb
21:11:30 PST: PlugInManager: Cannot load library: /usr/lib/opencpn/libautopilot_route_pi.so

I suspect it has to do with the wxWidgets version that built the library.

Any tips on how to fix this?

Thanks!



This is a symbol in opencpn. Did you build opencpn from git?
seandepagnier is offline   Reply With Quote
Old 15-01-2019, 12:59   #30
Registered User

Join Date: Jan 2019
Posts: 2
Re: autopilot route plugin

OpenCPN is from the Openplotter distribution (1.02)
donovanes is offline   Reply With Quote
Reply

Tags
autopilot, 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Convert "*.route" Route File into ".*wpt" File To Be Used in Maxsea V.10 doiroda Navigation 7 12-03-2020 06:00
DR Plugin - splitting up GPX route files Rasbats OpenCPN 30 09-02-2019 11:42
Plugin development... How to receive chart objects in my plugin? dmartinez OpenCPN 6 04-08-2017 00:56
Accessing active route data in the Plugin interface? Brett Muir OpenCPN 2 07-07-2016 17:34
Broken download link, Route plugin Northern Irelan OpenCPN 1 21-04-2015 16:32

Advertise Here


All times are GMT -7. The time now is 17:36.


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.