mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
More updates to the Gyro test fixing potential null pointer exception
also retuned the deviation over time test to make it pass more reliably. Ran sucessfully 40/40 times run including several run with the entire wpilibj Change-Id: I2e42c368fdb81f9206e15ce39878ea105da1e405
This commit is contained in:
@@ -100,7 +100,7 @@ public class GyroTest extends AbstractComsSetup {
|
||||
assertEquals(errorMessage(angle, 0), 0, angle, .5);
|
||||
Timer.delay(5);
|
||||
angle = gyro.getAngle();
|
||||
assertEquals("After 5 seconds " + errorMessage(angle, 0), 0, angle, 1);
|
||||
assertEquals("After 5 seconds " + errorMessage(angle, 0), 0, angle, 2.0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user