3c46bf4dfcf757e1e651bdf7a665d49822e6a458
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / shooter / ResetCatapult.java
1 package org.usfirst.frc.team3501.robot.commands.shooter;
2
3 import org.usfirst.frc.team3501.robot.Constants;
4 import org.usfirst.frc.team3501.robot.Robot;
5
6 import edu.wpi.first.wpilibj.command.Command;
7
8 public class ResetCatapult extends Command {
9
10 public ResetCatapult() {
11 requires(Robot.shooter);
12 }
13
14 @Override
15 protected void initialize() {
16 if (Robot.shooter.getCatapult1State() == Constants.Shooter.SHOOT
17 || Robot.shooter.getCatapult2State() == Constants.Shooter.SHOOT)
18 Robot.shooter.resetCatapult();
19 }
20
21 @Override
22 protected void execute() {
23
24 }
25
26 @Override
27 protected boolean isFinished() {
28 return true;
29 }
30
31 @Override
32 protected void end() {
33
34 }
35
36 @Override
37 protected void interrupted() {
38
39 }
40
41 }