Cruisers Forum
 


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 23-02-2024, 06:42   #1
Registered User

Join Date: Feb 2024
Posts: 2
gps heading

Hello,
Is it possible to calculate heading from 2 different gps positions in opencpn?
It is for an inland barge and I know a navigation program that can do it, but that is really expensive. The 2 gps antennas are placed 80 meters from each other, so I think it will be accurate. But in opencpn I can only add 1 gps antenna.
dirkvdheuvel is offline   Reply With Quote
Old 23-02-2024, 07:49   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,251
Re: gps heading

You can add as many GPS data sources as you like and OpenCPN will receive data from all of them. But that data will only be used for position and COG.
It is not a complicated trigonometric exercise to calculate the heading from two points, but unless those GPS receivers are high quality and high rate, the results won't be anything spectacularly accurate even with them being 80 meters apart...
nohal is offline   Reply With Quote
Old 23-02-2024, 07:58   #3
Registered User

Join Date: Jan 2011
Location: France/UK
Boat: Gib'Sea 402
Posts: 549
Re: gps heading

That's true. Multipath errors are a poorly recognised problem with GPS and can be significantly different for two receivers 80 m apart particularly on a moving vehicle.
hoolie is online now   Reply With Quote
Old 28-02-2024, 06:20   #4
Registered User

Join Date: Feb 2024
Posts: 2
Re: gps heading

Quote:
Originally Posted by nohal View Post
You can add as many GPS data sources as you like and OpenCPN will receive data from all of them. But that data will only be used for position and COG.
It is not a complicated trigonometric exercise to calculate the heading from two points, but unless those GPS receivers are high quality and high rate, the results won't be anything spectacularly accurate even with them being 80 meters apart...
Thank you, is there a way that I can make that calculation in OpenCPN?
dirkvdheuvel is offline   Reply With Quote
Old 28-02-2024, 06:26   #5
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,251
Re: gps heading

Sure, it is open source, so you can modify it in whatever way you want. Or you can implement it in the Javascript plugin.
nohal is offline   Reply With Quote
Old 28-02-2024, 07:03   #6
Registered User

Join Date: Oct 2009
Location: Lelystad, The Netherlands
Boat: vd Stadt 44, Ben the Boat
Posts: 238
Re: gps heading

Dirk,

With 2 relative cheap GNSS sensors (u-blox F9) you can get easily up to 3-6 cm accuracy and convergence within seconds.

Bart
champ8242 is offline   Reply With Quote
Old 28-02-2024, 07:16   #7
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,251
Re: gps heading

Yes, the F9 ticks the boxes for this application as it is DGNSS and has up to 25Hz update rate...
Not exatly a GPS puck for 10 bucks, but they would sure generate pretty accurate results for a few hundred, much cheaper than a GNSS compass.
nohal is offline   Reply With Quote
Old 28-02-2024, 07:32   #8
Registered User

Join Date: Oct 2009
Location: Lelystad, The Netherlands
Boat: vd Stadt 44, Ben the Boat
Posts: 238
Re: gps heading

Quote:
Originally Posted by nohal View Post
Yes, the F9 ticks the boxes for this application as it is DGNSS and has up to 25Hz update rate...
Not exatly a GPS puck for 10 bucks, but they would sure generate pretty accurate results for a few hundred, much cheaper than a GNSS compass.
If I read:
Quote:
Originally Posted by dirkvdheuvel View Post
The 2 gps antennas are placed 80 meters from each other.
I don't think they should be using 10 bucks GPS pucks
champ8242 is offline   Reply With Quote
Old 28-02-2024, 07:35   #9
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,251
Re: gps heading

Yes, but they might be using "marine GPS" with 1Hz update rate, single constellation and not unusual error in the area of 10 meters...
nohal is offline   Reply With Quote
Old 06-03-2024, 12:02   #10
Registered User

Join Date: Aug 2017
Location: Cape Breton, NS, Canada
Boat: Cape Islander - tour boat
Posts: 68
Re: gps heading

I did get GPS heading out of a couple of Mikroe GNSS 7 Click boards (uses Ublox M9N) and an Arduino. Creating a 10Hz HDG output. I also did it with a tilt compensated compass board (CMPS14), it was actually more stable then the GPS based heading, also hooked up to an Arduino to create the actual HDG sentence. The Arduino also does some smoothing so that the heading doesn't jump all over the place. I would love to get a couple of Mikroe RTK Click or RTK 2 Click boards but they are a little over my budget for the project.



