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

@@ -15,6 +15,7 @@
#include <HAL/DriverStation.h>
#include <llvm/Twine.h>
#include <support/deprecated.h>
#include <support/mutex.h>
#include "ErrorBase.h"
@@ -68,7 +69,9 @@ class DriverStation : public ErrorBase, public RobotStateInterface {
bool IsDSAttached() const;
bool IsNewControlData() const;
bool IsFMSAttached() const;
WPI_DEPRECATED("Use RobotController static class method")
bool IsSysActive() const;
WPI_DEPRECATED("Use RobotController static class method")
bool IsBrownedOut() const;
std::string GetGameSpecificMessage() const;