WPILibC++  unspecified
RobotController.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2017-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 <stdint.h>
11 
12 namespace frc {
13 
14 struct CANStatus {
15  float percentBusUtilization;
16  int busOffCount;
17  int txFullCount;
18  int receiveErrorCount;
19  int transmitErrorCount;
20 };
21 
23  public:
24  RobotController() = delete;
25 
33  static int GetFPGAVersion();
34 
44  static int64_t GetFPGARevision();
45 
52  static uint64_t GetFPGATime();
53 
59  static bool GetUserButton();
60 
69  static bool IsSysActive();
70 
76  static bool IsBrownedOut();
77 
83  static double GetInputVoltage();
84 
90  static double GetInputCurrent();
91 
97  static double GetVoltage3V3();
98 
104  static double GetCurrent3V3();
105 
113  static bool GetEnabled3V3();
114 
121  static int GetFaultCount3V3();
122 
128  static double GetVoltage5V();
129 
135  static double GetCurrent5V();
136 
144  static bool GetEnabled5V();
145 
152  static int GetFaultCount5V();
153 
159  static double GetVoltage6V();
160 
166  static double GetCurrent6V();
167 
175  static bool GetEnabled6V();
176 
183  static int GetFaultCount6V();
184 
185  static CANStatus GetCANStatus();
186 };
187 
188 } // namespace frc
Definition: Utility.cpp:119
Definition: RobotController.h:22
Definition: RobotController.h:14