Skip to content

Commit

Permalink
Improve robustness of ControlRequestLimits tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bhall-ctre committed Apr 11, 2024
1 parent 80ea4bf commit 67315bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/ControlRequestLimits/src/test/java/LimitTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private <T extends ControlRequest> void testControlPriv(ControlRequestTest<T> te
for (int i = 0; i < 20; ++i) {
talonfx.getSimState().setRawRotorPosition(0); // Set position/velocity so we can drive in the desired direction
talonfx.getSimState().setRotorVelocity(0);
Timer.delay(0.01); /* Delay just enough for things like motion magic to ramp */
Timer.delay(0.02); /* Delay just enough for things like motion magic to ramp */
}
BaseStatusSignal.waitForAll(1, appliedMotorVoltage, forwardLimitStatus, reverseLimitStatus);

Expand Down

0 comments on commit 67315bb

Please sign in to comment.