WPILibC++  unspecified
ControllerPower.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2011-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <wpi/deprecated.h>
11 
12 namespace frc {
13 
15  public:
22  WPI_DEPRECATED("Use RobotController static class method")
23  static double GetInputVoltage();
24 
31  WPI_DEPRECATED("Use RobotController static class method")
32  static double GetInputCurrent();
33 
40  WPI_DEPRECATED("Use RobotController static class method")
41  static double GetVoltage3V3();
42 
49  WPI_DEPRECATED("Use RobotController static class method")
50  static double GetCurrent3V3();
51 
60  WPI_DEPRECATED("Use RobotController static class method")
61  static bool GetEnabled3V3();
62 
70  WPI_DEPRECATED("Use RobotController static class method")
71  static int GetFaultCount3V3();
72 
79  WPI_DEPRECATED("Use RobotController static class method")
80  static double GetVoltage5V();
81 
88  WPI_DEPRECATED("Use RobotController static class method")
89  static double GetCurrent5V();
90 
99  WPI_DEPRECATED("Use RobotController static class method")
100  static bool GetEnabled5V();
101 
109  WPI_DEPRECATED("Use RobotController static class method")
110  static int GetFaultCount5V();
111 
118  WPI_DEPRECATED("Use RobotController static class method")
119  static double GetVoltage6V();
120 
127  WPI_DEPRECATED("Use RobotController static class method")
128  static double GetCurrent6V();
129 
138  WPI_DEPRECATED("Use RobotController static class method")
139  static bool GetEnabled6V();
140 
148  WPI_DEPRECATED("Use RobotController static class method")
149  static int GetFaultCount6V();
150 };
151 
152 } // namespace frc
Definition: Utility.cpp:119
static int GetFaultCount5V()
Get the count of the total current faults on the 5V rail since the controller has booted...
Definition: ControllerPower.cpp:82
static double GetCurrent3V3()
Get the current output of the 3.3V rail.
Definition: ControllerPower.cpp:40
static double GetInputCurrent()
Get the input current to the robot controller.
Definition: ControllerPower.cpp:26
static bool GetEnabled3V3()
Get the enabled state of the 3.3V rail.
Definition: ControllerPower.cpp:47
static double GetInputVoltage()
Get the input voltage to the robot controller.
Definition: ControllerPower.cpp:19
static bool GetEnabled6V()
Get the enabled state of the 6V rail.
Definition: ControllerPower.cpp:103
static double GetCurrent6V()
Get the current output of the 6V rail.
Definition: ControllerPower.cpp:96
static double GetCurrent5V()
Get the current output of the 5V rail.
Definition: ControllerPower.cpp:68
Definition: ControllerPower.h:14
static int GetFaultCount6V()
Get the count of the total current faults on the 6V rail since the controller has booted...
Definition: ControllerPower.cpp:110
static double GetVoltage6V()
Get the voltage of the 6V rail.
Definition: ControllerPower.cpp:89
static int GetFaultCount3V3()
Get the count of the total current faults on the 3.3V rail since the controller has booted...
Definition: ControllerPower.cpp:54
static double GetVoltage5V()
Get the voltage of the 5V rail.
Definition: ControllerPower.cpp:61
static bool GetEnabled5V()
Get the enabled state of the 5V rail.
Definition: ControllerPower.cpp:75
static double GetVoltage3V3()
Get the voltage of the 3.3V rail.
Definition: ControllerPower.cpp:33