package org.usfirst.frc.team3501.robot.commands.shooter;
+import org.usfirst.frc.team3501.robot.Constants;
import org.usfirst.frc.team3501.robot.Robot;
import edu.wpi.first.wpilibj.command.Command;
@Override
protected void initialize() {
- Robot.shooter.resetCatapult();
+ if (Robot.shooter.getCatapult1State() == Constants.Shooter.SHOOT
+ || Robot.shooter.getCatapult2State() == Constants.Shooter.SHOOT)
+ Robot.shooter.resetCatapult();
}
@Override