344 static std::function<uint64_t()> m_timeSource;
Definition RobotController.h:33
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 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 double GetVoltage5V()
Get the voltage of the 5V rail.
static int GetFaultCount5V()
Get the count of the total current faults on the 5V rail since the code started.
static int GetCommsDisableCount()
Gets the number of times the system has been disabled due to communication errors with the Driver Sta...
static CANStatus GetCANStatus()
Get the current status of the CAN bus.
static bool IsBrownedOut()
Check if the system is browned out.
static RadioLEDState GetRadioLEDState()
Get the state of the "Radio" LED.
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 int GetFaultCount6V()
Get the count of the total current faults on the 6V rail since the code started.
static units::volt_t GetBrownoutVoltage()
Get the current brownout voltage setting.
static void SetEnabled6V(bool enabled)
Enables or disables the 6V rail.
static std::string GetSerialNumber()
Return the serial number of the roboRIO.
static double GetInputVoltage()
Get the input voltage to the robot controller.
static double GetVoltage6V()
Get the voltage of the 6V rail.
static bool GetEnabled5V()
Get the enabled state of the 5V rail.
static void SetTimeSource(std::function< uint64_t()> supplier)
Sets a new source to provide the clock time in microseconds.
static void SetEnabled5V(bool enabled)
Enables or disables the 5V rail.
static double GetCurrent3V3()
Get the current output of the 3.3V rail.
static units::celsius_t GetCPUTemp()
Get the current CPU temperature.
static bool GetUserButton()
Get the state of the "USER" button on the roboRIO.
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 bool GetEnabled6V()
Get the enabled state of the 6V rail.
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 double GetCurrent6V()
Get the current output of the 6V rail.
static uint64_t GetTime()
Read the microsecond timestamp.
static double GetCurrent5V()
Get the current output of the 5V rail.
static void SetRadioLEDState(RadioLEDState state)
Set the state of the "Radio" LED.
static double GetInputCurrent()
Get the input current to the robot controller.
RadioLEDState
State for the radio led.
Definition RobotController.h:26
@ kOff
Off.
Definition RobotController.h:27
@ kGreen
Green.
Definition RobotController.h:28
@ kRed
Red.
Definition RobotController.h:29
@ kOrange
Orange.
Definition RobotController.h:30
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