Delete copies of methods, and change initialize code in runIntakeContinuous and runRe...
[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());
0c916244
SG
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() {
9d7d6676 34 Robot.getDriveTrain().stop();
0c916244
SG
35
36 }
37
38 @Override
39 protected void interrupted() {
40 end();
41 }
42}