Motor + encoder

Dependencies:   HIDScope QEI mbed

Files at this revision

API Documentation at this revision

Comitter:
Rvs94
Date:
Wed Sep 23 17:45:20 2015 +0000
Parent:
3:b8f8ecd174d8
Commit message:
Motor met encoder

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r b8f8ecd174d8 -r 33798a89f4e4 main.cpp
--- a/main.cpp	Wed Sep 23 12:30:19 2015 +0000
+++ b/main.cpp	Wed Sep 23 17:45:20 2015 +0000
@@ -28,6 +28,7 @@
             Aantal_pulses = Encoder.getPulses();
             Aantal_Degs = Aantal_pulses*360/31/131;
             pc.printf("Whileloop1: Pulses is: %f, Degs: %f\n", Aantal_pulses,Aantal_Degs);
+            wait(0.1f);
         }
         while(Aantal_Degs > Grens2)
         {
@@ -36,6 +37,7 @@
             Aantal_pulses = Encoder.getPulses();
             Aantal_Degs = Aantal_pulses*360/31/131;
             pc.printf("Whileloop2: Pulses is: %f, Degs: %f\n", Aantal_pulses,Aantal_Degs);
+            wait(0.1f);
         }
     }
 }
\ No newline at end of file