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 13 04:42:27 2013 +0000
Parent:
18:111025f447d8
Child:
20:3f04a0bde484
Commit message:
Fixed SDShell (fixed LinkedList) that hung the deconstructor. Since the object was local to a function the bug in remove reared it's head.

Changed in this revision

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/SDShell.lib	Fri May 10 15:03:39 2013 +0000
+++ b/SDShell.lib	Mon May 13 04:42:27 2013 +0000
@@ -1,1 +1,1 @@
-https://mbed.org/users/sam_grove/code/SDShell/#30aa615d4508
+https://mbed.org/users/sam_grove/code/SDShell/#1478b4882244
--- a/main.cpp	Fri May 10 15:03:39 2013 +0000
+++ b/main.cpp	Mon May 13 04:42:27 2013 +0000
@@ -60,15 +60,10 @@
     GPS_Reset = 0;      // low power PCB mode
     ADIS_RST = 0;       // same here
     wait(0.01f);        // just make sure that the hardware has time to stop
-    trig1led = ppsled = rxMsg = txMsg = 1;  // just indicate that we're in here
-    //toPC.attach(NULL);  // incase the PC serial was using an interrupt handler for RX
     fflush(stdout);     // and clear any TX reminants
     toPC.printf("Entering Shell Emulator...\n");    // just for fluf
     wait(0.1f);         // no reason for this either
     emulate.shell(toPC, sd, "/sd"); // now the SDShell object will serve SD files via UNIX commands
-    
-    toPC.printf(" normal termination of single mission \n");
-    wait(0.1f);
 }
 
 //ISR for detection of the GPS 1PPS
@@ -411,11 +406,11 @@
 
      if (fpNav != NULL) fclose(fpNav);  //insurance
      transferFile();
-     rxMsg = txMsg = 0;  // just indicate that we're in here
+     //rxMsg = txMsg = 0;  // just indicate that we're in here
      // to exit this function the HOST (ie: computer or PC app) must send "exit" otherwise the mbed will act
      // like a terminal and serve SD file data forever
     
-     //toPC.printf(" normal termination of single mission \n");
+     toPC.printf(" normal termination of single mission \n");
      
      NVIC_SystemReset();