If you want to see my code, just message me. It should run on almost any arduino.
ian5142 is offline   Reply With Quote
Old 06-03-2024, 12:34   #11
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Cruising North Sea and Baltic (Summer)
Boat: Cutter-Rigged Moody 54
Posts: 34,834
Re: gps heading

Quote:
Originally Posted by dirkvdheuvel View Post
Hello,
Is it possible to calculate heading from 2 different gps positions in opencpn?
It is for an inland barge and I know a navigation program that can do it, but that is really expensive. The 2 gps antennas are placed 80 meters from each other, so I think it will be accurate. But in opencpn I can only add 1 gps antenna.

Why don't you just buy a GPS compass? A lot cheaper than the programming time to solve this that way, if you put any value on your time, and much more accurate.


80 meters separation will not give you as much accuracy as you think. The math is a little above my pay grade, but what's the position accuracy of the GPS antennae? At 60 meters (easier to figure), an additive error of 1 meters would be 1 degree, right? So to get within one degree, you would need accuracy of both devices in the centimeters range.


GPS compasses work on a different principle which yields much better results. It was do do with the phase differential between the antennae, and you only need a few centimeters of separation to get accuracy of fractions of a degree.
__________________
"You sea! I resign myself to you also . . . . I guess what you mean,
I behold from the beach your crooked inviting fingers,
I believe you refuse to go back without feeling of me;
We must have a turn together . . . . I undress . . . . hurry me out of sight of the land,
Cushion me soft . . . . rock me in billowy drowse,
Dash me with amorous wet . . . . I can repay you."
Walt Whitman
Dockhead is offline   Reply With Quote
Old 06-03-2024, 13:05   #12
Registered User

Join Date: Aug 2017
Location: Cape Breton, NS, Canada
Boat: Cape Islander - tour boat
Posts: 68
Re: gps heading

Furuno SCX20 and SCX21 are decent GPS compasses but they are ~$1400.


I don't know of any that are cheaper than that.
ian5142 is offline   Reply With Quote
Old 06-03-2024, 14:02   #13
Registered User

Join Date: Jan 2014
Location: Boston
Posts: 83
Re: gps heading

The Simrad HS60 and the Garmin MSC-10 are both around $1100.


Jim
Fintry is offline   Reply With Quote
Old 09-03-2024, 11:02   #14
Registered User

Join Date: Jan 2018
Location: Belgium
Boat: Raider 18 Cuddy
Posts: 68
Re: gps heading

I use a Raymarine AR200 for GPS and heading.
About € 600
Ben S is offline   Reply With Quote
Old 09-03-2024, 12:36   #15
Moderator
 
Dockhead's Avatar

Cruisers Forum Supporter

Join Date: Mar 2009
Location: Denmark (Winter), Cruising North Sea and Baltic (Summer)
Boat: Cutter-Rigged Moody 54
Posts: 34,834
Re: gps heading

Quote:
Originally Posted by ian5142 View Post
Furuno SCX20 and SCX21 are decent GPS compasses but they are ~$1400.

I don't know of any that are cheaper than that.

That's what I have.
__________________
"You sea! I resign myself to you also . . . . I guess what you mean,
I behold from the beach your crooked inviting fingers,
I believe you refuse to go back without feeling of me;
We must have a turn together . . . . I undress . . . . hurry me out of sight of the land,
Cushion me soft . . . . rock me in billowy drowse,
Dash me with amorous wet . . . . I can repay you."
Walt Whitman
Dockhead is offline   Reply With Quote
Reply

Tags
gps, head

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
Consuming Garmin GPS 24xD GPS/Heading with RM C90W flightlead404 Navigation 0 20-04-2022 12:57
TRUE heading shows 372 degrees when MAG Heading is 359...? PeterKissam OpenCPN 7 20-02-2019 09:46
GPS Heading Compass on sailboat? Mycroft Marine Electronics 0 19-02-2016 18:13
Northstar/Navman 8084 GPS with 2kw Radar and heading compass Hoohaa Marine Electronics 2 07-11-2013 11:27
GPS dual-antenna compass heading sensor stara Marine Electronics 0 01-08-2012 07:30

Advertise Here


All times are GMT -7. The time now is 06:37.


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.