1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
;
4 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
6 import edu
.wpi
.first
.wpilibj
.command
.Command
;
10 * This command will retract the catapult pistons.
13 public class ResetCatapult
extends Command
{
15 public ResetCatapult() {
16 requires(Robot
.shooter
);
20 protected void initialize() {
21 if (Robot
.shooter
.getCatapult1State() == Constants
.Shooter
.SHOOT
22 || Robot
.shooter
.getCatapult2State() == Constants
.Shooter
.SHOOT
)
23 Robot
.shooter
.resetCatapult();
27 protected void execute() {
32 protected boolean isFinished() {
37 protected void end() {
42 protected void interrupted() {