Add key listener to runFlyWheel
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / TestFlyWheelButton.java
1 package org.usfirst.frc.team3501.robot.commands.shooter;
2
3 import org.usfirst.frc.team3501.robot.Robot;
4 import org.usfirst.frc.team3501.robot.subsystems.Shooter;
5
6 import edu.wpi.first.wpilibj.command.Command;
7
8 /**
9
10 */
11 public class TestFlyWheelButton extends Command {
12 private Shooter shooter = Robot.getShooter();
13
14 /**
15 * See JavaDoc comment in class for details
16 *
17 * @param motorVal
18 * value range from -1 to 1
19 */
20 public TestFlyWheelButton() {
21 requires(shooter);
22 }
23
24 // Called just before this Command runs the first time
25 @Override
26 protected void initialize() {
27 }
28
29 // Called repeatedly when this Command is scheduled to run
30 @Override
31 protected void execute() {
32 System.out.println("Running Fly Wheel");
33 }
34
35 // Called once after isFinished returns true
36 @Override
37 protected void end() {
38 }
39
40 // Called when another command which requires one or more of the same
41 // subsystems is scheduled to run
42 @Override
43 protected void interrupted() {
44 end();
45 }
46
47 @Override
48 protected boolean isFinished() {
49 return false;
50
51 }
52
53 }