| Total Complexity | 6 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | package org.usfirst.frc.team3695.robot.commands; |
||
| 8 | public class ToggleCommandDock extends Command {
|
||
| 9 | |||
| 10 | boolean isFinished; |
||
|
|
|||
| 11 | |||
| 12 | public ToggleCommandDock() {
|
||
| 13 | requires(Robot.SUB_DRIVE); |
||
| 14 | isFinished = false; |
||
| 15 | } |
||
| 16 | |||
| 17 | protected void initialize() {
|
||
| 18 | Robot.SUB_DRIVE.toggleDocking(Util.getAndSetDouble("Docking Inhibitor", 0.5d));
|
||
| 19 | isFinished = true; |
||
| 20 | } |
||
| 21 | |||
| 22 | protected void execute() {}
|
||
| 23 | |||
| 24 | protected boolean isFinished() { return isFinished; }
|
||
| 25 | |||
| 26 | protected void end() {
|
||
| 27 | isFinished = false; |
||
| 28 | } |
||
| 29 | |||
| 30 | protected void interrupted() {
|
||
| 31 | end(); |
||
| 32 | } |
||
| 34 |