Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

headingsource NMEA #88

Open
julled opened this issue Dec 22, 2024 · 5 comments
Open

headingsource NMEA #88

julled opened this issue Dec 22, 2024 · 5 comments

Comments

@julled
Copy link

julled commented Dec 22, 2024

hey, first of all thanks a lot for building this nice OSH tracker, havent built one yet, but i am looking forward to it!

i would be interested if its possible to use heading via NMEA?
I would like to use onship high quality GPS and COMPASS to provide especially the good heading to the tracker.
Usually its hard to use trackers own compass as viable source, as the ship contains too much metal to make it a feasable source of heading.

Best

@zs6buj
Copy link
Owner

zs6buj commented Dec 26, 2024

Hi, and yes you can use NMEA telemetry to determine the heading of the ship, and by deduction, where the tracker "front field" is relative to world coordinates (or a map). A full description of the technique is described in the wiki, but the short explanation is that we take two GPS readings while the ship is in motion, and use the imaginary line between them as the heading.

@zs6buj
Copy link
Owner

zs6buj commented Dec 26, 2024

Since the ship may be tacking, or some yaw present due to currents, the heading may be off to some degree, but the angular error could possibly be corrected visually, or by watching the rssi of the telemetry transmission. It should remain constant thereafter.

@julled
Copy link
Author

julled commented Dec 26, 2024

Hey @zs6buj thanks for these suggestions. I also thought of this approach you suggested, but as you mentioned it can introduce some error, especially if no movment is there.

I thought of instead using a proper heading provided from a mature ship compass via NMEA messages, like the GPHDT message, e.g. see here https://docs.advancednavigation.com/gnss-compass/Operation/NMEA%200183.htm

Most of the ships have a good compass so the idea was to use this info from there.

Would this be possible to integrate?

@zs6buj
Copy link
Owner

zs6buj commented Dec 26, 2024

I took a quick look, and yes it is likely possible to decode $GPHDT and $GPGLL from serial or ethernet

@zs6buj
Copy link
Owner

zs6buj commented Jan 1, 2025

I found this:

system
Feb 2012post #2
The $GPHDT sentence gives you the True Heading of the GPS device. The device calculates the heading by working out the deviation in successive location readings, so at low speeds it may not be particularly accurate, given the location precision of consumer GPS.

So $GPHDT might not be what you expect?

EDIT: But I see you already addressed this issue

mature ship compass via NMEA messages

I'm looking for a library to decode GPDDT, otherwise I must just parse it myself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants