most functionality to splashdwon, find neutral and start mission. short timeouts still in code for testing, will adjust to go directly to sit_idle after splashdown
Dependencies: mbed MODSERIAL FATFileSystem
Diff: MbedLogger/MbedLogger.cpp
- Revision:
- 80:4e5d306d695b
- Parent:
- 76:c802e1da4179
- Child:
- 82:0981b9ada820
--- a/MbedLogger/MbedLogger.cpp Tue Oct 23 20:35:16 2018 +0000 +++ b/MbedLogger/MbedLogger.cpp Wed Oct 24 16:07:10 2018 +0000 @@ -1314,10 +1314,10 @@ fseek(_fp, 0, SEEK_END); //SEEK_END is a constant in cstdio (end of the file) unsigned int file_size = ftell(_fp); //For binary streams, this is the number of bytes from the beginning of the file. fseek(_fp, 0, SEEK_SET); //SEEK_SET is hte beginning of the file, not sure this is necessary + + xbee().printf("%s file size is %d bytes.\n\r", filename.c_str(), file_size); - //closeLogFile(); //can probably just close the file pointer and not worry about position - - xbee().printf("%s file size is %d\n\r", filename.c_str(), file_size); + closeLogFile(); //can probably just close the file pointer and not worry about position return file_size; }