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:
34:9b66c5188051
Parent:
32:f2f8ae34aadc
Child:
36:966a86937e17
--- a/StateMachine/StateMachine.hpp	Wed Dec 20 13:52:50 2017 +0000
+++ b/StateMachine/StateMachine.hpp	Wed Dec 20 20:24:15 2017 +0000
@@ -20,7 +20,8 @@
     MULTI_RISE,             // multi-rise sequence
     KEYBOARD,               // "state" for tracking only
     FIND_AUTO_NEUTRAL_DEPTH,
-    FIND_AUTO_NEUTRAL_PITCH
+    FIND_AUTO_NEUTRAL_PITCH,
+    TRANSMIT_DATA
 };
  
 // find_neutral finite state machine enumerations
@@ -45,7 +46,7 @@
 public:
     StateMachine();
     
-    void runStateMachine();
+    int runStateMachine();
     
     void showMenu();
     
@@ -79,12 +80,12 @@
     
     void runActiveNeutralStateMachine();    //new neutral substate returns the state (which is used in overall FSM)
     
-    float * getLoggerArray();       //delete soon
+    float * getLoggerArray();               //delete soon
     
-    void recordData();              //record log data to file using MbedLogger class
+    void recordData(int input_state);       //record log data to file using MbedLogger class
     void printDirectory();
     void recordState(int input_state);
-    void printCurrentSdLog();       //more tricky for SD card, work in progress
+    void printCurrentSdLog();               //more tricky for SD card, work in progress
     
     void createNewFile();