Implement RunIndexWheel class
[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 *
973f0ac4 12 * @author Shaina
809609c9 13 */
14public class RunFlyWheelContinuous extends Command {
b6e97560 15 private double motorVal;
55cbd9ba 16
b7ef589a 17 /**
18 * See JavaDoc comment in class for details
19 *
20 * @param motorVal
21 * value range from -1 to 1
22 */
b6e97560 23 public RunFlyWheelContinuous(double motorVal) {
24 this.motorVal = motorVal;
55cbd9ba 25 }
26
27 // Called just before this Command runs the first time
28 @Override
29 protected void initialize() {
30 }
31
32 // Called repeatedly when this Command is scheduled to run
33 @Override
34 protected void execute() {
35 }
36
37 // Called once after isFinished returns true
38 @Override
39 protected void end() {
40 }
41
42 // Called when another command which requires one or more of the same
43 // subsystems is scheduled to run
44 @Override
45 protected void interrupted() {
89a76b33 46 end();
55cbd9ba 47 }
48
49 @Override
50 protected boolean isFinished() {
51 return false;
52 }
809609c9 53
54}