projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add 'requires' command
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
intake
/
RunIntake.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java
b/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java
index e4f9cd7358511f7160bc5455549a5a414bdd1b2a..5452073515b0fb7d719b1d2df15200d682595dcf 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java
@@
-16,6
+16,7
@@
public class RunIntake extends Command {
public Timer timer;
public RunIntake(double timeToMove) {
+ requires(Robot.getIntake());
timer = new Timer();
this.timeToMove = timeToMove;
}