codegardenllc / tiny_gps_plus

TinyGPS++ Library
MIT License
12 stars 19 forks source link

Fix radians and degrees conversion macros #1

Closed monkbroc closed 8 years ago

monkbroc commented 8 years ago

There's a bug in the distanceBetween and courseTo because radians doesn't include its argument in parentheses.

When doing radians(long1-long2) the macro was expanded to long1-long2*M_PI/180.0.

monkbroc commented 8 years ago

Thanks

mikalhart commented 7 years ago

Yikes! Thanks. I'll fix this in the original...!