My final year project
Dependencies: BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG ResistiveTouchController Map CYS8218Controller MedianFilter
Diff: main.cpp
- Revision:
- 36:9ca4125e526e
- Parent:
- 35:6baa558d3b86
- Child:
- 37:93c7563f2078
--- a/main.cpp Mon Oct 03 17:12:39 2016 +0200 +++ b/main.cpp Mon Oct 03 17:43:28 2016 +0200 @@ -175,6 +175,27 @@ { ballOnPlate = test.read(); + if( calStarted ) + { + if( calPoint < 3 ) + { + if( ballOnPlate ) + { + calTimer.start(); + calHeldTime = calTimer.read(); + + if( calHeldTime >= 5 && ballOnPlate ) + { + while( test.read() ); + + calPoint++; + calTimer.stop(); + calTimer.reset(); + } + } + } + } + while( calStarted ) { while( calPoint < 3 )