Edit JavaDoc comments in shooter commands
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / RunFlyWheelContinuous.java
CommitLineData
809609c9 1package org.usfirst.frc.team3501.robot.commands.shooter;
2
3import edu.wpi.first.wpilibj.command.Command;
4
5/**
89a76b33 6 * This command will run the fly wheel motor continuously until the button
7 * triggering it is released.
b6e97560 8 *
973f0ac4 9 * pre-condition: This command must be run by a button in OI, with
10 * button.whileHeld(...).
357feb5c 11 *
b6e97560 12 * @param motorVal
63572d8b 13 * value range from -1 to 1
973f0ac4 14 * @author Shaina
809609c9 15 */
16public class RunFlyWheelContinuous extends Command {
b6e97560 17 private double motorVal;
55cbd9ba 18
b6e97560 19 public RunFlyWheelContinuous(double motorVal) {
20 this.motorVal = motorVal;
55cbd9ba 21 }
22
23 // Called just before this Command runs the first time
24 @Override
25 protected void initialize() {
26 }
27
28 // Called repeatedly when this Command is scheduled to run
29 @Override
30 protected void execute() {
31 }
32
33 // Called once after isFinished returns true
34 @Override
35 protected void end() {
36 }
37
38 // Called when another command which requires one or more of the same
39 // subsystems is scheduled to run
40 @Override
41 protected void interrupted() {
89a76b33 42 end();
55cbd9ba 43 }
44
45 @Override
46 protected boolean isFinished() {
47 return false;
48 }
809609c9 49
50}