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:
16:2aea22130ba1
Parent:
12:c2f60b3ceb74
Child:
17:71900da6ced6
--- a/PCMessaging.h	Tue May 07 13:49:28 2013 +0000
+++ b/PCMessaging.h	Wed May 08 06:22:57 2013 +0000
@@ -9,7 +9,7 @@
 const unsigned char  STOPSTREAM_MSG     =6;
 const unsigned char  STARTLOGINFO_MSG   =7;
 const unsigned char  STOPLOGINFO_MSG    =8;
-const unsigned char  GETFILE_MSG        =9;
+const unsigned char  GETFILE_MSG        =9; // added to get a file from the SD card
 
 const double  DEGREES_TO_RADIANS = acos(-1.0)/180.0;
 const double eccen          = 0.0818191908426;  //WGS84 earth eccentricity
@@ -29,10 +29,10 @@
 bool sendLogMsgInfo =false;
 bool recordData     =false;
 bool fireTrigger    =false;
-bool get_file_msg   =false;
+bool get_file_msg   =false; // added for GETFILE command
 
 
-const unsigned char numMessages = 10;    //number of potential messages
+const unsigned char numMessages = 10;    //number of potential messages (updated to 10 sg-)
 char msgList[numMessages][32];          //text array storing the command messages from the PC
 char minMessageSize = 11;               //minimum size of a text message
 unsigned char CR = 0x0d;                //ASCII Carriage Return
@@ -53,7 +53,7 @@
     sprintf(msgList[STARTLOGINFO_MSG],  "WMsg LOGINFO Y");
     sprintf(msgList[STOPLOGINFO_MSG],   "WMsg LOGINFO N");
     sprintf(msgList[FIRE_TRIGGER_MSG],  "WMsg TRIGGER");
-    sprintf(msgList[GETFILE_MSG],       "WMsg GETFILE");
+    sprintf(msgList[GETFILE_MSG],       "WMsg GETFILE");    // added to get the file off of sd cards
     //message length is from 10 to 16 chars
     
  //   toPC.printf(" finished setting up messages \n");
@@ -164,7 +164,7 @@
                         break;
                     
                     case GETFILE_MSG:
-                        get_file_msg = true;
+                        get_file_msg = true;    // signal to main that we can unload the file that was written
                         break;
                     
                 }  //end Switch statement