final
Dependencies: Encoder HIDScope MODSERIAL TouchButton mbed-dsp mbed
Fork of Robot1_11 by
Revision 66:c922e18c9217, committed 2014-11-05
- 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 |
diff -r e1bc4d5cb5d2 -r c922e18c9217 main.cpp --- 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: