robot

Dependencies:   Encoder HIDScope MODSERIAL TouchButton mbed-dsp mbed

Fork of Robot2false by BMT M9 Groep01

Files at this revision

API Documentation at this revision

Comitter:
Tanja2211
Date:
Wed Nov 05 20:19:47 2014 +0000
Parent:
65:e1bc4d5cb5d2
Commit message:
laatste commit 2

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Nov 05 20:17:57 2014 +0000
+++ b/main.cpp	Wed Nov 05 20:19:47 2014 +0000
@@ -679,7 +679,7 @@
             }
             break;
         case 1:
-            if (motor2.getPosition()>= 0) {
+            if (motor2.getPosition()>= 40) {
                 motordir2 = 1;
                 pwm_motor2.write(PWM2);
             }
@@ -687,7 +687,7 @@
                 motordir2 = 0;
                 pwm_motor2.write(PWM2);
             } else {
-                pwm_motor2.write(40);
+                pwm_motor2.write(0);
             }
             break;
         case 2: