PIDController class now uses LinearDigitalFilter for filtering velocity instead of internal queue (#38)

This commit is contained in:
Tyler Veness
2017-11-19 15:58:30 -08:00
committed by Peter Johnson
parent 7f46b50b21
commit 4a07f0380f
8 changed files with 48 additions and 125 deletions

View File

@@ -185,8 +185,8 @@ public class MotorEncoderTest extends AbstractComsSetup {
pid.disable();
assertTrue(
"PID loop did not reach setpoint within 10 seconds. The average error was: " + pid
.getAvgError() + "The current error was" + pid.getError(), pid.onTarget());
"PID loop did not reach setpoint within 10 seconds. The current error was" + pid
.getError(), pid.onTarget());
pid.free();
}
@@ -206,7 +206,7 @@ public class MotorEncoderTest extends AbstractComsSetup {
pid.disable();
assertTrue(
"PID loop did not reach setpoint within 10 seconds. The error was: " + pid.getAvgError(),
"PID loop did not reach setpoint within 10 seconds. The error was: " + pid.getError(),
pid.onTarget());
pid.free();