Commit | Line | Data |
---|---|---|
f43a1c52 CZ |
1 | package org.usfirst.frc.team3501.robot.commands.intake; |
2 | ||
3 | import edu.wpi.first.wpilibj.command.Command; | |
4 | ||
5 | /** | |
6 | * Reverses the intake until the button triggering this command is released | |
7 | * | |
8 | * pre-condition: button is pressed | |
9 | */ | |
10 | public class ReverseIntakeContinuous extends Command { | |
11 | ||
12 | public ReverseIntakeContinuous(double timeToMove) { | |
13 | // Use requires() here to declare subsystem dependencies | |
14 | // eg. requires(chassis); | |
15 | } | |
16 | ||
17 | // Called just before this Command runs the first time | |
18 | @Override | |
19 | protected void initialize() { | |
20 | } | |
21 | ||
22 | // Called repeatedly when this Command is scheduled to run | |
23 | @Override | |
24 | protected void execute() { | |
25 | } | |
26 | ||
27 | // Make this return true when this Command no longer needs to run execute() | |
28 | @Override | |
29 | protected boolean isFinished() { | |
30 | return false; | |
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 | } |