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
;
10 * Runs the intake continuously.
15 public class RunIntakeContinuous
extends Command
{
16 // create setter method for speed, use setSpeed method to do end() by setting
19 public RunIntakeContinuous() {
20 requires(Robot
.getIntake());
24 protected boolean isFinished() {
25 // TODO Auto-generated method stub
29 // Called just before this Command runs the first time
31 protected void initialize() {
35 // Called repeatedly when this Command is scheduled to run
37 protected void execute() {
38 Robot
.getIntake().setSpeed(Robot
.getIntake().INTAKE_SPEED
);
41 // Called once after isFinished returns true
43 protected void end() {
44 Intake
.intake
.setSpeed(0);
47 // Called when another command which requires one or more of the same
48 // subsystems is scheduled to run
50 protected void interrupted() {