WPILibC++  2019.1.1-beta-4-20-gceed1d7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
static double GetCurrent5V()
Get the current output of the 5V rail.
static bool GetEnabled6V()
Get the enabled state of the 6V rail.
static int GetFaultCount3V3()
Get the count of the total current faults on the 3.3V rail since the controller has booted...
static double GetCurrent6V()
Get the current output of the 6V rail.
static int GetFaultCount5V()
Get the count of the total current faults on the 5V rail since the controller has booted...
static double GetVoltage3V3()
Get the voltage of the 3.3V rail.
Definition: ControllerPower.h:14
static double GetInputVoltage()
Get the input voltage to the robot controller.
static double GetCurrent3V3()
Get the current output of the 3.3V rail.
static double GetVoltage6V()
Get the voltage of the 6V rail.
static double GetInputCurrent()
Get the input current to the robot controller.
static bool GetEnabled3V3()
Get the enabled state of the 3.3V rail.
static double GetVoltage5V()
Get the voltage of the 5V rail.
static int GetFaultCount6V()
Get the count of the total current faults on the 6V rail since the controller has booted...
static bool GetEnabled5V()
Get the enabled state of the 5V rail.