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
Diff: main.cpp
- Revision:
- 19:26c5298a7138
- Parent:
- 18:111025f447d8
- Child:
- 20:3f04a0bde484
diff -r 111025f447d8 -r 26c5298a7138 main.cpp --- 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();