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.hpp
- Revision:
- 45:16b8162188ca
- Parent:
- 38:83d06c294807
- Child:
- 49:47ffa4feb6db
diff -r 01173b2cb466 -r 16b8162188ca StateMachine/StateMachine.hpp --- a/StateMachine/StateMachine.hpp Wed Feb 14 21:58:44 2018 +0000 +++ b/StateMachine/StateMachine.hpp Thu Feb 15 02:39:13 2018 +0000 @@ -3,7 +3,6 @@ #include "mbed.h" #include <vector> -#include "DirectoryList.h" extern "C" void mbed_reset(); // utilized to reset the mbed @@ -19,7 +18,8 @@ MULTI_DIVE, // multi-dive sequence MULTI_RISE, // multi-rise sequence KEYBOARD, // "state" for tracking only - TRANSMIT_DATA + TRANSMIT_LOG, + RECEIVE_SEQUENCE }; // find_neutral finite state machine enumerations @@ -132,9 +132,9 @@ float _pitch_KI; float _pitch_KD; - int _state_array[1024]; //used to print out the states + int _state_array[256]; //used to print out the states int _state_array_counter; //used to iterate through state records - int _substate_array[1024]; //used to print out the sub-states + int _substate_array[256]; //used to print out the sub-states int _substate_array_counter; //used to iterate through sub-state records int _substate;