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

@@ -13,7 +13,7 @@
#include <HAL/HAL.h>
#include "DriverStation.h"
#include "Utility.h"
#include "RobotController.h"
namespace frc {
@@ -168,8 +168,7 @@ bool Timer::HasPeriodPassed(double period) {
*/
double Timer::GetFPGATimestamp() {
// FPGA returns the timestamp in microseconds
// Call the helper GetFPGATime() in Utility.cpp
return GetFPGATime() * 1.0e-6;
return RobotController::GetFPGATime() * 1.0e-6;
}
/**