mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
PIDController class now uses LinearDigitalFilter for filtering velocity instead of internal queue (#38)
This commit is contained in:
committed by
Peter Johnson
parent
7f46b50b21
commit
4a07f0380f
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user