mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Adds RobotController class (#828)
Unifies random functionality from other classes Deprecates all old functions.
This commit is contained in:
committed by
Peter Johnson
parent
88a6b4ac38
commit
8b7aa61091
@@ -28,13 +28,13 @@ public class DriverStationTest extends AbstractComsSetup {
|
||||
|
||||
@Test
|
||||
public void waitForDataTest() {
|
||||
long startTime = Utility.getFPGATime();
|
||||
long startTime = RobotController.getFPGATime();
|
||||
|
||||
// Wait for data 50 times
|
||||
for (int i = 0; i < 50; i++) {
|
||||
DriverStation.getInstance().waitForData();
|
||||
}
|
||||
long endTime = Utility.getFPGATime();
|
||||
long endTime = RobotController.getFPGATime();
|
||||
long difference = endTime - startTime;
|
||||
|
||||
assertEquals("DriverStation waitForData did not wait long enough", TIMER_RUNTIME, difference,
|
||||
|
||||
Reference in New Issue
Block a user