make extend and retract intake arm piston methods and a command
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / intakearm / MoveIntakeArm.java
1 package org.usfirst.frc.team3501.robot.commands.intakearm;
2
3 import org.usfirst.frc.team3501.robot.Constants;
4 import org.usfirst.frc.team3501.robot.Robot;
5
6 import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
7 import edu.wpi.first.wpilibj.command.Command;
8
9 /**
10 * This command will expand or retract the intake arm's pistons depending on the
11 * specified direction the intake arm should move
12 */
13 public class MoveIntakeArm extends Command {
14
15 public MoveIntakeArm(Value direction) {
16
17 if (direction == Constants.IntakeArm.EXTEND)
18 Robot.intakeArm.extendPistons();
19 else
20 Robot.intakeArm.retractPistons();
21 }
22
23 @Override
24 protected void initialize() {
25 }
26
27 @Override
28 protected void execute() {
29 }
30
31 @Override
32 protected boolean isFinished() {
33 return false;
34 }
35
36 @Override
37 protected void end() {
38 }
39
40 @Override
41 protected void interrupted() {
42 }
43 }