Class RobotControllerWrapper

java.lang.Object
com.thethriftybot.wrappers.RobotControllerWrapper

public final class RobotControllerWrapper extends Object
  • Constructor Details

    • RobotControllerWrapper

      public RobotControllerWrapper()
  • Method Details

    • setDelegate

      public static void setDelegate(RobotControllerInterface newDelegate)
      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