Fix merging errors with climber subclass
[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 requires(Robot.getClimber());
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() {
35 Robot.getDriveTrain().stop();
36
37 }
38
39 @Override
40 protected void interrupted() {
41 end();
42 }
43 }