Ben Michael / Mbed 2 deprecated miniProject4

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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