Conditions | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package org.usfirst.frc.team3695.robot.commands; |
||
17 | protected void initialize() { |
||
18 | PID_ENABLED = !PID_ENABLED; |
||
19 | if (PID_ENABLED) { |
||
20 | Robot.SUB_DRIVE.pid.setPIDF(Util.getAndSetDouble("P", .5), |
||
21 | Util.getAndSetDouble("I", 0), |
||
22 | Util.getAndSetDouble("D", 0), |
||
23 | Util.getAndSetDouble("F", 0)); |
||
24 | } else { |
||
25 | Robot.SUB_DRIVE.pid.setPIDF(0,0,0,0); |
||
26 | } |
||
39 |
See this CWE advisory on why this is a security issue.