Edit JavaDoc comment, instantiate motorVal and time variables
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / RunFlyWheel.java
index 6a6e9502ed0332f116e0611f8b148b11c3b0897a..5a60707ee75053d9afaf2d6304bbc50608fc3c51 100644 (file)
@@ -3,19 +3,47 @@ package org.usfirst.frc.team3501.robot.commands.shooter;
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
- * Runs the fly wheel at a given speed in () for input time in seconds
+ * Runs the fly wheel at a given speed for a given time (sec)
  *
- * @param speed
- *            in ()
+ * @param motorVal
+ *          in ()
  * @param time
- *            in seconds
+ *          in seconds
+ * @author shaina
  */
 public class RunFlyWheel extends Command {
+  private double motorVal;
+  private double time;
 
-       @Override
-       protected boolean isFinished() {
-               // TODO Auto-generated method stub
-               return false;
-       }
+  public RunFlyWheel(double motorVal, double time) {
+    this.motorVal = motorVal;
+    this.time = time;
+  }
+
+  // Called just before this Command runs the first time
+  @Override
+  protected void initialize() {
+  }
+
+  // Called repeatedly when this Command is scheduled to run
+  @Override
+  protected void execute() {
+  }
+
+  // Called once after isFinished returns true
+  @Override
+  protected void end() {
+  }
+
+  // Called when another command which requires one or more of the same
+  // subsystems is scheduled to run
+  @Override
+  protected void interrupted() {
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return false;
+  }
 
 }