|
RobotCore 1.0
WPILib port to raspberry Pi
|
Static Public Member Functions | |
| static String | getSerialNumber () |
| static String | getComments () |
| static int | getTeamNumber () |
| static void | setTimeSource (LongSupplier supplier) |
| static long | getTime () |
| static Time | getMeasureTime () |
| static long | getMonotonicTime () |
| static Time | getMeasureMonotonicTime () |
| static double | getBatteryVoltage () |
| static Voltage | getMeasureBatteryVoltage () |
| static boolean | isSysActive () |
| static boolean | isBrownedOut () |
| static int | getCommsDisableCount () |
| static boolean | getRSLState () |
| static boolean | isSystemTimeValid () |
| static double | getInputVoltage () |
| static Voltage | getMeasureInputVoltage () |
| static double | getVoltage3V3 () |
| static Voltage | getMeasureVoltage3V3 () |
| static double | getCurrent3V3 () |
| static Current | getMeasureCurrent3V3 () |
| static void | setEnabled3V3 (boolean enabled) |
| static boolean | getEnabled3V3 () |
| static int | getFaultCount3V3 () |
| static void | resetRailFaultCounts () |
| static void | setBrownoutVoltages (double brownoutVoltage, double recoveryVoltage) |
| static void | setBrownoutVoltages (Voltage brownoutVoltage, Voltage recoveryVoltage) |
| static double | getCPUTemp () |
| static Temperature | getMeasureCPUTemp () |
| static CANStatus | getCANStatus (CANPort busId) |
Contains functions for roboRIO functionality.
Definition at line 25 of file RobotController.java.
|
static |
Read the battery voltage.
Definition at line 117 of file RobotController.java.
Get the current status of the CAN bus.
| busId | The bus ID |
Definition at line 315 of file RobotController.java.
|
static |
Return the comments from the roboRIO web interface.
The comments string is cached after the first call to this function on the RoboRIO - restart the robot code to reload the comments string after changing it in the web interface.
Definition at line 49 of file RobotController.java.
|
static |
Gets the number of times the system has been disabled due to communication errors with the Driver Station.
Definition at line 155 of file RobotController.java.
|
static |
Get the current CPU temperature in degrees Celsius.
Definition at line 296 of file RobotController.java.
|
static |
Get the current output of the 3.3V rail.
Definition at line 218 of file RobotController.java.
|
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.
Definition at line 246 of file RobotController.java.
|
static |
Get the count of the total current faults on the 3.3V rail since the code started.
Definition at line 255 of file RobotController.java.
|
static |
Get the input voltage to the robot controller.
Definition at line 182 of file RobotController.java.
|
static |
Read the battery voltage in a measure.
Definition at line 126 of file RobotController.java.
|
static |
Get the current CPU temperature in a measure.
Definition at line 305 of file RobotController.java.
|
static |
Get the current output in a measure of the 3.3V rail.
Definition at line 227 of file RobotController.java.
|
static |
Get the input voltage to the robot controller in a measure.
Definition at line 191 of file RobotController.java.
|
static |
Read the nanosecond monotonic timer in a measure.
Definition at line 108 of file RobotController.java.
|
static |
Read the nanosecond timestamp. By default, the time is based on the monotonic clock. However, the return value of this method may be modified to use any time base, including non-monotonic and non-continuous time bases.
Definition at line 90 of file RobotController.java.
|
static |
Get the voltage in a measure of the 3.3V rail.
Definition at line 209 of file RobotController.java.
|
static |
Read the nanosecond monotonic timer.
Definition at line 99 of file RobotController.java.
|
static |
Gets the current state of the Robot Signal Light (RSL).
Definition at line 164 of file RobotController.java.
|
static |
Return the serial number of the roboRIO.
Definition at line 37 of file RobotController.java.
|
static |
Returns the team number configured for the robot controller.
Definition at line 58 of file RobotController.java.
|
static |
Read the nanosecond timestamp. By default, the time is based on the monotonic clock. However, the return value of this method may be modified to use any time base, including non-monotonic and non-continuous time bases.
Definition at line 79 of file RobotController.java.
|
static |
Get the voltage of the 3.3V rail.
Definition at line 200 of file RobotController.java.
|
static |
Check if the system is browned out.
Definition at line 145 of file RobotController.java.
|
static |
Gets a value indicating whether 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.
Definition at line 136 of file RobotController.java.
|
static |
Gets if the system time is valid.
Definition at line 173 of file RobotController.java.
|
static |
Reset the overcurrent fault counters for all user rails to 0.
Definition at line 260 of file RobotController.java.
|
static |
Set the voltages where the robot will enter and recover from brownout.
The brownout voltage must be between 5 V and 8 V, inclusive. The recovery voltage must be no greater than 8.5 V and at least 0.5 V above the brownout voltage.
| brownoutVoltage | the voltage where the robot will enter brownout |
| recoveryVoltage | the voltage where the robot will recover from brownout |
Definition at line 273 of file RobotController.java.
|
static |
Set the voltages in measures where the robot will enter and recover from brownout.
The brownout voltage must be between 5 V and 8 V, inclusive. The recovery voltage must be no greater than 8.5 V and at least 0.5 V above the brownout voltage.
| brownoutVoltage | the voltage where the robot will enter brownout |
| recoveryVoltage | the voltage where the robot will recover from brownout |
Definition at line 286 of file RobotController.java.
|
static |
Enables or disables the 3.3V rail.
| enabled | whether to enable the 3.3V rail. |
Definition at line 236 of file RobotController.java.
|
static |
Sets a new source to provide the clock time in nanoseconds. Changing this affects the return value of getTime in Java.
| supplier | Function to return the time in nanoseconds. |
Definition at line 68 of file RobotController.java.