Brian Silverman | 26e4e52 | 2015-12-17 01:56:40 -0500 | [diff] [blame^] | 1 | /*----------------------------------------------------------------------------*/ |
| 2 | /* Copyright (c) FIRST 2011. All Rights Reserved. |
| 3 | */ |
| 4 | /* Open Source Software - may be modified and shared by FRC teams. The code */ |
| 5 | /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */ |
| 6 | /*----------------------------------------------------------------------------*/ |
| 7 | |
| 8 | #ifndef __CONTROLLER_POWER_H__ |
| 9 | #define __CONTROLLER_POWER_H__ |
| 10 | |
| 11 | class ControllerPower { |
| 12 | public: |
| 13 | static double GetInputVoltage(); |
| 14 | static double GetInputCurrent(); |
| 15 | static double GetVoltage3V3(); |
| 16 | static double GetCurrent3V3(); |
| 17 | static bool GetEnabled3V3(); |
| 18 | static int GetFaultCount3V3(); |
| 19 | static double GetVoltage5V(); |
| 20 | static double GetCurrent5V(); |
| 21 | static bool GetEnabled5V(); |
| 22 | static int GetFaultCount5V(); |
| 23 | static double GetVoltage6V(); |
| 24 | static double GetCurrent6V(); |
| 25 | static bool GetEnabled6V(); |
| 26 | static int GetFaultCount6V(); |
| 27 | }; |
| 28 | #endif |