mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Fixes a bug in the TiltPanCameraFixture that would cause the test to freeze and never complete instead of failing
Change-Id: Iff14f6cac937952cb015d36b967c4dfc5660d6ce
This commit is contained in:
@@ -49,7 +49,7 @@ public class TiltPanCameraFixture implements ITestFixture {
|
||||
Timer.delay(RESET_TIME);
|
||||
gyro.reset();
|
||||
double startTime = Timer.getFPGATimestamp();
|
||||
while(Math.abs(gyro.getAngle()) > 0.1){
|
||||
for(int i = 0; i < 100 && Math.abs(gyro.getAngle()) > 0.1; i++){
|
||||
Timer.delay(.0001);
|
||||
}
|
||||
double endTime = Timer.getFPGATimestamp();
|
||||
|
||||
Reference in New Issue
Block a user