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() { | |
16 | requires(Robot.getClimber()); | |
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() { | |
34 | Robot.getClimber().stop(); | |
35 | ||
36 | } | |
37 | ||
38 | @Override | |
39 | protected void interrupted() { | |
40 | end(); | |
41 | } | |
42 | } |