809609c9 |
1 | package org.usfirst.frc.team3501.robot.commands.shooter; |
2 | |
3 | import edu.wpi.first.wpilibj.command.Command; |
4 | |
5 | /** |
973f0ac4 |
6 | * This command runs the fly wheel at a given speed for a given time. The fly |
7 | * wheel is intended to shoot balls fed by the intake wheel. |
809609c9 |
8 | * |
973f0ac4 |
9 | * @author Shaina |
809609c9 |
10 | */ |
11 | public class RunFlyWheel extends Command { |
493a4f87 |
12 | private double motorVal; |
13 | private double time; |
14 | |
b7ef589a |
15 | /** |
16 | * See JavaDoc comment in class for details |
17 | * |
18 | * @param motorVal |
19 | * value range from -1 to 1 |
20 | * @param time |
21 | * in seconds, amount of time to run fly wheel motor |
22 | */ |
493a4f87 |
23 | public RunFlyWheel(double motorVal, double time) { |
24 | this.motorVal = motorVal; |
25 | this.time = time; |
26 | } |
27 | |
28 | // Called just before this Command runs the first time |
29 | @Override |
30 | protected void initialize() { |
31 | } |
32 | |
33 | // Called repeatedly when this Command is scheduled to run |
34 | @Override |
35 | protected void execute() { |
36 | } |
37 | |
38 | // Called once after isFinished returns true |
39 | @Override |
40 | protected void end() { |
41 | } |
42 | |
43 | // Called when another command which requires one or more of the same |
44 | // subsystems is scheduled to run |
45 | @Override |
46 | protected void interrupted() { |
47 | } |
48 | |
49 | @Override |
50 | protected boolean isFinished() { |
51 | return false; |
52 | } |
809609c9 |
53 | |
54 | } |