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:
- 15:f86310960aab
- Parent:
- 14:81d390496d4e
- Child:
- 16:cefb22c49c2f
--- a/main.cpp Thu Aug 12 16:51:19 2021 +0000 +++ b/main.cpp Thu Aug 12 16:53:02 2021 +0000 @@ -147,12 +147,12 @@ double timeElapsed = testTimer.read(); double timeRemaining = SPIN_T[5] - timeElapsed; int displayTime = int(timeRemaining)+1; - //printf("Time remaining %d s\r\n", displayTime); + printf("Time remaining %d s\r\n", displayTime); //mut1.lock(); double printDemandSpeed = demandSpeed_RPM; double printCurrentSpeed = currentSpeedRPM; //mut1.unlock(); - printf("%f\t%f\r\n", currentSpeedRPM,_MagFil); + //printf("%f\t%f\r\n", currentSpeedRPM,_MagFil); //printf("%f\t%f\r\n", printDemandSpeed,printCurrentSpeed); //printf("%f\r\n",_MagFil); } @@ -203,7 +203,7 @@ _MagFil = MagFil; if (MagFil > VIBRATION_THRESHOLD){ //mut1.lock(); - //state = STATE_ERROR; + state = STATE_ERROR; printf("Excess vibration detected\r\n"); //mut1.unlock(); }