Class DriverStation
java.lang.Object
org.wpilib.driverstation.DriverStation
Provides access to Driver Station functionality.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidprovideRefreshedDataEventHandle(int handle) Registers the given handle for DS data refresh notifications.static voidremoveRefreshedDataEventHandle(int handle) Unregisters the given handle from DS data refresh notifications.static voidstartDataLog(DataLog log) Starts logging DriverStation data to data log, including joystick data.static voidstartDataLog(DataLog log, boolean logJoysticks) Starts logging DriverStation data to data log.
-
Method Details
-
startDataLog
Starts logging DriverStation data to data log, including joystick data. Repeated calls are ignored.- Parameters:
log- data log
-
startDataLog
Starts logging DriverStation data to data log. Repeated calls are ignored.- Parameters:
log- data loglogJoysticks- if true, log joystick data
-
provideRefreshedDataEventHandle
Registers the given handle for DS data refresh notifications.- Parameters:
handle- The event handle.
-
removeRefreshedDataEventHandle
Unregisters the given handle from DS data refresh notifications.- Parameters:
handle- The event handle.
-