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