robot
Dependencies: Encoder HIDScope MODSERIAL TouchButton mbed-dsp mbed
Fork of Robot2false by
Diff: main.cpp
- Revision:
- 65:e1bc4d5cb5d2
- Parent:
- 64:21e3e832f127
- Child:
- 66:c922e18c9217
--- a/main.cpp Tue Nov 04 11:22:53 2014 +0000 +++ b/main.cpp Wed Nov 05 20:17:57 2014 +0000 @@ -687,7 +687,7 @@ motordir2 = 0; pwm_motor2.write(PWM2); } else { - pwm_motor2.write(0); + pwm_motor2.write(40); } break; case 2: @@ -722,7 +722,6 @@ break; case WACHTEN: - pidpositie(ANGLEMIN,motor1.getPosition()); pwm_motor1.write(0); pc.printf("ifwachten\n"); if (snelheidsstand != 0 ) {