mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Adds RobotController class (#828)
Unifies random functionality from other classes Deprecates all old functions.
This commit is contained in:
committed by
Peter Johnson
parent
88a6b4ac38
commit
8b7aa61091
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user