double frc::RobotController::GetCurrent3V3 |
( |
| ) |
|
|
static |
Get the current output of the 3.3V rail.
- Returns
- The controller 3.3V rail output current value in Amps
double frc::RobotController::GetCurrent5V |
( |
| ) |
|
|
static |
Get the current output of the 5V rail.
- Returns
- The controller 5V rail output current value in Amps
double frc::RobotController::GetCurrent6V |
( |
| ) |
|
|
static |
Get the current output of the 6V rail.
- Returns
- The controller 6V rail output current value in Amps
bool frc::RobotController::GetEnabled3V3 |
( |
| ) |
|
|
static |
Get the enabled state of the 3.3V rail.
The rail may be disabled due to a controller brownout, a short circuit on the rail, or controller over-voltage.
- Returns
- The controller 3.3V rail enabled value. True for enabled.
bool frc::RobotController::GetEnabled5V |
( |
| ) |
|
|
static |
Get the enabled state of the 5V rail.
The rail may be disabled due to a controller brownout, a short circuit on the rail, or controller over-voltage.
- Returns
- The controller 5V rail enabled value. True for enabled.
bool frc::RobotController::GetEnabled6V |
( |
| ) |
|
|
static |
Get the enabled state of the 6V rail.
The rail may be disabled due to a controller brownout, a short circuit on the rail, or controller over-voltage.
- Returns
- The controller 6V rail enabled value. True for enabled.
int frc::RobotController::GetFaultCount3V3 |
( |
| ) |
|
|
static |
Get the count of the total current faults on the 3.3V rail since the controller has booted.
- Returns
- The number of faults
int frc::RobotController::GetFaultCount5V |
( |
| ) |
|
|
static |
Get the count of the total current faults on the 5V rail since the controller has booted.
- Returns
- The number of faults
int frc::RobotController::GetFaultCount6V |
( |
| ) |
|
|
static |
Get the count of the total current faults on the 6V rail since the controller has booted.
- Returns
- The number of faults.
int64_t frc::RobotController::GetFPGARevision |
( |
| ) |
|
|
static |
Return the FPGA Revision number.
The format of the revision is 3 numbers. The 12 most significant bits are the Major Revision. The next 8 bits are the Minor Revision. The 12 least significant bits are the Build Number.
- Returns
- FPGA Revision number.
uint64_t frc::RobotController::GetFPGATime |
( |
| ) |
|
|
static |
Read the microsecond-resolution timer on the FPGA.
- Returns
- The current time in microseconds according to the FPGA (since FPGA reset).
int frc::RobotController::GetFPGAVersion |
( |
| ) |
|
|
static |
Return the FPGA Version number.
For now, expect this to be competition year.
- Returns
- FPGA Version number.
double frc::RobotController::GetInputCurrent |
( |
| ) |
|
|
static |
Get the input current to the robot controller.
- Returns
- The controller input current value in Amps
double frc::RobotController::GetInputVoltage |
( |
| ) |
|
|
static |
Get the input voltage to the robot controller.
- Returns
- The controller input voltage value in Volts
bool frc::RobotController::GetUserButton |
( |
| ) |
|
|
static |
Get the state of the "USER" button on the roboRIO.
- Returns
- True if the button is currently pressed down
double frc::RobotController::GetVoltage3V3 |
( |
| ) |
|
|
static |
Get the voltage of the 3.3V rail.
- Returns
- The controller 3.3V rail voltage value in Volts
double frc::RobotController::GetVoltage5V |
( |
| ) |
|
|
static |
Get the voltage of the 5V rail.
- Returns
- The controller 5V rail voltage value in Volts
double frc::RobotController::GetVoltage6V |
( |
| ) |
|
|
static |
Get the voltage of the 6V rail.
- Returns
- The controller 6V rail voltage value in Volts
bool frc::RobotController::IsBrownedOut |
( |
| ) |
|
|
static |
Check if the system is browned out.
- Returns
- True if the system is browned out
bool frc::RobotController::IsSysActive |
( |
| ) |
|
|
static |
Check if the FPGA outputs are enabled.
The outputs may be disabled if the robot is disabled or e-stopped, the watchdog has expired, or if the roboRIO browns out.
- Returns
- True if the FPGA outputs are enabled.
The documentation for this class was generated from the following files:
- build/cppSource/wpilibc/headers/RobotController.h
- build/cppSource/wpilibc/sources/RobotController.cpp