Package com.thethriftybot.wrappers
Class RobotControllerWrapper
java.lang.Object
com.thethriftybot.wrappers.RobotControllerWrapper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longRead the microsecond timer from the FPGAstatic voidResets the delegate back to the default.static voidsetDelegate(RobotControllerInterface newDelegate) Used to pass in a new delegate for the WPILib RobotController API.
-
Constructor Details
-
RobotControllerWrapper
public RobotControllerWrapper()
-
-
Method Details
-
setDelegate
Used to pass in a new delegate for the WPILib RobotController API. In our case it will be used to pass in the Mocked RobotController class.- Parameters:
newDelegate- Mocked or different CANAPI
-
resetDelegate
public static void resetDelegate()Resets the delegate back to the default. Defalt is the WPILib RobotController -
getFPGATime
public static long getFPGATime()Read the microsecond timer from the FPGA- Returns:
- The current time in microseconds according to the FPGA
-