Commit | Line | Data |
---|---|---|
071ab315 KZ |
1 | package org.usfirst.frc.team3501.robot.commands.shooter; |
2 | ||
fee6b62e | 3 | import org.usfirst.frc.team3501.robot.Constants; |
071ab315 KZ |
4 | import org.usfirst.frc.team3501.robot.Robot; |
5 | ||
6 | import edu.wpi.first.wpilibj.command.Command; | |
7 | ||
e4fbab02 HD |
8 | public class ResetCatapult extends Command { |
9 | ||
10 | public ResetCatapult() { | |
11 | requires(Robot.shooter); | |
12 | } | |
071ab315 KZ |
13 | |
14 | @Override | |
15 | protected void initialize() { | |
fee6b62e ME |
16 | if (Robot.shooter.getCatapult1State() == Constants.Shooter.SHOOT |
17 | || Robot.shooter.getCatapult2State() == Constants.Shooter.SHOOT) | |
18 | Robot.shooter.resetCatapult(); | |
071ab315 KZ |
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() { | |
90cf1657 | 33 | |
071ab315 KZ |
34 | } |
35 | ||
36 | @Override | |
37 | protected void interrupted() { | |
38 | ||
39 | } | |
40 | ||
41 | } |