Change SetMotorValue
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / StopWinch.java
CommitLineData
9738295a
SG
1package org.usfirst.frc.team3501.robot.commands.climber;
2
a04ce2ff
SG
3import org.usfirst.frc.team3501.robot.Robot;
4
9738295a
SG
5import edu.wpi.first.wpilibj.command.Command;
6
7/**
8 * Stops the winch
9 *
10 * @author shivanighanta
11 *
12 */
13public class StopWinch extends Command {
14
15 public StopWinch() {
a04ce2ff 16 requires(Robot.getClimber());
9738295a
SG
17 }
18
19 @Override
20 protected void initialize() {
21 }
22
23 @Override
24 protected void execute() {
9738295a
SG
25 }
26
27 @Override
28 protected boolean isFinished() {
9e39234e 29 return true;
9738295a
SG
30 }
31
32 @Override
33 protected void end() {
9e39234e 34 Robot.getClimber().stop();
9738295a
SG
35
36 }
37
38 @Override
39 protected void interrupted() {
9e39234e 40 end();
9738295a
SG
41 }
42}