Library for ublox neo 6m

Dependents:   GPS-Tracking-Velo

Files at this revision

API Documentation at this revision

Comitter:
QuangAnhLe
Date:
Tue Apr 16 21:53:03 2019 +0000
Parent:
1:9a8a3f68b005
Commit message:
SMS

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
diff -r 9a8a3f68b005 -r 2b9befe69d07 GPS.cpp
--- a/GPS.cpp	Fri Apr 12 17:48:32 2019 +0000
+++ b/GPS.cpp	Tue Apr 16 21:53:03 2019 +0000
@@ -35,7 +35,7 @@
     float time2,longitude2,latitude2,Speed,track;
     char  ns,ew,aut,ac,ns2,ew2;
     //int data;
-    float Hdop, Pdop;
+    //float Hdop, Pdop;
     char Aut;
     //char star;
     //int check_data;
@@ -146,14 +146,14 @@
                 
             }
        }*/
-        if(sscanf(msg, "GPGSA,%c,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%f,%f", &Aut, &fix_3d,&id1,&id2,&id3,&id4,&id5,&id6,&id7,&id8,&id9,&id10,&id11,&id12,&id13,&pdop,&hdop) >= 1) 
+        if(sscanf(msg, "GPGSA,%c,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d", &Aut, &fix_3d,&id1,&id2,&id3,&id4,&id5,&id6,&id7,&id8,&id9,&id10,&id11,&id12,&id13) >= 1) 
        {
            
             if (fix_3d==1) 
             {
                 id1=id2=id3=id4=id5=id6=id7=id8=id9=id10=id11=id12=0;
-                pdop=0.0;
-                hdop=0.0;
+                //pdop=0.0;
+                //hdop=0.0;
                 //vdop=0.0;
                 
                 return 0;
diff -r 9a8a3f68b005 -r 2b9befe69d07 GPS.h
--- a/GPS.h	Fri Apr 12 17:48:32 2019 +0000
+++ b/GPS.h	Tue Apr 16 21:53:03 2019 +0000
@@ -63,10 +63,10 @@
     int sat_tracked;
     
     /**dilution of precision (PDOP)*/
-    double pdop;
+    //double pdop;
     
     /**Horizontal dilution of precision (HDOP) */
-    double hdop;
+    //double hdop;
     
     /**Vertical dilution of precision (VDOP)*/
     //float vdop;