Commit | Line | Data |
---|---|---|
9738295a SG |
1 | package org.usfirst.frc.team3501.robot.commands.climber; |
2 | ||
a04ce2ff SG |
3 | import org.usfirst.frc.team3501.robot.Robot; |
4 | ||
9738295a SG |
5 | import 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 | */ | |
15 | public class StopWinch extends Command { | |
16 | ||
17 | public StopWinch() { | |
18 | } | |
19 | ||
20 | @Override | |
21 | protected void initialize() { | |
22 | } | |
23 | ||
24 | @Override | |
25 | protected void execute() { | |
9738295a SG |
26 | } |
27 | ||
28 | @Override | |
29 | protected boolean isFinished() { | |
9e39234e | 30 | return true; |
9738295a SG |
31 | } |
32 | ||
33 | @Override | |
34 | protected void end() { | |
9e39234e | 35 | Robot.getClimber().stop(); |
9738295a SG |
36 | |
37 | } | |
38 | ||
39 | @Override | |
40 | protected void interrupted() { | |
9e39234e | 41 | end(); |
9738295a SG |
42 | } |
43 | } |