226 static std::function<uint64_t()> m_timeSource;
Definition RobotController.h:25
static bool IsSysActive()
Check if the FPGA outputs are enabled.
static void SetBrownoutVoltage(units::volt_t brownoutVoltage)
Set the voltage the roboRIO will brownout and disable all outputs.
static CANStatus GetCANStatus(int busId)
Get the current status of the CAN bus.
static int GetFaultCount3V3()
Get the count of the total current faults on the 3.3V rail since the code started.
static std::string GetComments()
Return the comments from the roboRIO web interface.
static uint64_t GetFPGATime()
Read the microsecond-resolution timer on the FPGA.
static bool GetEnabled3V3()
Get the enabled state of the 3.3V rail.
static units::volt_t GetBatteryVoltage()
Read the battery voltage.
static int GetCommsDisableCount()
Gets the number of times the system has been disabled due to communication errors with the Driver Sta...
static bool IsBrownedOut()
Check if the system is browned out.
static bool IsSystemTimeValid()
Gets if the system time is valid.
static int GetFPGAVersion()
Return the FPGA Version number.
static int64_t GetFPGARevision()
Return the FPGA Revision number.
static double GetVoltage3V3()
Get the voltage of the 3.3V rail.
static units::volt_t GetBrownoutVoltage()
Get the current brownout voltage setting.
static std::string GetSerialNumber()
Return the serial number of the roboRIO.
static double GetInputVoltage()
Get the input voltage to the robot controller.
static void SetTimeSource(std::function< uint64_t()> supplier)
Sets a new source to provide the clock time in microseconds.
static double GetCurrent3V3()
Get the current output of the 3.3V rail.
static units::celsius_t GetCPUTemp()
Get the current CPU temperature.
static int32_t GetTeamNumber()
Returns the team number configured for the robot controller.
static bool GetRSLState()
Gets the current state of the Robot Signal Light (RSL)
static void ResetRailFaultCounts()
Reset the overcurrent fault counters for all user rails to 0.
static void SetEnabled3V3(bool enabled)
Enables or disables the 3.3V rail.
static uint64_t GetTime()
Read the microsecond timestamp.
Definition SystemServer.h:9
Definition RobotController.h:17
int busOffCount
Definition RobotController.h:19
int receiveErrorCount
Definition RobotController.h:21
float percentBusUtilization
Definition RobotController.h:18
int txFullCount
Definition RobotController.h:20
int transmitErrorCount
Definition RobotController.h:22