projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change isFinished return value to true and add 'requires' command
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
intake
/
StopIntake.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java
b/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java
index 54e8a603b5aff28bb1b23e8871f921d3b62a0c6d..52280404754d0667d037f70c9436229420708dab 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java
@@
-1,5
+1,6
@@
package org.usfirst.frc.team3501.robot.commands.intake;
package org.usfirst.frc.team3501.robot.commands.intake;
+import org.usfirst.frc.team3501.robot.Robot;
import org.usfirst.frc.team3501.robot.subsystems.Intake;
import edu.wpi.first.wpilibj.command.Command;
import org.usfirst.frc.team3501.robot.subsystems.Intake;
import edu.wpi.first.wpilibj.command.Command;
@@
-12,7
+13,7
@@
import edu.wpi.first.wpilibj.command.Command;
*/
public class StopIntake extends Command {
public StopIntake() {
*/
public class StopIntake extends Command {
public StopIntake() {
-
+ requires(Robot.getIntake());
}
// Called just before this Command runs the first time
}
// Called just before this Command runs the first time
@@
-41,7
+42,7
@@
public class StopIntake extends Command {
@Override
protected boolean isFinished() {
// TODO Auto-generated method stub
@Override
protected boolean isFinished() {
// TODO Auto-generated method stub
- return
fals
e;
+ return
tru
e;
}
}
}
}