gps nmea sample program
Dependencies: mbed
Fork of GPS by
Revision 2:a0bbb2cf21c2, committed 2017-03-10
- Comitter:
- superphil06
- Date:
- Fri Mar 10 09:17:02 2017 +0000
- Parent:
- 1:8de9bf0961a0
- Commit message:
- gps groove sample programme
Changed in this revision
GPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8de9bf0961a0 -r a0bbb2cf21c2 GPS.cpp --- a/GPS.cpp Tue Feb 14 07:35:23 2017 +0000 +++ b/GPS.cpp Fri Mar 10 09:17:02 2017 +0000 @@ -48,7 +48,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;