robot
Dependencies: Encoder HIDScope MODSERIAL TouchButton mbed-dsp mbed
Fork of Robot2false by
Diff: main.cpp
- Revision:
- 28:488e24ed1cb1
- Parent:
- 27:9dea548d6d6c
- Child:
- 29:f26796cca47f
diff -r 9dea548d6d6c -r 488e24ed1cb1 main.cpp --- a/main.cpp Sat Nov 01 12:33:16 2014 +0000 +++ b/main.cpp Sat Nov 01 13:12:52 2014 +0000 @@ -713,7 +713,7 @@ } if (toestand == TERUGKEREN) { new_pwm = pid(setspeed, motor1.getSpeed(),false); - pwm_motor1.write(0.3); + pwm_motor1.write(0.2); motordir1 = 0; pc.printf("motor2.getPosition %d\r\n", motor2.getPosition());