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