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 <support/deprecated.h>
11 
12 namespace frc {
13 
15  public:
16  WPI_DEPRECATED("Use RobotController static class method")
17  static double GetInputVoltage();
18  WPI_DEPRECATED("Use RobotController static class method")
19  static double GetInputCurrent();
20  WPI_DEPRECATED("Use RobotController static class method")
21  static double GetVoltage3V3();
22  WPI_DEPRECATED("Use RobotController static class method")
23  static double GetCurrent3V3();
24  WPI_DEPRECATED("Use RobotController static class method")
25  static bool GetEnabled3V3();
26  WPI_DEPRECATED("Use RobotController static class method")
27  static int GetFaultCount3V3();
28  WPI_DEPRECATED("Use RobotController static class method")
29  static double GetVoltage5V();
30  WPI_DEPRECATED("Use RobotController static class method")
31  static double GetCurrent5V();
32  WPI_DEPRECATED("Use RobotController static class method")
33  static bool GetEnabled5V();
34  WPI_DEPRECATED("Use RobotController static class method")
35  static int GetFaultCount5V();
36  WPI_DEPRECATED("Use RobotController static class method")
37  static double GetVoltage6V();
38  WPI_DEPRECATED("Use RobotController static class method")
39  static double GetCurrent6V();
40  WPI_DEPRECATED("Use RobotController static class method")
41  static bool GetEnabled6V();
42  WPI_DEPRECATED("Use RobotController static class method")
43  static int GetFaultCount6V();
44 };
45 
46 } // namespace frc
Definition: RobotController.cpp:14
static int GetFaultCount5V()
Get the count of the total current faults on the 5V rail since the controller has booted...
Definition: ControllerPower.cpp:146
static double GetCurrent3V3()
Get the current output of the 3.3V rail.
Definition: ControllerPower.cpp:172
static double GetInputCurrent()
Get the input current to the robot controller.
Definition: ControllerPower.cpp:38
static bool GetEnabled3V3()
Get the enabled state of the 3.3V rail.
Definition: ControllerPower.cpp:186
static double GetInputVoltage()
Get the input voltage to the robot controller.
Definition: ControllerPower.cpp:25
static bool GetEnabled6V()
Get the enabled state of the 6V rail.
Definition: ControllerPower.cpp:78
static double GetCurrent6V()
Get the current output of the 6V rail.
Definition: ControllerPower.cpp:64
static double GetCurrent5V()
Get the current output of the 5V rail.
Definition: ControllerPower.cpp:118
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:92
static double GetVoltage6V()
Get the voltage of the 6V rail.
Definition: ControllerPower.cpp:51
static int GetFaultCount3V3()
Get the count of the total current faults on the 3.3V rail since the controller has booted...
Definition: ControllerPower.cpp:200
static double GetVoltage5V()
Get the voltage of the 5V rail.
Definition: ControllerPower.cpp:105
static bool GetEnabled5V()
Get the enabled state of the 5V rail.
Definition: ControllerPower.cpp:132
static double GetVoltage3V3()
Get the voltage of the 3.3V rail.
Definition: ControllerPower.cpp:159