add require method
authorLauren Meier <meier.lauren@gmail.com>
Wed, 10 Feb 2016 04:13:38 +0000 (20:13 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Mon, 15 Feb 2016 00:22:19 +0000 (16:22 -0800)
src/org/usfirst/frc/team3501/robot/commands/SetWinchSpeed.java

index ee5b9cd98432f08bbe61a075eb5a6d2ba4e884d5..c66e4000d7e137b705babe15b1345ad74ac49615 100644 (file)
@@ -8,6 +8,7 @@ public class SetWinchSpeed extends Command {
   double winchUpSpeed;
 
   public SetWinchSpeed(double speed) {
+    requires(Robot.scaler);
     winchUpSpeed = speed;
     if (winchUpSpeed > 1)
       winchUpSpeed = 1;