Set buttons in OI to run changeSpeed command when pressed
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / changeSpeed.java
CommitLineData
b792da40
E
1package org.usfirst.frc.team3501.robot.commands;
2
3import org.usfirst.frc.team3501.robot.Robot;
4
5import edu.wpi.first.wpilibj.command.Command;
6
7public 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}