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 14-06-2014, 19:01   #1
Registered User

Join Date: Jan 2011
Posts: 670
Severe problem with sending BTW to Raymarine Autopilot

Hi Dave and others. It's your "abuse tester" here, always going where no others dare.

I've discovered a serious problem with sending bearing to waypoint (BTW) data from OpenCPN to my Raymarine ST4000+ autopilot. I did not post this in the beta thread, because I have confirmed that the same problem happens in stable release 3.2.2. I do believe that this problem did NOT previously happen in 2.5.1, which I was using in 2012.

I have, on occasion, wanted to run my boat in "Track mode," where OpenCPN sends a pre-programmed route to my autopilot. This worked flawlessly in 2012 using version 2.5.1 (I believe), but it has not worked in 2013 (v3.2.2) or this year (v3.3.1606). Since last year, every time I attempt to put my autopilot into track mode, it initiates a turn to port of over 20°. Recently I began to suspect some issue with magnetic variation, and today I confirmed repeatedly that the autopilot wants to turn exactly 24° to port. This is significant, because in my sailing area the magnetic variation is 12°, exactly half the error that I am seeing.

For example, today I was headed back to home port. Just to demonstrate this fact, I activated a route that clearly shows that BTW is 48° true (See "This Leg - BRG):



In my area with 12°W variation, 48° true = 60° mag. However, my autopilot is getting BTW of 36° mag, 24° less than it should be getting, hence the 24° turn to port:



Here is a sample of the NMEA log. It sure looks like OpenCPN is outputting 36° mag to the autopilot:

Code:
$ECRMB,A,0.012,L,011,012,3950.598,N,07521.071,W,0.861,48.180,2.200,V*33
$ECRMC,143109,A,3950.024,N,07521.905,W,2.200,60.800,140614,12.000,W*66
$ECAPB,A,A,0.012,L,N,V,V,37.069,M,012,36.180,M,36.180,M*11
$ECRMB,A,0.012,L,011,012,3950.598,N,07521.071,W,0.861,48.180,2.200,V*33
$ECRMC,143109,A,3950.024,N,07521.905,W,2.200,60.800,140614,12.000,W*66
$ECAPB,A,A,0.012,L,N,V,V,37.069,M,012,36.180,M,36.180,M*11
$GPVTG,060.8,T,072.9,M,002.2,N,0004.1,K*79
$GPVTG,060.8,T,072.9,M,002.2,N,0004.1,K*79
!AIVDM,1,1,,A,15N;TUP000rWcq<FmR=<B17f0<0p,0*2B
!AIVDM,1,1,,A,15N;TUP000rWcq<FmR=<B17f0<0p,0*2B
$ECRMB,A,0.012,L,011,012,3950.598,N,07521.071,W,0.861,48.180,2.200,V*33
$ECRMC,143110,A,3950.024,N,07521.905,W,2.200,60.800,140614,12.000,W*6E
$ECAPB,A,A,0.012,L,N,V,V,37.069,M,012,36.180,M,36.180,M*11
$ECRMB,A,0.012,L,011,012,3950.598,N,07521.071,W,0.861,48.180,2.200,V*33
$ECRMC,143110,A,3950.024,N,07521.905,W,2.200,60.800,140614,12.000,W*6E
$ECAPB,A,A,0.012,L,N,V,V,37.069,M,012,36.180,M,36.180,M*11
$GPRMC,143054,A,3950.0252,N,07521.9046,W,002.2,057.5,140614,012.0,W*73
$GPRMC,143054,A,3950.0252,N,07521.9046,W,002.2,057.5,140614,012.0,W*73
$GPGGA,143054,3950.0252,N,07521.9046,W,2,08,0.9,4.0,M,-33.6,M,,*7A
$GPGGA,143054,3950.0252,N,07521.9046,W,2,08,0.9,4.0,M,-33.6,M,,*7A
$GPGSA,A,3,14,16,20,23,25,29,31,32,,,,,1.3,0.9,0.9*3E
$GPGSA,A,3,14,16,20,23,25,29,31,32,,,,,1.3,0.9,0.9*3E
$GPGSV,2,1,08,14,24,124,43,16,39,205,38,20,34,283,37,23,23,310,36*7F
$GPGSV,2,1,08,14,24,124,43,16,39,205,38,20,34,283,37,23,23,310,36*7F
$GPGSV,2,2,08,25,11,042,28,29,22,070,45,31,61,037,45,32,46,231,33*74
$GPGSV,2,2,08,25,11,042,28,29,22,070,45,31,61,037,45,32,46,231,33*74
$GPGLL,3950.0252,N,07521.9046,W,143054,A*3F
$GPGLL,3950.0252,N,07521.9046,W,143054,A*3F
$GPVTG,057.5,T,069.5,M,002.2,N,0004.1,K*76
$GPVTG,057.5,T,069.5,M,002.2,N,0004.1,K*76
As for settings, I just noticed that the check box for "Use magnetic bearings in output sentence ECAPB was checked. I don't remember having done this, so I either did it inadvertently or it defaulted to checked at some point when I upgraded.

I do recall reading about an issue with Simrad devices. Is this the same problem? Or does fixing the Simrad problem have the opposite effect (magnetic variation in the wrong direction) on other devices?

FWIW, I tried changing "Assumed magnetic variation" from 12° to 0°, then restarting OpenCPN, but this change had no apparent effect on the BTW problem.
RhythmDoctor is offline   Reply With Quote
Old 14-06-2014, 19:26   #2
Registered User

Join Date: Jan 2011
Posts: 670
Re: Severe problem with sending BTW to Raymarine Autopilot

Guys,

I may have been premature in stating that the same problem occurs with 3.2.2. I'm going through the log files for that version (I ran it today on my old Netbook), and it appears that the ECAPB sentence was transmitted with "true" BTW, and that the autopilot correctly added 12° to the true value. Had I entered track mode at that time, the boat would have tracked properly.

Of course, 3.2.2 does not have the option check box to transmit magnetic data. So it appears that the problem is limited to 3.3.xxxx, where there is that new option. And I would say that it simply applies the variation in the wrong direction, except that I did experiment with changing the variation to 0 and it had no effect on the BTW that the autopilot received.

Does any of this give you some hints of what I should try next?
RhythmDoctor is offline   Reply With Quote
Old 14-06-2014, 20:57   #3
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: Severe problem with sending BTW to Raymarine Autopilot

RD...
This should be fixed in https://github.com/OpenCPN/OpenCPN/c...ebb206925f2acd
Can you try a newer beta?

Pavel
nohal is offline   Reply With Quote
Reply

Tags
raymarine, autopilot, marine


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
OpenCPN not sending NMEA autopilot sentences. Islander OpenCPN 6 16-04-2014 07:02
BTW: Who Cancelled Hurricane Season This Year? Cheechako Health, Safety & Related Gear 14 03-12-2013 15:03
Statistic on hw many people travel around the world with boat btw 36 to 42 ft Gpolar Destinations 7 14-05-2013 17:41
Sending 'Go to Here' Active Route to an Autopilot Sail323 OpenCPN 11 01-08-2011 15:44

Advertise Here


All times are GMT -7. The time now is 23:50.


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.