f44631661476e7d309e58abdf663b0d5b75c1fdd
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: This command must be run by a button in OI with
11 * button.whileHeld(...).
13 public class ReverseIntakeContinuous
extends Command
{
15 public ReverseIntakeContinuous() {
16 requires(Robot
.getIntake());
19 // Called just before this Command runs the first time
21 protected void initialize() {
24 // Called repeatedly when this Command is scheduled to run
26 protected void execute() {
27 Robot
.getIntake().runReverseIntake();
30 // Make this return true when this Command no longer needs to run execute()
32 protected boolean isFinished() {
36 // Called once after isFinished returns true
38 protected void end() {
39 Robot
.getIntake().stopIntake();
42 // Called when another command which requires one or more of the same
43 // subsystems is scheduled to run
45 protected void interrupted() {