Adds RobotController class (#828)

Unifies random functionality from other classes
Deprecates all old functions.
This commit is contained in:
Thad House
2017-12-10 21:52:49 -08:00
committed by Peter Johnson
parent 88a6b4ac38
commit 8b7aa61091
21 changed files with 668 additions and 19 deletions

View File

@@ -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,