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:
- 19:ef78ac1a98f8
- Parent:
- 18:1b9579ac9f41
- Child:
- 20:70c5b1e499f0
--- a/main.cpp Sun Oct 02 18:28:12 2016 +0200 +++ b/main.cpp Sun Oct 02 18:45:48 2016 +0200 @@ -35,6 +35,7 @@ // TODO Delete these variables float t = 0; Serial pc(USBTX,USBRX); +DigitalIn test(D3); int main() { @@ -130,8 +131,6 @@ void Automatic() { //TODO Add automatic control mode logic - x = 160*sin(20*3.14*t); - y = 130*cos(20*3.14*t++); - Ts++; + ballOnPlate = test.read(); Thread::wait(4); }