a
Dependents: 3servotest 1stcomp 3rdcompfixstart 2ndcomp ... more
Fork of Servo by
Diff: servo.cpp
- Revision:
- 4:5ae6ed80dc46
- Parent:
- 3:c112df463a8d
- Child:
- 5:58ef29cb8785
diff -r c112df463a8d -r 5ae6ed80dc46 servo.cpp --- a/servo.cpp Thu Sep 08 10:07:15 2016 +0000 +++ b/servo.cpp Fri Sep 09 11:40:55 2016 +0000 @@ -43,12 +43,19 @@ } +void beltstop(void){ + + pwmarm.period_ms(20); //20ms + pwmbelt.write(0.075); + +} + void close_hand(void) { int i,degree; pwmhand.period_ms(20); //20ms - degree=175; + degree=130; i=500+degree*1900/180; pwmhand.write(i/PERIOD);