Example to go with my modified GPS library

Dependencies:   GPS mbed

Fork of GPS_HelloWorld by Simon Ford

Revision:
1:bf6b98a2e480
Parent:
0:6b7345059afe
--- a/main.cpp	Tue Jun 08 14:12:30 2010 +0000
+++ b/main.cpp	Sat Nov 02 16:27:23 2013 +0000
@@ -1,15 +1,24 @@
+/* Example showing how to hook up to different GPS modules (GlobalSat EM406a and Adafruit Ultimate GPSv3)
+*  to emulated serial ports at different speeds */
 #include "mbed.h"
 #include "GPS.h"
 
+GPS gpsSpark(P0_4, P0_0, 4800);
+GPS gpsAda(P0_12, P0_15, 9600);
+
 Serial pc(USBTX, USBRX);
-GPS gps(p9, p10);
 
 int main() {
-    while(1) {
-        if(gps.sample()) {
-            pc.printf("I'm at %f, %f\n", gps.longitude, gps.latitude);
-        } else {
-            pc.printf("Oh Dear! No lock :(\n");
+    while (1) {  
+      
+       if(gpsSpark.sample()) {
+          pc.printf("set %d\t%c\t%f\t%f\t%f\t%f\t%f\n\r", takes, 'Sparkfun Breakout', gpsSpark.longitude, gpsSpark.latitude, gpsSpark.alt, gpsSpark.geoid, gpsSpark.time);
+       }
+  
+       if(gpsAda.sample()) {
+          pc.printf("set %d\t%c\t%f\t%f\t%f\t%f\t%f\n\r", takes, 'Adafruit', gpsAda.longitude, gpsAda.latitude, gpsAda.alt, gpsAda.geoid, gpsAda.time);
         }
+        
     }
-}
+    
+}
\ No newline at end of file