0a2b5f97b7e2be8008c555461496eaa81cf7da6b
[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 import org.usfirst.frc.team3501.robot.subsystems.Climber;
5
6 import edu.wpi.first.wpilibj.command.Command;
7
8 /**
9 * Stops the winch
10 *
11 * @author shivanighanta
12 *
13 */
14 public class StopWinch extends Command {
15 Climber climber = Robot.getClimber();
16
17 public StopWinch() {
18 requires(climber);
19 }
20
21 @Override
22 protected void initialize() {
23 }
24
25 @Override
26 protected void execute() {
27 }
28
29 @Override
30 protected boolean isFinished() {
31 return true;
32 }
33
34 @Override
35 protected void end() {
36 climber.stop();
37 }
38
39 @Override
40 protected void interrupted() {
41 end();
42 }
43 }