projects
/
3501
/
stronghold-2016
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update ports to competition setup, minor bugfixes
[3501/stronghold-2016]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
intakearm
/
MoveIntakeArm.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArm.java
b/src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArm.java
index 1d24648f13e9f3a0bea18c0576d086366298d936..1991726ac0430491e27144202c7e544599ab4f7c 100755
(executable)
--- a/
src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArm.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArm.java
@@
-11,26
+11,28
@@
import edu.wpi.first.wpilibj.command.Command;
* specified direction the intake arm should move
*/
public class MoveIntakeArm extends Command {
* specified direction the intake arm should move
*/
public class MoveIntakeArm extends Command {
+ Value direction;
public MoveIntakeArm(Value direction) {
public MoveIntakeArm(Value direction) {
+ requires(Robot.intakeArm);
+ this.direction = direction;
+ }
+ @Override
+ protected void initialize() {
if (direction == Constants.IntakeArm.EXTEND)
Robot.intakeArm.extendPistons();
else
Robot.intakeArm.retractPistons();
}
if (direction == Constants.IntakeArm.EXTEND)
Robot.intakeArm.extendPistons();
else
Robot.intakeArm.retractPistons();
}
- @Override
- protected void initialize() {
- }
-
@Override
protected void execute() {
}
@Override
protected boolean isFinished() {
@Override
protected void execute() {
}
@Override
protected boolean isFinished() {
- return
fals
e;
+ return
tru
e;
}
@Override
}
@Override