Registered User
Join Date: Jan 2011
Posts: 650
|
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.
|