Add 'requires' command
[3501/2017steamworks] / 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;
   }