f387112ef612a0cf3327dbe5e1e3c89a018c89b7
1 package org
.usfirst
.frc
.team3501
.robot
.commands
.intake
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
8 * Reverses the intake until the button triggering this command is released
10 * pre-condition: button is pressed
12 public class ReverseIntakeContinuous
extends Command
{
14 public ReverseIntakeContinuous() {
15 requires(Robot
.getIntake());
18 // Called just before this Command runs the first time
20 protected void initialize() {
21 Robot
.getIntake().runReverseIntake();
25 // Called repeatedly when this Command is scheduled to run
27 protected void execute() {
31 // Make this return true when this Command no longer needs to run execute()
33 protected boolean isFinished() {
37 // Called once after isFinished returns true
39 protected void end() {
40 Robot
.getIntake().stopIntake();
43 // Called when another command which requires one or more of the same
44 // subsystems is scheduled to run
46 protected void interrupted() {