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