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

@@ -29,11 +29,11 @@ public class TimerTest extends AbstractComsSetup {
@Test
public void delayTest() {
// Given
long startTime = Utility.getFPGATime();
long startTime = RobotController.getFPGATime();
// When
Timer.delay(TIMER_RUNTIME / 1000000);
long endTime = Utility.getFPGATime();
long endTime = RobotController.getFPGATime();
long difference = endTime - startTime;
// Then