add necessary commands/buttons
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / ReverseFlyWheelContinuous.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 public class ReverseFlyWheelContinuous extends Command {
9 private Shooter shooter = Robot.getShooter();
10
11 public ReverseFlyWheelContinuous() {
12 }
13
14 @Override
15 protected void initialize() {
16 }
17
18 @Override
19 protected void execute() {
20 shooter.reverseFlyWheel();
21 }
22
23 @Override
24 protected boolean isFinished() {
25 return false;
26 }
27
28 @Override
29 protected void end() {
30 shooter.stopFlyWheel();
31 }
32
33 @Override
34 protected void interrupted() {
35 end();
36 }
37
38 }