a
Dependents: 3servotest 1stcomp 3rdcompfixstart 2ndcomp ... more
Fork of Servo by
Diff: servo.cpp
- Revision:
- 8:5a8a6a3b9f33
- Parent:
- 7:919db47443f4
diff -r 919db47443f4 -r 5a8a6a3b9f33 servo.cpp --- a/servo.cpp Fri Sep 16 08:50:07 2016 +0000 +++ b/servo.cpp Sat Sep 17 23:21:06 2016 +0000 @@ -5,7 +5,7 @@ PwmOut pwmbelt(PC_9); float PERIOD=20000; -const float btime=1.8; +const float btime=2.2; void armdegree(int degree) { int i; @@ -33,7 +33,7 @@ void beltup(void){ pwmarm.period_ms(20); //20ms - pwmbelt.write(0.05); + pwmbelt.write(0.028); } @@ -48,7 +48,7 @@ void beltstop(void){ pwmarm.period_ms(20); //20ms - pwmbelt.write(0.075); + pwmbelt.write(0.073); }