Fix some errors
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / utils / PIDController.java
index 2e40d7a514f0176ba9dd1bad50c368ff004670dc..5077fc084bc5fbce81d6ed78614b5ad285aceef1 100644 (file)
@@ -179,15 +179,13 @@ public class PIDController implements LiveWindowSendable {
   private final ITableListener m_listener = (table, key, value, isNew) -> {
     if (key.equals(Constants.DriveTrain.P_VAL)
         || key.equals(Constants.DriveTrain.I_VAL)
-        || key.equals(Constants.DriveTrain.D_VAL)
-        || key.equals(Constants.DriveTrain.MOTOR_VAL)) {
+        || key.equals(Constants.DriveTrain.D_VAL)) {
       if (getP() != table.getNumber(Constants.DriveTrain.P_VAL, 0.0)
           || getP() != table.getNumber(Constants.DriveTrain.I_VAL, 0.0)
           || getD() != table.getNumber(Constants.DriveTrain.D_VAL, 0.0)) {
         setConstants(table.getNumber(Constants.DriveTrain.P_VAL, 0.0),
             table.getNumber(Constants.DriveTrain.I_VAL, 0.0),
-            table.getNumber(Constants.DriveTrain.D_VAL, 0.0),
-            table.getNumber(Constants.DriveTrain.MOTOR_VAL, 0.0));
+            table.getNumber(Constants.DriveTrain.D_VAL, 0.0));
       }
     } else if (key.equals(Constants.DriveTrain.SETPOINT)) {
       if (getSetpoint() != (Double) value) {