12#include "wpi/units/temperature.hpp"
13#include "wpi/units/voltage.hpp"
206 static std::function<uint64_t()> m_timeSource;
static CANStatus GetCANStatus(int busId)
Get the current status of the CAN bus.
static wpi::units::volt_t GetBrownoutVoltage()
Get the current brownout voltage setting.
static bool IsSysActive()
Check if the FPGA outputs are enabled.
static void SetTimeSource(std::function< uint64_t()> supplier)
Sets a new source to provide the clock time in microseconds.
static uint64_t GetTime()
Read the microsecond timestamp.
static bool IsSystemTimeValid()
Gets if the system time is valid.
static void SetBrownoutVoltage(wpi::units::volt_t brownoutVoltage)
Set the voltage the roboRIO will brownout and disable all outputs.
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 std::string GetComments()
Return the comments from the roboRIO web interface.
static wpi::units::volt_t GetBatteryVoltage()
Read the battery voltage.
static double GetInputVoltage()
Get the input voltage to the robot controller.
static std::string GetSerialNumber()
Return the serial number of the roboRIO.
static int GetCommsDisableCount()
Gets the number of times the system has been disabled due to communication errors with the Driver Sta...
static uint64_t GetFPGATime()
Read the microsecond-resolution timer on the FPGA.
static int GetFaultCount3V3()
Get the count of the total current faults on the 3.3V rail since the code started.
static int32_t GetTeamNumber()
Returns the team number configured for the robot controller.
static bool IsBrownedOut()
Check if the system is browned out.
static double GetVoltage3V3()
Get the voltage of the 3.3V rail.
static void SetEnabled3V3(bool enabled)
Enables or disables the 3.3V rail.
static wpi::units::celsius_t GetCPUTemp()
Get the current CPU temperature.
static bool GetEnabled3V3()
Get the enabled state of the 3.3V rail.
static double GetCurrent3V3()
Get the current output of the 3.3V rail.
Definition CvSource.hpp:15
Definition RobotController.hpp:17
int txFullCount
Definition RobotController.hpp:20
int transmitErrorCount
Definition RobotController.hpp:22
float percentBusUtilization
Definition RobotController.hpp:18
int busOffCount
Definition RobotController.hpp:19
int receiveErrorCount
Definition RobotController.hpp:21