Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 17:fc23cf904932, committed 2019-01-14
- Comitter:
- bmichael21
- Date:
- Mon Jan 14 07:46:34 2019 +0000
- Parent:
- 16:58b9673e64d7
- Commit message:
- comments
Changed in this revision
| servo.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/servo.cpp Mon Jan 14 07:06:38 2019 +0000
+++ b/servo.cpp Mon Jan 14 07:46:34 2019 +0000
@@ -19,13 +19,4 @@
else if(curDirection == 0 && curDutyCycle > 600)
curDutyCycle -= 10;
servo.pulsewidth_us(curDutyCycle);
-}
-
-//int servoAngle() {
- ////1500 is 0°.
- ////plus/minus one degree for every 10
- //if (curDutyCycle > 90 || curDutyCycle < -90) {
- //return 1500; //prevents unpredictable behaviour of servo from out of bound input
- //}
- //return 1500 + (10 * x);
-//}
\ No newline at end of file
+}
\ No newline at end of file
