Samenwerking Groep 12
Dependencies: Encoder MODSERIAL HIDScope mbed
Foo
Diff: main.cpp
- Revision:
- 18:dfdc44cbcb3b
- Parent:
- 17:6b91c3549301
--- a/main.cpp Mon Sep 21 15:13:22 2015 +0000 +++ b/main.cpp Mon Sep 21 15:24:52 2015 +0000 @@ -15,7 +15,9 @@ pc.baud(9600); motor2.setPosition(0); - while(button = 0) + while(button.read()< 0.5) + {motor2direction = 1; + motor2speed = 0.5f;} while(true) { double R = (reference - motor2.getPosition());