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:
5:2ce1be9d4bef
Parent:
4:dda2ab5cc643
Child:
6:71da5b99de97
--- a/main.cpp	Sat May 04 23:16:16 2013 +0000
+++ b/main.cpp	Sat May 04 23:43:53 2013 +0000
@@ -247,7 +247,7 @@
                 
         processPCmessages(fpNav, posMsg, velMsg);
         
-        if(fireTrigger)
+        if(fireTrigger)  //comes from a PC request message
         {
             //pre-fire the trigger using the mid-body 2.5mm connection (T2i)
             pre_fire = 0;  //pin30 (midbody of connector) set to zero
@@ -325,17 +325,7 @@
                 //    curVel.horizontalSpeed,  curVel.heading,  curVel.verticalSpeed );
                 velMsg = curVel;
             }
-            /*
-            if (recordData && (fpNav != NULL) && (byteCounter > 0))
-            {
-                //wait_us(10);
-                int totalMessageLength = 28 + msgHdr.messageLength + 4;  //header length + message Length + CRC word size
-                totalBytesWritten += fwrite(&msgBuffer[messageLocation[savedMessageCounter-1]], 1, totalMessageLength, fpNav);  // this writes out a complete set of messages for this sec
-                //wait_us(10);
-            }
-                
-            
-            */
+ 
             completeMessageAvailable = false;
         }