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