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 16-06-2024, 17:58   #91
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 3,117
Re: About the AutoTrackRaymarine Plugin

Quote:
Originally Posted by stevead View Post
I'm sure Douwe will correct me if I am mistaken.

My understanding is that the plugin does not use the Raymarine Track Mode.

When OpenCPN is navigating to a waypoint or following a route, the plugin engages Auto mode, performs its own steering calculations based on bearing and xte values from OpenCPN and adjusts the heading accordingly.

It does not generate PGN's 129283 (XTE) or 129284 (Navigation) messages, which is why selecting Track mode on the autopilot control head generates the "No Navigation Data" error.
Ahh, that makes sense. I will have to test it while underway instead of at the dock then.

However, I still can't do that with OCPN crashing every 5 minutes. Tested on 3 different Laptops. No issues until the AutoTrackRaymarine plugin is enabled.
__________________
-Warren
wholybee is offline   Reply With Quote
Old 17-06-2024, 02:17   #92
Registered User

Join Date: Oct 2011
Location: Apeldoorn
Boat: Ovni 385
Posts: 338
Re: About the AutoTrackRaymarine Plugin

Quote:
Originally Posted by wholybee View Post
Ahh, that makes sense. I will have to test it while underway instead of at the dock then.

However, I still can't do that with OCPN crashing every 5 minutes. Tested on 3 different Laptops. No issues until the AutoTrackRaymarine plugin is enabled.
I have tested and used the AutoTrackRaymarine plugin on O5.9.1 using the Actisense NGT-1 controller for nmea2000 access on O. No problems, all works fine.

An easy way to test the AutoTrackRaymarine plugin at the dock is to just use the remote control function. Click "Auto" on the plugin screen, pilot should switch to auto, then "Standby" to switch to standby again. If this functions, communication with the pilot works. Your problem could be in the YD interface.

Regarding the crash, can you get me an opencpn.log file?
Douwe Fokkema is offline   Reply With Quote
Old 17-06-2024, 02:52   #93
Registered User

Join Date: Oct 2011
Location: Apeldoorn
Boat: Ovni 385
Posts: 338
Re: About the AutoTrackRaymarine Plugin

Besides this, to activate "Tracking" mode a route in OpenCPN must be active. The plugin will then steer to the active waypoint.
Do you also experience the crash of O with version 5.8.4? Or does it work fine there?
Douwe Fokkema is offline   Reply With Quote
Old 17-06-2024, 09:34   #94
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 3,117
Re: About the AutoTrackRaymarine Plugin

Quote:
Originally Posted by Douwe Fokkema View Post
Besides this, to activate "Tracking" mode a route in OpenCPN must be active. The plugin will then steer to the active waypoint.
Do you also experience the crash of O with version 5.8.4? Or does it work fine there?
I am using the beta 5.9.1 that includes N2k via Ethernet. I suspect the issue is actually in the OCPN code relating to the Ethernet communication.

I am able to put the Autopilot in Auto or Standby with the plugin, so it probably works. I am just used to using the pilot with NMEA0183 where the head would go into track mode.

I can get the logs the next time I am at the boat.
__________________
-Warren
wholybee is offline   Reply With Quote
Old 23-06-2024, 12:53   #95
Registered User

Join Date: Jul 2019
Posts: 7
Re: About the AutoTrackRaymarine Plugin

Hi Douwe, Rick,

I tried to reproduce the issue, but all worked fine. However, i may have found a clue to what happened.
Please take a look at the attached picture. This is what happened:
Running in tracking mode to point A i activated the next waypoint B. Instead of getting a BTW to port and point B, i got a sharp turn to starboard to point X from where the BTW to B was picked up again.
So the BTW to next waypoint is calculated from the previous WP, resulting in an unexpected XTE, where i would expect the BTW to be calculated from the current position.
Attached Thumbnails
Click image for larger version

Name:	AutoPilot.jpg
Views:	4
Size:	15.9 KB
ID:	291220  
DukeOfAnkh is offline   Reply With Quote
Old 24-06-2024, 05:03   #96
Registered User

Join Date: Oct 2011
Location: Apeldoorn
Boat: Ovni 385
Posts: 338
Re: About the AutoTrackRaymarine Plugin

Quote:
Originally Posted by DukeOfAnkh View Post
Hi Douwe, Rick,

