gps
Fork of GPS by
Revision 1:582a9a30774e, committed 2017-03-21
- Comitter:
- styles22
- Date:
- Tue Mar 21 14:12:58 2017 +0000
- Parent:
- 0:15611c7938a3
- Commit message:
- Added Time output from data received through gps
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 Jun 08 14:10:27 2010 +0000 +++ b/GPS.cpp Tue Mar 21 14:12:58 2017 +0000 @@ -48,9 +48,10 @@ 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; + stime = time; return 1; } } @@ -79,3 +80,4 @@ } error("Overflowed message limit"); } +
--- a/GPS.h Tue Jun 08 14:10:27 2010 +0000 +++ b/GPS.h Tue Mar 21 14:12:58 2017 +0000 @@ -45,7 +45,8 @@ /** The latitude (call sample() to set) */ float latitude; -private: + int stime; +//private: float trunc(float v); void getline();