1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
4 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Shooter
;
6 import edu
.wpi
.first
.wpilibj
.command
.Command
;
9 * This command increases the speed at which the flywheel runs at by a fixed
12 * post-condition: the shooting speed is incremented, such that whenever the
13 * flywheel is run, it will run at the increased shooting speed
15 public class IncreaseShootingSpeed
extends Command
{
16 private Shooter shooter
= Robot
.getShooter();
18 public IncreaseShootingSpeed() {
23 protected void initialize() {
24 shooter
.setCurrentShootingSpeed(
25 shooter
.getCurrentShootingSpeed() + shooter
.SHOOTING_SPEED_INCREMENT
);
29 protected void execute() {
33 protected void end() {
37 protected void interrupted() {
42 protected boolean isFinished() {