projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add requires statement
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
intake
/
ReverseIntake.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntake.java
b/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntake.java
index 580b05967b147d6b9fe8b69d850267717fd83df5..6b7caff5658dca64b68708e9a35f137ff3337cbd 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntake.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntake.java
@@
-1,5
+1,7
@@
package org.usfirst.frc.team3501.robot.commands.intake;
package org.usfirst.frc.team3501.robot.commands.intake;
+import org.usfirst.frc.team3501.robot.Robot;
+
import edu.wpi.first.wpilibj.command.Command;
/**
import edu.wpi.first.wpilibj.command.Command;
/**
@@
-10,8
+12,7
@@
import edu.wpi.first.wpilibj.command.Command;
public class ReverseIntake extends Command {
public ReverseIntake(double timeToMove) {
public class ReverseIntake extends Command {
public ReverseIntake(double timeToMove) {
- // Use requires() here to declare subsystem dependencies
- // eg. requires(chassis);
+ requires(Robot.getIntake());
}
// Called just before this Command runs the first time
}
// Called just before this Command runs the first time