9036f15f42ad2f13b18842266879ea0b5695631c
1 package org
.usfirst
.frc
.team3501
.robot
.commands
.intake
;
3 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Intake
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
9 * Runs the intake continuously.
14 public class RunIntakeContinuous
extends Command
{
15 // create setter method for speed, use setSpeed method to do end() by setting
18 public RunIntakeContinuous() {
23 protected boolean isFinished() {
24 // TODO Auto-generated method stub
28 // Called just before this Command runs the first time
30 protected void initialize() {
34 // Called repeatedly when this Command is scheduled to run
36 protected void execute() {
40 // Called once after isFinished returns true
42 protected void end() {
43 Intake
.intake
.setSpeed(0);
46 // Called when another command which requires one or more of the same
47 // subsystems is scheduled to run
49 protected void interrupted() {