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

@@ -7,23 +7,39 @@
#pragma once
#include <support/deprecated.h>
namespace frc {
class ControllerPower {
public:
WPI_DEPRECATED("Use RobotController static class method")
static double GetInputVoltage();
WPI_DEPRECATED("Use RobotController static class method")
static double GetInputCurrent();
WPI_DEPRECATED("Use RobotController static class method")
static double GetVoltage3V3();
WPI_DEPRECATED("Use RobotController static class method")
static double GetCurrent3V3();
WPI_DEPRECATED("Use RobotController static class method")
static bool GetEnabled3V3();
WPI_DEPRECATED("Use RobotController static class method")
static int GetFaultCount3V3();
WPI_DEPRECATED("Use RobotController static class method")
static double GetVoltage5V();
WPI_DEPRECATED("Use RobotController static class method")
static double GetCurrent5V();
WPI_DEPRECATED("Use RobotController static class method")
static bool GetEnabled5V();
WPI_DEPRECATED("Use RobotController static class method")
static int GetFaultCount5V();
WPI_DEPRECATED("Use RobotController static class method")
static double GetVoltage6V();
WPI_DEPRECATED("Use RobotController static class method")
static double GetCurrent6V();
WPI_DEPRECATED("Use RobotController static class method")
static bool GetEnabled6V();
WPI_DEPRECATED("Use RobotController static class method")
static int GetFaultCount6V();
};