add variable for constructor
authorMeeta <fasmeeta@gmail.com>
Wed, 18 Jan 2017 03:03:00 +0000 (19:03 -0800)
committerMeeta <fasmeeta@gmail.com>
Wed, 18 Jan 2017 03:10:03 +0000 (19:10 -0800)
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