Works!(ish)

Fork of GPS by Simon Ford

Files at this revision

API Documentation at this revision

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();