Commit | Line | Data |
---|---|---|
6bb7f8ac | 1 | package org.usfirst.frc.team3501.robot.commands.shooter; |
b792da40 | 2 | |
355f49f3 | 3 | import org.usfirst.frc.team3501.robot.Constants; |
b792da40 E |
4 | import org.usfirst.frc.team3501.robot.Robot; |
5 | ||
6 | import edu.wpi.first.wpilibj.command.Command; | |
7 | ||
b87f9700 E |
8 | /** |
9 | * | |
10 | */ | |
11 | public class runShooter extends Command { | |
12 | ||
13 | public runShooter() { | |
355f49f3 | 14 | requires(Robot.shooter); |
b792da40 E |
15 | } |
16 | ||
02054861 | 17 | // default shooter speed is used to shoot when in front of the batter |
b792da40 E |
18 | @Override |
19 | protected void initialize() { | |
355f49f3 | 20 | Robot.shooter.setSpeed(Constants.Shooter.TESTING_SHOOTER_SPEED); |
b792da40 E |
21 | } |
22 | ||
23 | @Override | |
24 | protected void execute() { | |
b792da40 E |
25 | } |
26 | ||
27 | @Override | |
28 | protected boolean isFinished() { | |
29 | return true; | |
30 | } | |
31 | ||
32 | @Override | |
33 | protected void end() { | |
071ab315 | 34 | Robot.shooter.stop(); |
b792da40 E |
35 | } |
36 | ||
37 | @Override | |
38 | protected void interrupted() { | |
39 | } | |
40 | } |