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.CommandGroup;
import edu.wpi.first.wpilibj.command.WaitCommand;
* catapult.
*/
public Shoot() {
- if (Robot.shooter.usePhotogate()) {
- if (Robot.shooter.isBallInside()) {
- addSequential(new FireCatapult());
- addSequential(new WaitCommand(Constants.Shooter.WAIT_TIME));
- addSequential(new ResetCatapult());
- }
- } else {
- addSequential(new FireCatapult());
- addSequential(new WaitCommand(Constants.Shooter.WAIT_TIME));
- addSequential(new ResetCatapult());
- }
+ addSequential(new FireCatapult());
+ addSequential(new WaitCommand(Constants.Shooter.WAIT_TIME));
+ addSequential(new ResetCatapult());
}
}