GPS_CANSAT

Dependencies:   MODSERIAL mbed-src

Fork of GPS_U-blox_NEO-6M_Test_Code by Edoardo De Marchi

Revision:
1:acd907fbcbae
Parent:
0:ea14ad6794af
Child:
2:cc1334afbbfd
--- a/main.cpp	Sat Apr 12 11:53:35 2014 +0000
+++ b/main.cpp	Fri Aug 22 12:43:55 2014 +0000
@@ -1,6 +1,6 @@
 /*
  * Author: Edoardo De Marchi
- * Date: 12-04-14
+ * Date: 22-08-14
  * Notes: Firmware for GPS U-Blox NEO-6M
 */
 
@@ -61,7 +61,6 @@
     {
         sscanf(cmd, "$GPGGA,%f,%f,%c,%f,%c,%d,%d,%*f,%f", &timefix, &latitude, &ns, &longitude, &ew, &fq, &nst, &altitude);
         pc.printf("GPGGA Fix taken at: %f, Latitude: %f %c, Longitude: %f %c, Fix quality: %d, Number of sat: %d, Altitude: %f M\n", timefix, latitude, ns, longitude, ew, fq, nst, altitude);
-        pc.printf("\n");
     }
     
     // Satellite status
@@ -69,7 +68,6 @@
     {
         sscanf(cmd, "$GPGSA,%c,%d,%d", &tf, &fix, &nst);
         pc.printf("GPGSA Type fix: %c, 3D fix: %d, number of sat: %d\r\n", tf, fix, nst);
-        pc.printf("\n");
     }
     
     // Geographic position, Latitude and Longitude
@@ -77,7 +75,6 @@
     {
         sscanf(cmd, "$GPGLL,%f,%c,%f,%c,%f", &latitude, &ns, &longitude, &ew, &timefix);
         pc.printf("GPGLL Latitude: %f %c, Longitude: %f %c, Fix taken at: %f\n", latitude, ns, longitude, ew, timefix);
-        pc.printf("\n");
     }
     
     // Geographic position, Latitude and Longitude
@@ -85,7 +82,6 @@
     {
         sscanf(cmd, "$GPRMC,%f,%c,%f,%c,%f,%c,%f,,%d", &timefix, &status, &latitude, &ns, &longitude, &ew, &speed, &date);
         pc.printf("GPRMC Fix taken at: %f, Status: %c, Latitude: %f %c, Longitude: %f %c, Speed: %f, Date: %d\n", timefix, status, latitude, ns, longitude, ew, speed, date);
-        pc.printf("\n");
     }
 }