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 17-06-2020, 22:16   #1
Registered User
 
MikadoII's Avatar

Join Date: Jul 2012
Location: Mount Dandenong Vic Australia
Boat: S&S Defiance 30 ft.
Posts: 40
nmea message not plotting correctly

v 5.0.0+9065270- Win10 Pro


I am inputting the following nmea message:


<GREEN>15:11:16 (UDP:localhost:5000) $GPRMC,182623.00,A,3780.70,S,14497.00,E,2,70,07062 0,0.0,E*7B<0x0D><0x0A>
as shown in the NMEA Debug Window.


However it plots on the chart at -38.344873 145.616667.


Why????
__________________
Twits twitter
MikadoII is offline   Reply With Quote
Old 18-06-2020, 03:33   #2
Registered User

Join Date: May 2012
Posts: 1,225
Re: nmea message not plotting correctly

Quote:
3780.70,S,14497.00,E
'37 80.7S' and '144 97.0E' are clearly in error. '07062 0' should not have a space.

What is your NMEA source?

Mike
Rasbats is offline   Reply With Quote
Old 18-06-2020, 03:57   #3
Registered User

Join Date: May 2012
Posts: 1,225
Re: nmea message not plotting correctly

https://gpsd.gitlab.io/gpsd/NMEA.htm...on_information

Mike
Rasbats is offline   Reply With Quote
Old 18-06-2020, 05:09   #4
Registered User

Join Date: Jan 2011
Location: France/UK
Boat: Gib'Sea 402
Posts: 548
Re: nmea message not plotting correctly

The 3780.70,S,14497.00,E in degrees and decimal minutes in your NMEA data does indeed convert to -38.344873 145.616667 in decimal degrees. So OpenCPN has done the best it can with the faulty data it has been given!
hoolie is offline   Reply With Quote
Old 18-06-2020, 10:13   #5
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 471
Re: nmea message not plotting correctly

FYI here is a sample RMC sentence that OpenCpn seems to decode correctly.


$GPRMC,170347.00,A,5238.62552,N,00713.34533,W,0.57 1,,180620,,,A*67


Location is about 52 degrees 38.6 minutes north, 7 degrees 13.3 mins west.
AedanC is offline   Reply With Quote
Old 18-06-2020, 10:37   #6
Registered User
 
Dsanduril's Avatar

Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 4,229
Re: nmea message not plotting correctly

Quote:
Originally Posted by MikadoII View Post
...$GPRMC,182623.00,A,3780.70,S,14497.00,E,2,70,07 0620,0.0,E*7B<0x0D><0x0A>
as shown in the NMEA Debug Window...
RMC expects latitude in DDMM.MM format and longitude in DDDMM.MM format. So, as noted above, your sentence is saying 37°80.7'S and 144°97.00'E. I suspect the vendor of whatever is supplying the data meant 37.807°S and 144.97°E but that's not how the standard is written.

Quote:
Originally Posted by Rasbats View Post
'37 80.7S' and '144 97.0E' are clearly in error. '07062 0' should not have a space.

What is your NMEA source?

Mike
@Mike, the forum adds a space to NMEA sentences > 50 characters in length when posting them. The only way to avoid this is to use code tags, quote tags and plain text don't work. And you can't edit them out, if you go to edit a string the space isn't there, it is only a part of the display side of things. I edited the space out of the OP's NMEA string, here is it posted three ways (posted all three items without the space).

Code:
$GPRMC,182623.00,A,3780.70,S,14497.00,E,2,70,070620,0.0,E*7B<0x0D><0x0A>
Quote:
$GPRMC,182623.00,A,3780.70,S,14497.00,E,2,70,07062 0,0.0,E*7B<0x0D><0x0A>
$GPRMC,182623.00,A,3780.70,S,14497.00,E,2,70,07062 0,0.0,E*7B<0x0D><0x0A>

I've had a couple of go-arounds with the forum management, the bottom line is when troubleshooting NMEA sentences if there is a space at character 50 it is probably a phantom of this forum. Getting everyone to use code tags is going to be difficult.
Dsanduril is offline   Reply With Quote
Old 19-06-2020, 01:55   #7
Registered User
 
MikadoII's Avatar

Join Date: Jul 2012
Location: Mount Dandenong Vic Australia
Boat: S&S Defiance 30 ft.
Posts: 40
Re: nmea message not plotting correctly

Thanks everyone for your comments. I am using a GPS (and other data) device which uploads to ThingSpeak. I am then using node-red to extract lat & long from ThingSpeak and inputting it to OpenCPN. My problem has been to pin down the formats used by ThingSpeak and Open CPN. The actual strings I have quoted are just a line of text in node-red inserted for testing purposes. Rasbats points to the format for an RMC sentence but it doesn't spell out the format of the lat or long value. Dsanduril spells out the RMC format specifically. Thanks. I presume that "decimal degrees" is degree and the decimal part of a degree that the minutes and seconds constitute. The extra space is just a distraction. Thanks again.
__________________
Twits twitter
MikadoII is offline   Reply With Quote
Reply

Tags
nmea


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 working correctly? Albinvega27 OpenCPN 7 16-10-2019 08:35
self calibrated charts not quiling correctly Candombero OpenCPN 7 31-03-2018 11:14
OpenCPN 4.0 do not run correctly with PC Lenovo U41, under W 8.1 Gilletarom OpenCPN 16 18-10-2015 05:31
Solar not Working Correctly? simonpickard Electrical: Batteries, Generators & Solar 78 11-09-2014 09:29
Two Battery Banks Correctly Charged? bryan and wendy Electrical: Batteries, Generators & Solar 20 14-01-2010 08:42

Advertise Here


All times are GMT -7. The time now is 01:59.


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.