Total Complexity | 7 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package org.usfirst.frc.team3695.robot.commands; |
||
9 | public class ButtonCommandHitTheDeck extends Command { |
||
10 | |||
11 | Boolean isFinished; |
||
|
|||
12 | |||
13 | public ButtonCommandHitTheDeck() { |
||
14 | requires(Robot.SUB_MAST); |
||
15 | } |
||
16 | |||
17 | protected void initialize() { |
||
18 | Robot.SUB_MAST.setOverride(true); |
||
19 | //isFinished = Robot.SUB_MAST.goToMiddle(); |
||
20 | } |
||
21 | |||
22 | protected void execute() { |
||
23 | isFinished = Robot.SUB_MAST.dropIt(); |
||
24 | if (isFinished) |
||
25 | end(); |
||
26 | } |
||
27 | |||
28 | protected boolean isFinished() { return isFinished; } |
||
29 | |||
30 | protected void end() { |
||
31 | |||
32 | } |
||
33 | |||
34 | protected void interrupted() { |
||
35 | end(); |
||
36 | } |
||
38 |