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
.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
{
15 public MoveIntakeArm(Value direction
) {
17 if (direction
== Constants
.IntakeArm
.EXTEND
)
18 Robot
.intakeArm
.extendPistons();
20 Robot
.intakeArm
.retractPistons();
24 protected void initialize() {
28 protected void execute() {
32 protected boolean isFinished() {
37 protected void end() {
41 protected void interrupted() {