robot
Dependencies: Encoder HIDScope MODSERIAL TouchButton mbed-dsp mbed
Fork of Robot2false by
Diff: main.cpp
- Revision:
- 66:c922e18c9217
- Parent:
- 65:e1bc4d5cb5d2
--- 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: