
first commit
Diff: main.cpp
- Revision:
- 29:17bec543a437
- Parent:
- 27:0fa9d61c5fc6
- Child:
- 30:ab358e8a9e6a
--- a/main.cpp Wed Nov 17 21:37:29 2021 +0000 +++ b/main.cpp Fri Nov 19 20:27:56 2021 +0000 @@ -68,7 +68,7 @@ */ //wait(0.5); //commented out the wait bc it slows down the fault_check, and it breaks the analogIn readings for the driving input //the driving input ticker is faster than the analog.read() function, so all analog.read() methods must be in the main loop - /* switch(current_state){ + switch(current_state){ case STOP : bt.printf("\r\nCurrent state is stop"); break; case RUN: bt.printf("\r\nCurrent state is RUN"); break; case WAIT : bt.printf("\r\nCurrent state is WAIT"); break; @@ -79,7 +79,7 @@ case COLLISION : bt.printf("\r\nFault: COLLISION"); break; case LOW_VOLTAGE : bt.printf("\r\nFault: LOW VOLTAGE"); break; } - */ + // bt.printf("\n\n----"); // bt.printf("%d", t.read_ms()); // bt.printf("\n\rLeft distance sens (ADC) : %1.5f", left_sens);