Commit | Line | Data |
---|---|---|
0c916244 SG |
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() { | |
0c916244 SG |
16 | } |
17 | ||
18 | @Override | |
19 | protected void initialize() { | |
20 | } | |
21 | ||
22 | @Override | |
23 | protected void execute() { | |
24 | } | |
25 | ||
26 | @Override | |
27 | protected boolean isFinished() { | |
28 | return true; | |
29 | } | |
30 | ||
31 | @Override | |
32 | protected void end() { | |
33 | Robot.getClimber().stop(); | |
34 | ||
35 | } | |
36 | ||
37 | @Override | |
38 | protected void interrupted() { | |
39 | end(); | |
40 | } | |
41 | } |