Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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;