Package edu.wpi.first.wpilibj
Class Utility
- java.lang.Object
-
- edu.wpi.first.wpilibj.Utility
-
@Deprecated public final class Utility extends Object
Deprecated.Use RobotController class insteadContains global utility functions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static long
getFPGATime()
Deprecated.Use RobotController.getFPGATime()static boolean
getUserButton()
Deprecated.Use RobotController.getUserButton()
-
-
-
Method Detail
-
getFPGATime
@Deprecated public static long getFPGATime()
Deprecated.Use RobotController.getFPGATime()Read the microsecond timer from the FPGA.- Returns:
- The current time in microseconds according to the FPGA.
-
getUserButton
@Deprecated public static boolean getUserButton()
Deprecated.Use RobotController.getUserButton()Get the state of the "USER" button on the roboRIO.- Returns:
- true if the button is currently pressed down
-
-