52280404754d0667d037f70c9436229420708dab
1 package org
.usfirst
.frc
.team3501
.robot
.commands
.intake
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
4 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Intake
;
6 import edu
.wpi
.first
.wpilibj
.command
.Command
;
9 * Stops running the intake.
14 public class StopIntake
extends Command
{
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() {
29 // Called once after isFinished returns true
31 protected void end() {
32 Intake
.intake
.setSpeed(0);
35 // Called when another command which requires one or more of the same
36 // subsystems is scheduled to run
38 protected void interrupted() {
43 protected boolean isFinished() {
44 // TODO Auto-generated method stub