add Motor value in constants
[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 {
16
17 public StopWinch() {
43980ce1
SG
18 requires(Robot.getClimber());
19
9738295a
SG
20 }
21
22 @Override
23 protected void initialize() {
24 }
25
26 @Override
27 protected void execute() {
9738295a
SG
28 }
29
30 @Override
31 protected boolean isFinished() {
9e39234e 32 return true;
9738295a
SG
33 }
34
35 @Override
36 protected void end() {
9e39234e 37 Robot.getClimber().stop();
9738295a
SG
38
39 }
40
41 @Override
42 protected void interrupted() {
9e39234e 43 end();
9738295a
SG
44 }
45}