| Total Complexity | 6 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | package org.usfirst.frc.team3695.robot.commands; |
||
| 13 | public class ButtonCommandClamp extends Command {
|
||
| 14 | |||
| 15 | Direction direction; |
||
| 16 | |||
| 17 | public ButtonCommandClamp() {
|
||
| 18 | requires(Robot.SUB_CLAMP); |
||
| 19 | } |
||
| 20 | |||
| 21 | protected void initialize() {
|
||
| 22 | Robot.SUB_CLAMP.openArms(); |
||
| 23 | } |
||
| 24 | |||
| 25 | protected void execute() {}
|
||
| 26 | |||
| 27 | protected boolean isFinished() {
|
||
| 28 | return false; |
||
| 29 | } |
||
| 30 | |||
| 31 | protected void end() {
|
||
| 32 | Robot.SUB_CLAMP.closeArms(); |
||
| 33 | } |
||
| 34 | |||
| 35 | protected void interrupted() {
|
||
| 36 | end(); |
||
| 37 | } |
||
| 39 |