Add 'requires' command
authorArunima DIvya <adivya822@student.fuhsd.org>
Tue, 24 Jan 2017 03:43:03 +0000 (19:43 -0800)
committerArunima DIvya <adivya822@student.fuhsd.org>
Thu, 26 Jan 2017 04:14:05 +0000 (20:14 -0800)
src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java

index e4f9cd7358511f7160bc5455549a5a414bdd1b2a..5452073515b0fb7d719b1d2df15200d682595dcf 100644 (file)
@@ -16,6 +16,7 @@ public class RunIntake extends Command {
   public Timer timer;
 
   public RunIntake(double timeToMove) {
+    requires(Robot.getIntake());
     timer = new Timer();
     this.timeToMove = timeToMove;
   }