![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
PIDs and fun
Dependencies: btbee m3pi_ng mbed FatFileSystemCpp
Diff: main.cpp
- Revision:
- 8:e7b322f72d16
- Parent:
- 7:74c9a0fbf2b1
- Child:
- 9:43be0dea44f0
--- a/main.cpp Thu May 28 12:51:37 2015 +0000 +++ b/main.cpp Thu May 28 12:56:20 2015 +0000 @@ -154,10 +154,11 @@ s1 = LapTest[0]; s5 = LapTest[4]; - //if (s1 > 500 and s5 > 500) { -// checkvar = 1; -// } -// + if (s1 > 500 and s5 > 500) { + m3pi.stop(); + exit(1); + } + // if (s1 < 500 and s5 < 500 and checkvar == 1 and counter == -1) { // LapTimer.reset(); // LapTimer.start();