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

Revision:
51:c5c40272ecc3
Parent:
50:1d59ea7c7a1c
Child:
52:f207567d3ea4
--- a/main.cpp	Thu Feb 15 23:08:38 2018 +0000
+++ b/main.cpp	Mon Jun 04 15:20:21 2018 +0000
@@ -49,16 +49,17 @@
 void setup() {
     pc().baud(57600);
     pc().printf("\n\n\rFSG POOL TEST 2017-02-15 revB\n\n\r");
-    
-    //setup data logger baud rate and write the start of the program (every time you reset)
+
+/*    //setup data logger baud rate and write the start of the program (every time you reset)
     datalogger().baud(57600);
     datalogger().printf("SYSTEM, RESET\n");
- 
+*/
+      
     // start up the system timer
     systemTime().start();
  
     // set up and start the adc. This runs on a fixed interval and is interrupt driven
-    adc().initialize();
+    adc().initialize();  
     adc().start();
     
     // set up and start the imu. This polls in the background
@@ -73,7 +74,7 @@
     local();
     
     // construct the SD card file system
-    sd_card();
+//    sd_card();
  
     // load config data from files
     configFileIO().load_BCE_config();      // load the buoyancy engine parameters from the file "bce.txt"
@@ -115,19 +116,20 @@
     
     // setup the data logger rate
     log_loop_rate_ticker.attach(&log_loop_trigger, 1.0); // fires the ticker at 1 Hz rate (every second)
-    
+ 
     //set time of logger (to current or close-to-current time)
-    mbedLogger().setLogTime();
-    sdLogger().setLogTime();
+    mbedLogger().setLogTime();   
+//    sdLogger().setLogTime();
     
     //create log files if not present on file system
     mbedLogger().initializeLogFile();
-    sdLogger().initializeLogFile();
+//    sdLogger().initializeLogFile();
+
 } 
  
 int main() {
     setup();
-    
+
     while(1) {
         static int current_state = 0;
         
@@ -181,4 +183,5 @@
             log_loop = false;   // wait until the loop rate timer fires again
         }   //END OF LOG LOOP
     }
+
 }
\ No newline at end of file