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