Add constructer comments
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / StopWinch.java
CommitLineData
9738295a
SG
1package org.usfirst.frc.team3501.robot.commands.climber;
2
a04ce2ff
SG
3import org.usfirst.frc.team3501.robot.Robot;
4
9738295a
SG
5import edu.wpi.first.wpilibj.command.Command;
6
7/**
e2e9a7a7
SG
8 * This command stops the winch
9 *
10 * post-condition: the motor values are set to 0.
9738295a
SG
11 *
12 * @author shivanighanta
13 *
14 */
15public class StopWinch extends Command {
ad877a7e
SG
16 /**
17 *
18 */
9738295a 19 public StopWinch() {
43980ce1
SG
20 requires(Robot.getClimber());
21
9738295a
SG
22 }
23
24 @Override
25 protected void initialize() {
26 }
27
28 @Override
29 protected void execute() {
9738295a
SG
30 }
31
32 @Override
33 protected boolean isFinished() {
9e39234e 34 return true;
9738295a
SG
35 }
36
37 @Override
38 protected void end() {
9e39234e 39 Robot.getClimber().stop();
9738295a
SG
40
41 }
42
43 @Override
44 protected void interrupted() {
9e39234e 45 end();
9738295a
SG
46 }
47}