A class to control a model R/C servo, using a PwmOut
Dependents: Brute_TS_Controller_2018_11
Revision 5:c7143247a1e7, committed 2018-05-09
- Comitter:
- JonFreeman
- Date:
- Wed May 09 15:42:15 2018 +0000
- Parent:
- 3:36b69a7ced07
- Child:
- 6:917d115add54
- Commit message:
- commented out write (0.5) to prevent servo kick on startup
Changed in this revision
| Servo.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Servo.cpp Thu Sep 02 17:34:43 2010 +0000
+++ b/Servo.cpp Wed May 09 15:42:15 2018 +0000
@@ -36,7 +36,7 @@
Servo::Servo(PinName pin) : _pwm(pin) {
calibrate();
- write(0.5);
+// write(0.5);
}
void Servo::write(float percent) {