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:
Jonathan Leitschuh
2014-06-26 15:56:37 -04:00
parent b27791544b
commit 072b92e55a

View File

@@ -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();