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