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