Andrew Russell / Servo

Dependents:   JS_1motor_20170707_ok Task_1_BallRidingbot_KeepingStationCatching_layingDown_1230 Task_2_BallRidingbot_MovingForwardCatching_backward_1230 testSSWMR_StationKeeping_200170830_OK ... more

Files at this revision

API Documentation at this revision

Comitter:
andrewrussell
Date:
Fri Feb 15 05:16:58 2013 +0000
Parent:
1:c1b2ec2662fd
Commit message:
Fixed the bug that the bug fix created.

Changed in this revision

Servo.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Servo.cpp	Fri Feb 15 05:14:48 2013 +0000
+++ b/Servo.cpp	Fri Feb 15 05:16:58 2013 +0000
@@ -53,7 +53,7 @@
  * @param float max Maximum pulse width in seconds
  * @param float min Minimum pulse width in seconds
  */
-void Servo::calibrate(float period, float min, float min) {
+void Servo::calibrate(float period, float min, float max) {
     _period = period;
     _min = min;
     _max = max;