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:
16:3363b9f14913
Parent:
14:85b64a4d08e8
Child:
17:7c16b5671d0e
--- a/System/StaticDefs.cpp	Tue Oct 31 22:19:20 2017 +0000
+++ b/System/StaticDefs.cpp	Mon Nov 06 22:57:56 2017 +0000
@@ -14,8 +14,8 @@
 }
     
 MODSERIAL & pc() {
-    //static MODSERIAL pc(USBTX, USBRX);   //PC USB tx, rx pin
-    static MODSERIAL pc(p9, p10);        //XBee tx, rx pins
+    static MODSERIAL pc(USBTX, USBRX);   //PC USB tx, rx pin
+    //static MODSERIAL pc(p9, p10);        //XBee tx, rx pins
     return pc;
 }
 
@@ -64,6 +64,11 @@
     return pitchLoop;
 }
 
+StateMachine & stateMachine() {
+    static StateMachine stateMachine;
+    return stateMachine;
+}
+
 DigitalOut & led1() {
     static DigitalOut led1(LED1);
     return led1;