.
Fork of SerialGPS by
Revision 4:ee9ad57fa0bb, committed 2016-01-13
- Comitter:
- VictorMC
- Date:
- Wed Jan 13 15:48:13 2016 +0000
- Parent:
- 3:4e2136c38f29
- Commit message:
- .
Changed in this revision
SerialGPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SerialGPS.cpp Wed May 07 07:22:16 2014 +0000 +++ b/SerialGPS.cpp Wed Jan 13 15:48:13 2016 +0000 @@ -58,7 +58,7 @@ float degrees = trunc(latitude / 100.0f); float minutes = latitude - (degrees * 100.0f); latitude = degrees + minutes / 60.0f; - degrees = trunc(longitude / 100.0f * 0.01f); + degrees = trunc(longitude / 100.0f); minutes = longitude - (degrees * 100.0f); longitude = degrees + minutes / 60.0f; return 1;