Fix merging errors with climber subclass
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / StopWinch.java
CommitLineData
0c916244
SG
1package org.usfirst.frc.team3501.robot.commands.climber;
2
3import org.usfirst.frc.team3501.robot.Robot;
4
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() {
9d7d6676 16 requires(Robot.getDriveTrain());
7b3f27eb 17 requires(Robot.getClimber());
0c916244
SG
18 }
19
20 @Override
21 protected void initialize() {
22 }
23
24 @Override
25 protected void execute() {
26 }
27
28 @Override
29 protected boolean isFinished() {
30 return true;
31 }
32
33 @Override
34 protected void end() {
9d7d6676 35 Robot.getDriveTrain().stop();
0c916244
SG
36
37 }
38
39 @Override
40 protected void interrupted() {
41 end();
42 }
43}