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 index wheel at a given speed for given time in seconds. |
7 | * |
8 | * pre-condition: fly wheel is running at full speed to prepare for shooting |
9 | * fuel |
10 | * |
0e77dfde |
11 | * @param motorVal |
a149fd64 |
12 | * value range is from -1 to 1 |
809609c9 |
13 | * @param time |
c0860df7 |
14 | * in seconds |
27d2386f |
15 | * @author Shaina |
809609c9 |
16 | */ |
17 | public class RunIndexWheel extends Command { |
c0860df7 |
18 | private double time; |
19 | private double motorVal; |
20 | |
21 | public RunIndexWheel(double motorVal, double time) { |
22 | this.motorVal = motorVal; |
23 | this.time = time; |
24 | } |
25 | |
26 | // Called just before this Command runs the first time |
27 | @Override |
28 | protected void initialize() { |
29 | } |
30 | |
31 | // Called repeatedly when this Command is scheduled to run |
32 | @Override |
33 | protected void execute() { |
34 | } |
35 | |
36 | // Called once after isFinished returns true |
37 | @Override |
38 | protected void end() { |
39 | } |
40 | |
41 | // Called when another command which requires one or more of the same |
42 | // subsystems is scheduled to run |
43 | @Override |
44 | protected void interrupted() { |
45 | } |
46 | |
47 | @Override |
48 | protected boolean isFinished() { |
49 | return false; |
50 | } |
809609c9 |
51 | |
52 | } |