Library for ublox neo 6m

Dependents:   SATELITE

Revision:
1:380b615d1237
Parent:
0:8f2e256775d7
--- a/GPS.h	Mon May 04 03:41:27 2015 +0000
+++ b/GPS.h	Fri Nov 29 19:59:45 2019 +0000
@@ -39,16 +39,42 @@
      */
     int sample();
     
+    /** Beijig time format(shi,fen,miao) **/
+    int hour;
+    int minute;
+    int seconed;
+    
     /** The longitude (call sample() to set) */
     float longitude;
-
+    
+    /** display north/south, east/west unit**/
+    char ns, ew, unit;
+    
     /** The latitude (call sample() to set) */
     float latitude;
     
-    /** The UTC time */
+    /** The time (call sample() to set) */
+    float time;
+    
+    /** Number of satellites received (call sample() to set) */
+    int sats;
+    
+    /** Horizontal dilusion of precision (call sample() to set) */
+    float hdop;
+    
+    /** The altitude (call sample() to set)
+        Note that the accurate altitude is corrected by the geoid
+        See http://homepages.slingshot.co.nz/~geoff36/datum.htm
+    */
+    float alt;
+    
+    /** The geoid (call sample() to set) */
+    float  geoid;
+    
+    /** The NMEA sentence */
+    char msg[256];
     float utc;
     
-    char msg[256];
     
 private:
     float trunc(float v);