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 | * |
493a4f87 |
9 | * @param motorVal |
63572d8b |
10 | * value range from -1 to 1 |
809609c9 |
11 | * @param time |
493a4f87 |
12 | * in seconds |
973f0ac4 |
13 | * @author Shaina |
809609c9 |
14 | */ |
15 | public class RunFlyWheel extends Command { |
493a4f87 |
16 | private double motorVal; |
17 | private double time; |
18 | |
19 | public RunFlyWheel(double motorVal, double time) { |
20 | this.motorVal = motorVal; |
21 | this.time = time; |
22 | } |
23 | |
24 | // Called just before this Command runs the first time |
25 | @Override |
26 | protected void initialize() { |
27 | } |
28 | |
29 | // Called repeatedly when this Command is scheduled to run |
30 | @Override |
31 | protected void execute() { |
32 | } |
33 | |
34 | // Called once after isFinished returns true |
35 | @Override |
36 | protected void end() { |
37 | } |
38 | |
39 | // Called when another command which requires one or more of the same |
40 | // subsystems is scheduled to run |
41 | @Override |
42 | protected void interrupted() { |
43 | } |
44 | |
45 | @Override |
46 | protected boolean isFinished() { |
47 | return false; |
48 | } |
809609c9 |
49 | |
50 | } |