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