Class DriverStation

java.lang.Object
org.wpilib.driverstation.DriverStation

public final class DriverStation extends Object
Provides access to Driver Station functionality.
  • Method Details

    • startDataLog

      public static void startDataLog(DataLog log)
      Starts logging DriverStation data to data log, including joystick data. Repeated calls are ignored.
      Parameters:
      log - data log
    • startDataLog

      public static void startDataLog(DataLog log, boolean logJoysticks)
      Starts logging DriverStation data to data log. Repeated calls are ignored.
      Parameters:
      log - data log
      logJoysticks - if true, log joystick data
    • provideRefreshedDataEventHandle

      public static void provideRefreshedDataEventHandle(int handle)
      Registers the given handle for DS data refresh notifications.
      Parameters:
      handle - The event handle.
    • removeRefreshedDataEventHandle

      public static void removeRefreshedDataEventHandle(int handle)
      Unregisters the given handle from DS data refresh notifications.
      Parameters:
      handle - The event handle.