code review changes
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / IncreaseShootingSpeed.java
CommitLineData
f43a1c52
CZ
1package org.usfirst.frc.team3501.robot.commands.shooter;
2
ad7e6b1e
NA
3import org.usfirst.frc.team3501.robot.Robot;
4import org.usfirst.frc.team3501.robot.subsystems.Shooter;
5
f43a1c52
CZ
6import edu.wpi.first.wpilibj.command.Command;
7
8/**
9 * This command increases the speed at which the flywheel runs at by a fixed
10 * constant
11 *
12 * post-condition: the shooting speed is incremented, such that whenever the
13 * flywheel is run, it will run at the increased shooting speed
14 */
15public class IncreaseShootingSpeed extends Command {
ad7e6b1e
NA
16 private Shooter shooter = Robot.getShooter();
17
f43a1c52
CZ
18 public IncreaseShootingSpeed() {
19
20 }
21
f43a1c52
CZ
22 @Override
23 protected void initialize() {
7ba6bc91 24 shooter.incrementTargetShootingSpeed();
f43a1c52
CZ
25 }
26
f43a1c52
CZ
27 @Override
28 protected void execute() {
29 }
30
f43a1c52
CZ
31 @Override
32 protected void end() {
33 }
34
f43a1c52
CZ
35 @Override
36 protected void interrupted() {
ad7e6b1e 37 end();
f43a1c52
CZ
38 }
39
40 @Override
41 protected boolean isFinished() {
ad7e6b1e
NA
42
43 return true;
f43a1c52
CZ
44 }
45
46}