1 package org
.usfirst
.frc
.team3501
.robot
.commands
.intakearm
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
.IntakeArm
;
4 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
6 import edu
.wpi
.first
.wpilibj
.DoubleSolenoid
.Value
;
7 import edu
.wpi
.first
.wpilibj
.command
.Command
;
10 * This command will expand or retract the intake arm's pistons depending on the
11 * specified direction the intake arm should move
13 public class MoveIntakeArm
extends Command
{
16 public MoveIntakeArm(Value direction
) {
17 requires(Robot
.intakeArm
);
18 this.direction
= direction
;
22 protected void initialize() {
23 if (direction
== IntakeArm
.EXTEND
)
24 Robot
.intakeArm
.extendPistons();
26 Robot
.intakeArm
.retractPistons();
30 protected void execute() {
34 protected boolean isFinished() {
39 protected void end() {
43 protected void interrupted() {