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: main.cpp
- Revision:
- 71:939d179478c4
- Parent:
- 68:8f549749b8ce
- Child:
- 72:250b2665755c
--- a/main.cpp Fri Jun 29 18:26:50 2018 +0000 +++ b/main.cpp Fri Jun 29 21:52:31 2018 +0000 @@ -47,8 +47,9 @@ - fixed bug where I was logging data twice in the interrupt code and the main file - fixed bug where Multi-Dive sequence wasn't restarting (the counter used to get the current state was not reset) Modified FSG PCB v_1_8 - - fixing a bug with the data transmission + - fixing a bug with the data transmission (output had newline character) - new mode called continuously transmit data in order to speed up transmission + - */ #include "mbed.h" @@ -292,7 +293,7 @@ ++tNow; //run finite state machine fast when transmitting data - if (current_state == TRANSMIT_MBED_LOG or current_state == RECEIVE_SEQUENCE) { + if (current_state == TX_MBED_LOG or current_state == RECEIVE_SEQUENCE) { //if ( (tNow % 10) == 0 ) { // 0.001 second intervals (1000 Hz) if ( (tNow % 100) == 0 ) { // 0.1 second intervals (10 Hz) fsm_loop = true;