mikalhart / TinyGPSPlus

A new, customizable Arduino NMEA parsing library
http://arduiniana.org
1.08k stars 491 forks source link

CourseTo gives incorrect course #44

Closed mat01 closed 4 years ago

mat01 commented 6 years ago

Does the TinyGPSPlus::courseTo method work properly? It gives me a course of 288.71 degrees, when the actual course seems to be about 301 degrees. The coords I'm using are : from (51.433,-0.3499) to (51.610875,-0.808697).

mikalhart commented 4 years ago

Hi @mat01,

I ran a simple test program that printed out the return value of courseTo using your provided values. It printed 302.11, so I think the calculation is correct.