I tried to reproduce the issue, but all worked fine. However, i may have found a clue to what happened.
Please take a look at the attached picture. This is what happened:
Running in tracking mode to point A i activated the next waypoint B. Instead of getting a BTW to port and point B, i got a sharp turn to starboard to point X from where the BTW to B was picked up again.
So the BTW to next waypoint is calculated from the previous WP, resulting in an unexpected XTE, where i would expect the BTW to be calculated from the current position.
Very clever, this could indeed be the issue. However, this would mean the BTW is calculated from the previous WP to the active WP. But when I look at the calculations in O this is not the case, the BTW is always calculated from the current ship's position. But when a next WP is activated, the XTE may suddenly increase. This is because the XTE will be calculated relative to the new route segment, which may extend before the WP that was just passed. I have made a diagnostic version of the plugin with a lot of logging, Rick is now using this version and so will I coming days when sailing. Hopefully I can pinpoint the issue from this logging and verify Duke's idea.

Douwe
Douwe Fokkema is offline   Reply With Quote
Old 24-06-2024, 11:16   #97
Registered User

Join Date: Oct 2023
Posts: 34
Re: About the AutoTrackRaymarine Plugin

Very clever observation Duke. And Douwe's analysis makes sense too. From memory, the side to which she wanted to turn was consistent with the extension line that Duke draws on his diagram.

I was supposed to cast off tomorrow but our buddy boat has issues, so I'm delayed by a few days waiting for them. But, I will be getting out this week for sure and have the logging version installed and ready to do some playing around. I'll keep an eye out for Duke's specific behavior too. I'll probably have logs for Douwe by the weekend.

