Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 20-04-2010, 20:45   #1
Registered User

Join Date: Apr 2010
Location: Greece
Boat: Scandinavian 48
Posts: 2
Send Route to GPS

I believe there is a bug in the output from this option.

If the latitude of the waypoint is < 10 degrees then only 3 digits are inserted before the decimal point. There should be 4 with a leading zero.

Here is the output from OpenCPN V2.1.0

$ECWPL,836.538,N,08311.906,W,001*4E
$ECWPL,821.295,N,08310.326,W,002*42
$ECWPL,758.744,N,08254.564,W,003*4A
$ECWPL,755.058,N,08215.037,W,004*4C
$ECWPL,739.894,N,08140.002,W,005*4A
$ECWPL,709.121,N,08057.526,W,006*49
$ECWPL,709.399,N,08021.158,W,007*45
$ECWPL,724.581,N,07954.900,W,008*4B
$ECWPL,738.920,N,07952.512,W,009*49
$ECWPL,812.020,N,08022.000,W,010*48
$ECRTE,1,1,C,CPNTEST,001,002,003,004,005,006,007,0 08,009,010*4D

The above output gets interpreted incorrectly by the chartplotter as a Lat of 83 degrees instead of 8 degrees.

The longitude field seems to be correctly formatted though I haven't tried it if Longitude is < 10 deg

From Waypoint properties 008 36.538 N 083 11.906 W

I believe this is the correct NMEA format

== WPL - Waypoint Location ===


1 2 3 4 5 6
| | | | | |
$--WPL,llll.ll,a,yyyyy.yy,a,c--c*hh<CR><LF>


Field Number:

1. Latitude
2. N or S (North or South)
3. Longitude
4. E or W (East or West)
5. Waypoint name
6. Checksum

I have only just started using OpenCPN and I am most impressed - a great piece of work.

Is this the correct place to make a bug report or is there another avenue for reporting bugs ?

Don
Don Cameron is offline   Reply With Quote
Old 21-04-2010, 08:26   #2
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Quote:
Originally Posted by Don Cameron View Post
I believe there is a bug in the output from this option.
Can you try this patch?

Code:
Index: src/nmea0183/lat.cpp
===================================================================
RCS file: /cvsroot/opencpn/opencpn/src/nmea0183/lat.cpp,v
retrieving revision 1.5
diff -u -r1.5 lat.cpp
--- src/nmea0183/lat.cpp    17 Jun 2009 01:15:05 -0000    1.5
+++ src/nmea0183/lat.cpp    21 Apr 2010 15:22:40 -0000
@@ -80,7 +80,7 @@
     if (neg)
             d = -d;
 
-    temp_string.Printf(_T("%d%02d.%03d"), d, m / 1000, m % 1000);
+    temp_string.Printf(_T("%03d%02d.%03d"), d, m / 1000, m % 1000);
 
    sentence += temp_string;
Quote:
Originally Posted by Don Cameron View Post
Is this the correct place to make a bug report or is there another avenue for reporting bugs ?
IIRC Dave said bug & patch should be sent to SourceForge
SethDart is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Raymarine A50 Won't Send Data to SeaTalk surfmachine Marine Electronics 5 14-07-2012 17:23
Send Me Your Owners Manuals! Christian Van H Electrical: Batteries, Generators & Solar 3 15-02-2010 08:36
Furuno GPS - 'GPS Week Number Rollover' bitman Navigation 0 25-11-2009 03:53
Send a PM to a Social Group? Ocean Girl Forum Tech Support & Site Help 6 13-10-2009 03:21
ANybody ever send an inverter/charger back for rebuild repair? Chief Engineer Electrical: Batteries, Generators & Solar 17 22-02-2008 14:57

Advertise Here


All times are GMT -7. The time now is 02:33.


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.