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  static int GetFPGAVersion();
26  static int64_t GetFPGARevision();
27  static uint64_t GetFPGATime();
28  static bool GetUserButton();
29  static bool IsSysActive();
30  static bool IsBrownedOut();
31  static double GetInputVoltage();
32  static double GetInputCurrent();
33  static double GetVoltage3V3();
34  static double GetCurrent3V3();
35  static bool GetEnabled3V3();
36  static int GetFaultCount3V3();
37  static double GetVoltage5V();
38  static double GetCurrent5V();
39  static bool GetEnabled5V();
40  static int GetFaultCount5V();
41  static double GetVoltage6V();
42  static double GetCurrent6V();
43  static bool GetEnabled6V();
44  static int GetFaultCount6V();
45  static CANStatus GetCANStatus();
46 };
47 } // namespace frc
Definition: RobotController.cpp:14
Definition: RobotController.h:22
Definition: RobotController.h:14