mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Increases the runtime of the PID test to improve stability.
Change-Id: I852ac6115f0dfe4d39940fbecc34f1b52e6cc12a
This commit is contained in:
@@ -175,7 +175,7 @@ public class PIDTest extends AbstractComsSetup {
|
||||
assertEquals("Did not correctly set set-point",setpoint, new Double(controller.getSetpoint()));
|
||||
}
|
||||
|
||||
@Test (timeout = 6000)
|
||||
@Test (timeout = 15000)
|
||||
public void testRotateToTarget() {
|
||||
setupAbsoluteTollerance();
|
||||
setupOutputRange();
|
||||
@@ -184,7 +184,7 @@ public class PIDTest extends AbstractComsSetup {
|
||||
controller.setSetpoint(setpoint);
|
||||
assertEquals(pidData() +"did not have an error of " + setpoint, setpoint, controller.getError(), 0);
|
||||
controller.enable();
|
||||
Timer.delay(5);
|
||||
Timer.delay(10);
|
||||
controller.disable();
|
||||
assertTrue(pidData() + "Was not on Target. Controller Error: " + controller.getError(), controller.onTarget());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user