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