Werkcollege opgave 23 september BMT K9
Dependencies: Encoder HIDScope MODSERIAL mbed QEI biquadFilter
Diff: main.cpp
- Revision:
- 3:2785a945b654
- Parent:
- 1:0a89274e1279
- Child:
- 4:96e47998d495
--- a/main.cpp Wed Sep 23 08:57:01 2015 +0000 +++ b/main.cpp Wed Sep 23 09:10:59 2015 +0000 @@ -10,11 +10,9 @@ int main() { - while(true) { + for (int n = 0; n < 10; n++) { motor2direction = 1; - motor2speed = 0.5f; - wait (1); - motor2direction = 0; - wait (1); + motor2speed = 0.1f*n; + wait (2); } } \ No newline at end of file