Generation 2 of the Harp project

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

Revision:
6:204487243310
Parent:
5:8444ec4245e7
Child:
7:d8ecabe16c9e
diff -r 8444ec4245e7 -r 204487243310 main.cpp
--- a/main.cpp	Thu Feb 23 05:40:54 2012 +0000
+++ b/main.cpp	Fri Feb 24 21:28:33 2012 +0000
@@ -6,6 +6,7 @@
 GPS gps(p9, p10);
 
 int main() {
+    pc.baud(9600);
     int gps_message;
     gps.start_log();
     while (1) {
@@ -14,6 +15,7 @@
             pc.printf("Responding to GGA message.\n");
             pc.printf("I'm at %f, %f\n", gps.get_dec_latitude(), gps.get_dec_longitude());
             pc.printf("%d satelites used\n", gps.get_satelites());
+            pc.printf("altitude = %f ft\n", gps.get_altitude_ft());
             pc.printf("altitude = %f M\n\n", gps.get_msl_altitude());
         } else if (gps_message == VTG) {
             pc.printf("Responding to VTG message.\n");
@@ -29,6 +31,8 @@
             pc.printf("I'm at %f, %f\n", gps.get_dec_latitude(), gps.get_dec_longitude());
             pc.printf("True heading = %f deg\n", gps.get_course_t());
             pc.printf("Speed = %f knots\n\n", gps.get_speed_k());
+        } else if (gps_message == NOT_PARSED) {
+            pc.printf("Message not parsed!\n");
         } else if (gps_message == NO_LOCK) {
             pc.printf("Oh Dear! No lock :(\n");
         }