Fix many errorprone warnings (#1247)

This fixes two real bugs:
- TimedRobot had a m_period that was hiding the IterativeRobotBase m_period
  and was not getting initialized.
- PDPSim was swapping two parameters to getCurrent()
This commit is contained in:
Peter Johnson
2018-07-29 16:47:22 -07:00
committed by GitHub
parent 6db5f80430
commit 0e9172f9a7
28 changed files with 50 additions and 43 deletions

View File

@@ -110,7 +110,7 @@ public class PIDBase extends SendableBase implements PIDInterface, PIDOutput {
/**
* Used internally for when Tolerance hasn't been set.
*/
public class NullTolerance implements Tolerance {
public static class NullTolerance implements Tolerance {
@Override
public boolean onTarget() {
throw new IllegalStateException("No tolerance value set when calling onTarget().");