k

Fork of Servo by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
EpicG10
Date:
Tue May 02 07:59:11 2017 +0000
Parent:
3:36b69a7ced07
Commit message:
USE THIS OFFICIAL

Changed in this revision

Servo.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 36b69a7ced07 -r 92981b40ceb1 Servo.cpp
--- a/Servo.cpp	Thu Sep 02 17:34:43 2010 +0000
+++ b/Servo.cpp	Tue May 02 07:59:11 2017 +0000
@@ -47,6 +47,7 @@
 
 void Servo::position(float degrees) {
     float offset = _range * (degrees / _degrees);
+    _pwm.period(0.008);
     _pwm.pulsewidth(0.0015 + clamp(offset, -_range, _range));
 }