this version has all of Jim's fixes for reading the GPS and IMU data synchronously

Dependencies:   MODSERIAL SDFileSystem mbed SDShell CRC CommHandler FP LinkedList LogUtil

Revision:
7:1bec23c68a3c
Parent:
6:71da5b99de97
Child:
12:c2f60b3ceb74
--- a/main.cpp	Sun May 05 14:35:25 2013 +0000
+++ b/main.cpp	Mon May 06 01:37:38 2013 +0000
@@ -43,6 +43,15 @@
 
 volatile int PPSTimeOffset = 0;
 
+// get files from the SD Card
+#include "SDShell.h"
+void transferFile(void)
+{
+    SDShell emulate;
+    emulate.init();
+    emulate.shell(toPC, sd, "/sd");
+}
+
 //////////////////////////////////////////////////////////////////////
 // the below should become classes
 //////////////////////////////////////////////////////////////////////
@@ -378,6 +387,16 @@
             IMURecordCounter = 0;
             detectedGPS1PPS = false;
         }
+        
+        if(get_file_msg)
+        {
+            get_file_msg = false;
+            ADIS_RST = 0;
+            GPS_Reset = 0;
+            fclose(fpNav);
+            transferFile();
+            
+        }
     }
       
     fclose(fpNav);