motor test

Dependencies:   mbed

Fork of speed_control by Björn Nijhuis

Files at this revision

API Documentation at this revision

Comitter:
bjornnijhuis
Date:
Wed Sep 23 08:11:54 2015 +0000
Parent:
0:dc1151db1e78
Commit message:
Increased wait time

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:07:01 2015 +0000
+++ b/main.cpp	Wed Sep 23 08:11:54 2015 +0000
@@ -16,7 +16,7 @@
         for(int i = 0; i<10; i++) {
             duty_cycle  = 0.1*i;
             motor_pwm.write(duty_cycle);
-            wait(0.2);
+            wait(3);
         }
     duty_cycle = 0;
     motor_pwm.write(duty_cycle);