Edit JavaDoc comments in shooter commands
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / RunFlyWheelContinuous.java
index c2949386ee0f01eb7a149950b22a7124f223f44a..20a4d08f37cf6c608a911acc9c722d597b42a759 100644 (file)
@@ -3,14 +3,48 @@ package org.usfirst.frc.team3501.robot.commands.shooter;
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
- * Runs fly wheel continuously until ________
+ * This command will run the fly wheel motor continuously until the button
+ * triggering it is released.
+ *
+ * pre-condition: This command must be run by a button in OI, with
+ * button.whileHeld(...).
+ *
+ * @param motorVal
+ *          value range from -1 to 1
+ * @author Shaina
  */
 public class RunFlyWheelContinuous extends Command {
+  private double motorVal;
 
-       @Override
-       protected boolean isFinished() {
-               // TODO Auto-generated method stub
-               return false;
-       }
+  public RunFlyWheelContinuous(double motorVal) {
+    this.motorVal = motorVal;
+  }
+
+  // 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() {
+    end();
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return false;
+  }
 
 }