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

Files at this revision

API Documentation at this revision

Comitter:
jekain314
Date:
Mon May 27 19:30:57 2013 +0000
Parent:
23:aff4bc6bf658
Child:
25:2287bd8c9877
Commit message:
POSVEL lat & lon transferred with 6 fraction digits rather than 5.
; Record turned off when startup -- nav.bin opened on first POSVEL request.

Changed in this revision

PCMessaging.h Show annotated file Show diff for this revision Revisions of this file
SDShell.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/PCMessaging.h	Thu May 23 03:44:00 2013 +0000
+++ b/PCMessaging.h	Mon May 27 19:30:57 2013 +0000
@@ -249,7 +249,7 @@
                 solReady = 'Y';
             }
             
-            toPC.printf("WMsg POSVEL %5.3lf %1d %c %8.5lf %9.5lf %4.3lf %4.3lf %4.3lf %4.3lf\n", 
+            toPC.printf("WMsg POSVEL %5.3lf %1d %c %8.6lf %9.6lf %4.3lf %4.3lf %4.3lf %4.3lf\n", 
                          posTime, 
                          posMsg.numSolSV,
                          solReady,
@@ -317,7 +317,7 @@
                     fpNav = fopen("/sd/Data/NAV.bin", "wb");
                     wait_ms(10);
                 }
-                if (fpNav != NULL)  //if the fie was already opened we will respond to the PC with a Y 
+                if (fpNav != NULL)  //if the file was already opened we will respond to the PC with a Y 
                 {
                     recChar = 'Y';
                 }
--- a/SDShell.lib	Thu May 23 03:44:00 2013 +0000
+++ b/SDShell.lib	Mon May 27 19:30:57 2013 +0000
@@ -1,1 +1,1 @@
-https://mbed.org/users/sam_grove/code/SDShell/#8dbe4f4c1216
+https://mbed.org/users/sam_grove/code/SDShell/#6c520cfc50b2
--- 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);