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() instead

Returns: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() instead

Returns: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() instead

Returns: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() instead

Returns:True if the button is currently pressed down
Return type:bool