597bd65d18ca44be30885d09d056aee9070f13af
[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 requires(Robot.getDriveTrain());
17 }
18
19 @Override
20 protected void initialize() {
21 }
22
23 @Override
24 protected void execute() {
25 }
26
27 @Override
28 protected boolean isFinished() {
29 return true;
30 }
31
32 @Override
33 protected void end() {
34 Robot.getDriveTrain().stop();
35
36 }
37
38 @Override
39 protected void interrupted() {
40 end();
41 }
42 }