Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 27:0fa9d61c5fc6
- Parent:
- 26:54ce9f642477
- Child:
- 29:17bec543a437
diff -r 54ce9f642477 -r 0fa9d61c5fc6 main.cpp
--- a/main.cpp Mon Nov 08 21:08:41 2021 +0000
+++ b/main.cpp Mon Nov 15 21:18:37 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,13 +79,14 @@
case COLLISION : bt.printf("\r\nFault: COLLISION"); break;
case LOW_VOLTAGE : bt.printf("\r\nFault: LOW VOLTAGE"); break;
}
- bt.printf("\n\n----");
+ */
+ // bt.printf("\n\n----");
// bt.printf("%d", t.read_ms());
- bt.printf("\n\rLeft distance sens (ADC) : %1.5f", left_sens);
- bt.printf("\n\rRight distance sens (ADC): %1.5f",right_sens);
- bt.printf("\n\rDifference (ADC): %1.5f",left_sens - right_sens);
- bt.printf("\n\rFeedback (m) : %1.5f", feedback);
- bt.printf("\n\rLap: %d", lap);
+ // bt.printf("\n\rLeft distance sens (ADC) : %1.5f", left_sens);
+ // bt.printf("\n\rRight distance sens (ADC): %1.5f",right_sens);
+ // bt.printf("\n\rDifference (ADC): %1.5f",left_sens - right_sens);
+ bt.printf("\n%1.5f", feedback);
+ // bt.printf("\n\rLap: %d", lap);
// bt.printf("\n\ravgCellVolt;ag : %1.5f", avgCellVoltag);
//pot1Voltage = pot1 * 3.3f;
//dutyCycleLeft = (pot1 * fullBatScalar);