Total Complexity | 6 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | package org.usfirst.frc.team3695.robot.commands; |
||
9 | public class ButtonCommandKillPID extends Command { |
||
10 | |||
11 | public ButtonCommandKillPID() { |
||
12 | requires(Robot.SUB_DRIVE); |
||
13 | } |
||
14 | |||
15 | protected void initialize() { |
||
16 | Robot.SUB_DRIVE.setPIDF(0,0,0,0); |
||
17 | } |
||
18 | |||
19 | protected void execute() { } |
||
20 | |||
21 | protected boolean isFinished() { |
||
22 | return false; |
||
23 | } |
||
24 | |||
25 | protected void end() { |
||
26 | Robot.SUB_DRIVE.setPIDF(Util.getAndSetDouble("P", 1), |
||
27 | Util.getAndSetDouble("I", 1), |
||
28 | Util.getAndSetDouble("D", 1), |
||
29 | Util.getAndSetDouble("F", 1)); |
||
30 | } |
||
31 | |||
32 | protected void interrupted() {} |
||
33 | } |
||
34 |