Generation 3 of the Harp project

Dependencies:   Servo TMP36 GZ buffered-serial1 chan_fatfs_sd nmea_parser watchdog mbed-rtos mbed

Fork of HARP2 by Tyler Weaver

Revision:
0:ce5f06c3895f
Child:
1:2ace7946a246
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Feb 22 03:52:43 2012 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "GPS.h"
+
+Serial pc(USBTX, USBRX);
+GPS gps(p9, p10);
+
+int main() {
+    while(1) {
+        if(gps.sample()) {
+            pc.printf("I'm at %f, %f\n", gps.get_dec_longitude(), gps.get_dec_latitude());
+            pc.printf("%d satelites used\n", gps.get_satelites());
+            pc.printf("altitude = %f M\n\n", gps.get_msl_altitude());
+        } else {
+            pc.printf("Oh Dear! No lock :(\n");
+        }
+    }
+}
\ No newline at end of file