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