Werkcollege opgave 23 september BMT K9
Dependencies: Encoder HIDScope MODSERIAL mbed QEI biquadFilter
Diff: main.cpp
- Revision:
- 1:0a89274e1279
- Parent:
- 0:fe3896c6eeb0
- Child:
- 2:e6c1bdc5639e
- Child:
- 3:2785a945b654
- Child:
- 7:f01efd933bfd
--- a/main.cpp Wed Sep 23 08:40:48 2015 +0000 +++ b/main.cpp Wed Sep 23 08:57:01 2015 +0000 @@ -11,13 +11,10 @@ int main() { while(true) { - if (button.read() == 0) { - motor2direction = 1; - motor2speed = 0.55f; - motor2speed = 0.3f; - } else { - motor2direction = 0; - motor2speed = 0.3f; - } + motor2direction = 1; + motor2speed = 0.5f; + wait (1); + motor2direction = 0; + wait (1); } } \ No newline at end of file