Total Complexity | 6 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package org.usfirst.frc.team3695.robot.commands; |
||
10 | public class ButtonCommandKillCompressor extends Command { |
||
11 | |||
12 | public ButtonCommandKillCompressor() { |
||
13 | requires(Robot.SUB_COMPRESSOR); |
||
14 | } |
||
15 | |||
16 | protected void initialize() { |
||
17 | Robot.SUB_COMPRESSOR.setState(false); |
||
18 | } |
||
19 | |||
20 | protected void execute() {} |
||
21 | |||
22 | protected boolean isFinished() { |
||
23 | return false; |
||
24 | } |
||
25 | |||
26 | protected void end() { |
||
27 | Robot.SUB_COMPRESSOR.setState(true); |
||
28 | } |
||
29 | |||
30 | protected void interrupted() { |
||
31 | end(); |
||
32 | } |
||
34 |