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:
20:3f04a0bde484
Parent:
17:71900da6ced6
Child:
22:1cbdbc856660
--- a/PCMessaging.h	Mon May 13 04:42:27 2013 +0000
+++ b/PCMessaging.h	Tue May 14 00:59:34 2013 +0000
@@ -167,6 +167,7 @@
                     
                     case GETFILE_MSG:
                         get_file_msg = true;    // signal to main that we can unload the file that was written
+                        toPC.printf(" request to get SD card file \n");
                         break;
                     
                 }  //end Switch statement
@@ -276,7 +277,7 @@
             //th file is closed(in main) if we dont receive POSVAL messages for 60 secs
             if (fpNav == NULL)
             { 
-                toPC.printf("WMsg opening the SD card file \n");
+                toPC.printf("WMsg opening the SD card file at first PosVel message \n");
                 fpNav = fopen("/sd/Data/NAV.bin", "wb");
                 wait_ms(10);
                 recordData = true;
@@ -312,7 +313,7 @@
             {
                 if ((fpNav == NULL))  //if file not opened -- open it
                 {
-                    toPC.printf(" opening the SD card file \n");
+                    toPC.printf(" opening the SD card file from RECORD message \n");
                     fpNav = fopen("/sd/Data/NAV.bin", "wb");
                     wait_ms(10);
                 }
@@ -330,10 +331,10 @@
             {
                 if (fpNav != NULL)  //if the file is open -- close it
                 {
-                    toPC.printf(" closing the SD card file \n\n");
+                    toPC.printf(" closing the SD card file from RECORD message\n\n");
                     fflush(fpNav);
                     fclose(fpNav);
-                    wait_ms(1000);
+                    wait_ms(100);
                     //toPC.printf("\n after closing the SD card file \n\n");
                     fpNav = NULL;
                 }