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