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:
24:353322495742
Parent:
22:1cbdbc856660
Child:
25:2287bd8c9877
diff -r aff4bc6bf658 -r 353322495742 main.cpp
--- a/main.cpp	Thu May 23 03:44:00 2013 +0000
+++ b/main.cpp	Mon May 27 19:30:57 2013 +0000
@@ -107,7 +107,7 @@
     //This the serial communication back to the the PC host
     //Launch the C++ serial port read program there to catch the ASCII characters
     //toPC.baud(9600); wait_ms(100);    
-    toPC.baud(8*115200); wait_ms(100);
+    toPC.baud(2*115200); wait_ms(100);
     //toPC.baud(1*115200); wait_ms(100);
     //toPC.printf("\n\n released GPS from RESET and set to high baud rate \n\n");
     
@@ -235,8 +235,9 @@
     wait(20);
     */
         
-    recordData = true;
-    sendRecData = true;     
+    //why do we always start with recording the data ???
+    recordData = false;
+    sendRecData = false;     
     
     unsigned long cyclesPerSec = 0;
     bool GPSdataWritten = false;
@@ -342,7 +343,7 @@
                 
                 if (streamPos)
                 {
-                        toPC.printf("BESTPOS %5d %1d %8.5lf %9.5lf %5.3lf %d %d\n",
+                        toPC.printf("BESTPOS %5d %1d %8.6lf %9.6lf %5.3lf %d %d\n",
                                           curPos.msgHeader.GPSTime_msecs,  curPos.solStatus,
                                           curPos.latitude, curPos.longitude, curPos.height,
                                           curPos.numSV, curPos.numSolSV);