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: StateMachine/StateMachine.cpp
- Revision:
- 27:0a5b90cd65d6
- Parent:
- 26:7e118fc02eea
- Child:
- 28:16c83a2fdefa
--- a/StateMachine/StateMachine.cpp Wed Nov 29 17:56:34 2017 +0000 +++ b/StateMachine/StateMachine.cpp Wed Nov 29 22:37:47 2017 +0000 @@ -4,7 +4,6 @@ StateMachine::StateMachine() { _timeout = 480; // generic timeout for every state, seconds - depthTolerance = 0.25; // depth tolerance for neutral finding exit critera pitchTolerance = 1.0; // pitch angle tolerance for neutral finding exit criteria bceFloatPosition = bce().getTravelLimit(); // bce position for "float" states (max travel limit for BCE is 320 mm) @@ -755,16 +754,6 @@ pc().printf(">>> timeout increased: %d\r\n", _timeout); } - //new 11/29/2017 - else if (userInput == ';') { - _timeout -= 1.0; //decrement the timeout - pc().printf(">>> NEUTRAL sub-FSM timeout decreased: %d\r\n", _timeout); - } - else if (userInput == '\'') { - _timeout += 1.0; //increment the timeout - pc().printf(">>> NEUTRAL sub-FSM timeout increased: %d\r\n", _timeout); - } - // go to sub-menus for the PID gains (this is blocking) else if (userInput == '1') { keyboard_menu_BCE_PID_settings();