projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
competition fixes
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
climber
/
StopWinch.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/climber/StopWinch.java
b/src/org/usfirst/frc/team3501/robot/commands/climber/StopWinch.java
index 903f22b94488c57bb6bdee942894ef6f4b40e084..0a2b5f97b7e2be8008c555461496eaa81cf7da6b 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/commands/climber/StopWinch.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/climber/StopWinch.java
@@
-1,20
+1,21
@@
package org.usfirst.frc.team3501.robot.commands.climber;
import org.usfirst.frc.team3501.robot.Robot;
package org.usfirst.frc.team3501.robot.commands.climber;
import org.usfirst.frc.team3501.robot.Robot;
+import org.usfirst.frc.team3501.robot.subsystems.Climber;
import edu.wpi.first.wpilibj.command.Command;
/**
import edu.wpi.first.wpilibj.command.Command;
/**
- * This command stops the winch
- *
- * post-condition: the motor values are set to 0.
+ * Stops the winch
*
* @author shivanighanta
*
*/
public class StopWinch extends Command {
*
* @author shivanighanta
*
*/
public class StopWinch extends Command {
+ Climber climber = Robot.getClimber();
public StopWinch() {
public StopWinch() {
+ requires(climber);
}
@Override
}
@Override
@@
-32,8
+33,7
@@
public class StopWinch extends Command {
@Override
protected void end() {
@Override
protected void end() {
- Robot.getClimber().stop();
-
+ climber.stop();
}
@Override
}
@Override