Utility¶
-
class
wpilib.
Utility
[source]¶ Bases:
object
Contains global utility functions
Deprecated since version 2018.0.0: Use
RobotController
instead-
static
getFPGARevision
()[source]¶ 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.
Deprecated since version 2018.0.0: Use
RobotController.getFPGARevision()
insteadReturns: FPGA Revision number. Return type: int
-
static
getFPGATime
()[source]¶ Read the microsecond timer from the FPGA.
Deprecated since version 2018.0.0: Use
RobotController.getFPGATime()
insteadReturns: The current time in microseconds according to the FPGA. Return type: int
-
static
getFPGAVersion
()[source]¶ Return the FPGA Version number.
Deprecated since version 2018.0.0: Use
RobotController.getFPGAVersion()
insteadReturns: FPGA Version number. Return type: int
-
static
getUserButton
()[source]¶ Get the state of the “USER” button on the roboRIO.
Deprecated since version 2018.0.0: Use
RobotController.getUserButton()
insteadReturns: True if the button is currently pressed down Return type: bool
-
static