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:
- 10:8a41143a9f52
- Parent:
- 9:b1f53e4eb453
- Child:
- 11:62d2a592b1ae
diff -r b1f53e4eb453 -r 8a41143a9f52 main.cpp --- a/main.cpp Thu Aug 12 13:42:41 2021 +0000 +++ b/main.cpp Thu Aug 12 13:58:10 2021 +0000 @@ -170,7 +170,7 @@ Tnow = testTimer.read(); //check accel. If problem, change state to ERROR //check accel here - + //printf("x\r\n"); /* Ax = 0.2*pinAx.read() + 0.8*Ax - 0.5; Ay = 0.2*pinAy.read() + 0.8*Ay - 0.5; @@ -316,6 +316,9 @@ while(1){ semStartTest.wait(); printf("\r\n Test starting \r\n"); + + //check if motor is spinning + state = STATE_RUNNING; //set up test testTimer.reset();