add variable for constructor
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / intake / RunIntake.java
index f5f10029db86a7e32ba54f0f8b5fed42fac5c468..ca74e1c60c2e93892277c9d4b7d5529b07a4771b 100644 (file)
@@ -5,12 +5,14 @@ import edu.wpi.first.wpilibj.command.Command;
 /**
  *
  * Starts running the intake for a specific period of time that the user inputs.
- * 
+ *
  * @author Meeta
  */
 public class RunIntake extends Command {
-  public RunIntake(double timeToMove) {
+  private double timeToMove;
 
+  public RunIntake(double timeToMove) {
+    this.timeToMove = timeToMove;
   }
 
   @Override