Commit | Line | Data |
---|---|---|
b792da40 E |
1 | package org.usfirst.frc.team3501.robot.commands; |
2 | ||
3 | import org.usfirst.frc.team3501.robot.Robot; | |
4 | ||
5 | import edu.wpi.first.wpilibj.command.Command; | |
6 | ||
7 | public class changeSpeed extends Command { | |
8 | double change = 0.0; | |
9 | ||
10 | public changeSpeed(double change) { | |
11 | this.change = change; | |
12 | } | |
13 | ||
14 | @Override | |
15 | protected void initialize() { | |
16 | } | |
17 | ||
18 | @Override | |
19 | protected void execute() { | |
20 | Robot.shooter.changeSpeed(change); | |
21 | } | |
22 | ||
23 | @Override | |
24 | protected boolean isFinished() { | |
25 | return true; | |
26 | } | |
27 | ||
28 | @Override | |
29 | protected void end() { | |
30 | } | |
31 | ||
32 | @Override | |
33 | protected void interrupted() { | |
34 | } | |
35 | } |