Bouke Scheltinga / Mbed 2 deprecated Werk_college_23sept

Dependencies:   Encoder HIDScope MODSERIAL mbed QEI biquadFilter

Files at this revision

API Documentation at this revision

Comitter:
bscheltinga
Date:
Wed Sep 23 08:57:01 2015 +0000
Parent:
0:fe3896c6eeb0
Child:
2:e6c1bdc5639e
Child:
3:2785a945b654
Child:
7:f01efd933bfd
Commit message:
Motor 1s CCW en 1s CW

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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