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.
Fork of GPS by
Revision 2:b2c784b47c84, committed 2017-03-21
- Comitter:
- mbedevilledEgg
- Date:
- Tue Mar 21 15:45:52 2017 +0000
- Parent:
- 1:755c749bfa06
- Commit message:
- Time now works everythings is sick(ish)
Changed in this revision
GPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
GPS.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/GPS.cpp Tue Mar 21 15:38:11 2017 +0000 +++ b/GPS.cpp Tue Mar 21 15:45:52 2017 +0000 @@ -51,6 +51,7 @@ degrees = trunc(longitude / 100.0f); minutes = longitude - (degrees * 100.0f); longitude = degrees + minutes / 60.0f; + rtime = time; return 1; } }
--- a/GPS.h Tue Mar 21 15:38:11 2017 +0000 +++ b/GPS.h Tue Mar 21 15:45:52 2017 +0000 @@ -45,6 +45,9 @@ /** The latitude (call sample() to set) */ float latitude; + /** The time (call sample() to set) */ + float rtime; + private: float trunc(float v); void getline();