1 package org
.usfirst
.frc
.team3501
.robot
.commands
.intakearm
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
;
4 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
6 import edu
.wpi
.first
.wpilibj
.command
.Command
;
8 public class RunIntake
extends Command
{
11 public RunIntake(int direction
) {
12 requires(Robot
.intakeArm
);
13 this.direction
= direction
;
17 protected void initialize() {
18 if (direction
== Constants
.IntakeArm
.IN
)
19 Robot
.intakeArm
.intakeBall();
21 Robot
.intakeArm
.outputBall();
25 protected void execute() {
29 protected boolean isFinished() {
34 protected void end() {
38 protected void interrupted() {