Set Button Value
[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() {
16 }
17
18 @Override
19 protected void initialize() {
20 }
21
22 @Override
23 protected void execute() {
9738295a
SG
24 }
25
26 @Override
27 protected boolean isFinished() {
9e39234e 28 return true;
9738295a
SG
29 }
30
31 @Override
32 protected void end() {
9e39234e 33 Robot.getClimber().stop();
9738295a
SG
34
35 }
36
37 @Override
38 protected void interrupted() {
9e39234e 39 end();
9738295a
SG
40 }
41}