809609c9 |
1 | package org.usfirst.frc.team3501.robot.commands.shooter; |
2 | |
3 | import edu.wpi.first.wpilibj.command.Command; |
4 | |
5 | /** |
4f2fa45c |
6 | * Runs index wheel continuously when corresponding button is pressed |
0e77dfde |
7 | * |
357feb5c |
8 | * Run stopIndexWheel to stop |
9 | * |
a2a99ce1 |
10 | * @param motorVal |
0e77dfde |
11 | * [-1,1] |
4f2fa45c |
12 | * @author shaina |
809609c9 |
13 | */ |
14 | public class RunIndexWheelContinuous extends Command { |
a2a99ce1 |
15 | private double motorVal; |
4f2fa45c |
16 | |
a2a99ce1 |
17 | public RunIndexWheelContinuous(double motorVal) { |
18 | this.motorVal = motorVal; |
4f2fa45c |
19 | } |
20 | |
21 | // Called just before this Command runs the first time |
22 | @Override |
23 | protected void initialize() { |
24 | } |
25 | |
26 | // Called repeatedly when this Command is scheduled to run |
27 | @Override |
28 | protected void execute() { |
29 | } |
30 | |
31 | // Called once after isFinished returns true |
32 | @Override |
33 | protected void end() { |
34 | } |
35 | |
36 | // Called when another command which requires one or more of the same |
37 | // subsystems is scheduled to run |
38 | @Override |
39 | protected void interrupted() { |
40 | } |
41 | |
42 | @Override |
43 | protected boolean isFinished() { |
44 | return false; |
45 | } |
809609c9 |
46 | |
47 | } |