Douwe it occurs to me that I should mention that I'm using the Yacht Devices YDNU-02 USB/SeaTalk Gateway as my interface. It appears to work flawlessly but you're better to determine that than I. (NOTE TO ALL: I'm using the very latest version of this unit which has new firmware to allow it work in this setup. Earlier versions likely do not work). https://www.yachtd.com/products/usb_gateway.html I don't suspect this device is to blame but best to share that information.

Douwe: Also note the YD developers say in their manual/documentation that they are happy and eager to work with third party developers to integrate products, and to offer their advice and input for free. (Hopefully not required and no expectation of you doing so).
Rick Welin is offline   Reply With Quote
Old 30-06-2024, 11:38   #98
Registered User

Join Date: Oct 2011
Location: Apeldoorn
Boat: Ovni 385
Posts: 338
Re: About the AutoTrackRaymarine Plugin

The AutoTrackRaymarine plugin requires a magnetic variation. This is because the autopilot requires magnetic headings. Therefor the WMM plugin should always be enabled. Without the WMM plugin active, results may become unpredictable. In the next version of the AutoTrackRaymarine plugin I will build a check and a warning to activate WMM if not active.

It is also better to first activate a route in OpenCPN before setting the AutoTrackRaymarine plugin to tracking. In the other order proper startup may be difficult. In the next version I will disable the Tracking function if no route has been activated.
Douwe Fokkema is offline   Reply With Quote
Old 30-06-2024, 14:11   #99
Registered User

Join Date: Oct 2023
Posts: 34
Re: About the AutoTrackRaymarine Plugin

Yes, Douwe did some troubleshooting from my logs off-list (thank you Douwe) and saw that OpenCPN was sending random variations sometimes 70 or 100 degrees off because I didnt have the WMM plug-in enabled. This could be the cause of my random issues. I will be testing tomorrow, and will follow up here.

With slow speed boats (7 knots here) this is not a big deal, but imagine a high speed craft at 30-50 knots randomly steering 15 degrees of rudder.

Not Douwe's fault. OpenCPN should not be issuing random numbers without a warning. At the very least it should display a warning on boot-up: "WHEN CONTROLLING AN AUTOPILOT THE WMM PLUGIN MUST BE ENABLED"

Douwe, on your next update is it possible to have AutoTrack run a check for WMM as well?
Rick Welin is offline   Reply With Quote
Old 30-06-2024, 17:28   #100
Registered User

Join Date: Oct 2023
Posts: 34
Re: About the AutoTrackRaymarine Plugin

Quote:
Originally Posted by Rick Welin View Post
Douwe, on your next update is it possible to have AutoTrack run a check for WMM as well?
Oops I misread.. Douwe already said he's planning to this
Rick Welin is offline   Reply With Quote
Old 30-06-2024, 23:35   #101
Registered User

Join Date: Oct 2011
Location: Apeldoorn
Boat: Ovni 385
Posts: 338
Re: About the AutoTrackRaymarine Plugin

Quote:
Originally Posted by Rick Welin View Post
Y

Not Douwe's fault. OpenCPN should not be issuing random numbers without a warning.
Small correction, OpenCPN does not send random numbers for the variation when the variation is not available, it sends a value that is "not a number". There should be a check on that. When you enter a calculation with such a value, the result is undefined.
Douwe Fokkema is offline   Reply With Quote
Old Yesterday, 01:39   #102
Registered User

Join Date: Oct 2011
Location: Apeldoorn
Boat: Ovni 385
Posts: 338
Re: About the AutoTrackRaymarine Plugin

I checked the code of the AutoTrackRaymarine plugin, it is some years ago I made this. Currently there is a check on the validity of the variation. In case no variation is available the field "Heading" shows "no variation" and the field "Track" shows "nan". That means that in Rick's case there may have been another faulty source of the variation. This could be a chart plotter or any other device on the network transmitting variation data (YD?). Nevertheless activating WMM should cure this, at least I expect WMM to have priority in OpenCPN.
Douwe Fokkema is offline   Reply With Quote
Old Yesterday, 08:33   #103
Registered User

Join Date: Oct 2023
Posts: 34
Re: About the AutoTrackRaymarine Plugin

Thanks Douwe, Good information. I'm just about to weigh anchor to return to port so I'll do some more testing today. I'll keep an eye out for No Variation notice as well.

Quote:
Originally Posted by Douwe Fokkema View Post
I checked the code of the AutoTrackRaymarine plugin, it is some years ago I made this. Currently there is a check on the validity of the variation. In case no variation is available the field "Heading" shows "no variation" and the field "Track" shows "nan". That means that in Rick's case there may have been another faulty source of the variation. This could be a chart plotter or any other device on the network transmitting variation data (YD?). Nevertheless activating WMM should cure this, at least I expect WMM to have priority in OpenCPN.
Rick Welin is offline   Reply With Quote
Old Today, 07:29   #104
Registered User

Join Date: Oct 2011
Location: Apeldoorn
Boat: Ovni 385
Posts: 338
Re: About the AutoTrackRaymarine Plugin

Quote:
Originally Posted by Rick Welin View Post
Thanks Douwe, Good information. I'm just about to weigh anchor to return to port so I'll do some more testing today. I'll keep an eye out for No Variation notice as well.
This is more complicated than I thought. I could not find in the manuals how the prioritizing of variation sources functions in O. But from the code it seems that WMM has no priority over nmea0183 or nmea2000 inputs. From your logfile I conclude that something is sending variation data to O. Variation values I saw are -105, 58, and 0 degrees. It is possible to set a default variation value in the opencpn.ini file, but this value is used with lowest priority. In your opencpn.ini file there is a line: PriorityVariation=nmea2000 COM5:204;127250| From this line I tend to conclude that the system is receiving (or has once received) variation data from a nmea2000 pgn 127250. I do not know which devices in your network are transmitting this sentence. But the Raymarine EV-1 does, may be also a plotter. On the P70 control head it is possible to set a variation value. But I do not know if the EV1 transmits this variation value to anyone on the network. And the received variation that I saw is varying, strange. You are using a YachtDevices YDNU-2, in theory also this device could generate errors, you never know.
Douwe Fokkema is offline   Reply With Quote
Old Today, 12:20   #105
Registered User

Join Date: Oct 2023
Posts: 34
Re: About the AutoTrackRaymarine Plugin

I've sent Douwe some more logs from my trip yesterday to verify, but I can say that AutoTrack seemed to perform properly on my trip back with the WMM plugin on. But we should wait for Douwe's assessment.
Rick Welin is offline   Reply With Quote
Reply

Tags
marine, plug, plugin, raymarine


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 646 Yesterday 11:36
No o-chart plugin in option/plugin Semich OpenCPN 1 16-05-2022 08:12
[Plugin] How to start developping a plugin thousand_sunny OpenCPN 3 29-09-2020 09:10
OpenCPN PlugIn Development bdbcat OpenCPN 161 04-09-2019 12:50
Plugin development... How to receive chart objects in my plugin? dmartinez OpenCPN 6 04-08-2017 00:56

Advertise Here


All times are GMT -7. The time now is 16:20.


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.