GPS library

Revision:
8:720966cb4824
Parent:
7:120983998da2
Child:
9:a6214cf7f73b
--- a/GPS.cpp	Wed Mar 16 19:18:00 2016 +0000
+++ b/GPS.cpp	Thu Mar 17 19:26:14 2016 +0000
@@ -44,11 +44,11 @@
         getline();
         // Check if it is a GPGGA msg (matches both locked and non-locked msg)
         //pc1.printf(msg);
-        pc1.printf("\n");
+        //pc1.printf("\n");
         wait(5);
-        pc1.printf("display msg\r\n");
-        pc1.printf(msg);
-        pc1.printf("\n");
+        //pc1.printf("display msg\r\n");
+        //pc1.printf(msg);
+        //pc1.printf("\n");
         if(sscanf(msg, "GPGGA,%f,%f,%c,%f,%c,%d,%d,%f,%f,%c,%f,%c", &time, &latitude, &ns, &longitude, &ew, &lock, &num_sat, &hori_dilute, &alt, &hu, &geoid, &gu/*, &age_diff, &diff_ID*/) >= 1) { 
             if(!lock) {
                 longitude = 0.0;
@@ -67,11 +67,11 @@
 //                minutes = longitude - (degrees * 100.0f);
 //                longitude = degrees + minutes / 60.0f;
 //                pc1.printf(msg);
-                pc1.printf("\n\rlongitude is %f\n\r", longitude);
-                pc1.printf("\n\rtime is %f\n\r", time);
-                pc1.printf("ns is %c\n\r", ns);
-                pc1.printf("ew is %c\n\r", ew);
-                pc1.printf("alt is %f\n\r", alt);
+                //pc1.printf("\n\rlongitude is %f\n\r", longitude);
+                //pc1.printf("\n\rtime is %f\n\r", time);
+                //pc1.printf("ns is %c\n\r", ns);
+                //pc1.printf("ew is %c\n\r", ew);
+                //pc1.printf("alt is %f\n\r", alt);
                 
                 latitude /= 100;
                 longitude /= 100;