If you were Registered and logged in, you could reply and use other advanced thread options
Hi everyone,
In the $GPRMB data string, the 11th byte gives the "true bearing to
destination". I need to verify this parameter and was wondering how to
calculate it based on the LAT and LONG data. I think the following
formula is probably the most accurate and efficient way of doing this,
right?
TB2 = acos([sin(LAT_START)*sin(LAT_DEST) +
cos(D/60)]/[sin(D/60)*cos(LAT_START)]
where D = 60*acos[sin(LAT_START)*sin(LAT_DEST) +
cos(LAT_START)*cos(LAT_DEST)*cos(LONG_START-LONG_DEST)]
and LAT_DEST and LONG_DEST are the lattitude and longtitude coordinates
to the destination.
Thanks in advance,
weg
The earth is not a perfect sphere. See
http://www.ngs.noaa.gov/PC_PROD/Inv_Fwd/
for .exe and FORTRAN source.
- help calculating "true bearing to destination" value in $GPRMB string
- Global Positioning System
- 2006-04-10
- Novice help please
- Garmin GPS
- 2011-12-15
- Help Mapsource
- Garmin GPS
- 2011-10-30



> In the $GPRMB data string, the 11th byte gives the "true bearing to
> destination". I need to verify this parameter and was wondering how to
> calculate it based on the LAT and LONG data. I think the following
> formula is probably the most accurate and efficient way of doing this,
> right?
> TB2 = acos([sin(LAT_START)*sin(LAT_DEST) +
> cos(D/60)]/[sin(D/60)*cos(LAT_START)]
> where D = 60*acos[sin(LAT_START)*sin(LAT_DEST) +
> cos(LAT_START)*cos(LAT_DEST)*cos(LONG_START-LONG_DEST)]