3c46bf4dfcf757e1e651bdf7a665d49822e6a458
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
;
8 public class ResetCatapult
extends Command
{
10 public ResetCatapult() {
11 requires(Robot
.shooter
);
15 protected void initialize() {
16 if (Robot
.shooter
.getCatapult1State() == Constants
.Shooter
.SHOOT
17 || Robot
.shooter
.getCatapult2State() == Constants
.Shooter
.SHOOT
)
18 Robot
.shooter
.resetCatapult();
22 protected void execute() {
27 protected boolean isFinished() {
32 protected void end() {
37 protected void interrupted() {