Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 20-04-2010, 21: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, 09:26   #2
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 335
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
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 18:23
Send Me Your Owners Manuals! Christian Van H Electrical: Batteries, Generators & Solar 3 15-02-2010 09:36
Furuno GPS - 'GPS Week Number Rollover' bitman Navigation 0 25-11-2009 04:53
Send a PM to a Social Group? Ocean Girl Forum Tech Support & Site Help 6 13-10-2009 04:21
ANybody ever send an inverter/charger back for rebuild repair? Chief Engineer Electrical: Batteries, Generators & Solar 17 22-02-2008 15:57



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 04:24.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.