DriverStation
- class wpilib.DriverStation
Bases:
pybind11_objectProvides access to Driver Station functionality.
- static provideRefreshedDataEventHandle(handle: SupportsInt | SupportsIndex) None
Registers the given handle for DS data refresh notifications.
- Parameters:
handle – The event handle.
- static removeRefreshedDataEventHandle(handle: SupportsInt | SupportsIndex) None
Unregisters the given handle from DS data refresh notifications.
- Parameters:
handle – The event handle.
- static startDataLog(*args, **kwargs)
Overloaded function.
startDataLog(log: wpilog._wpilog.DataLog) -> None
Starts logging DriverStation data to data log, including joystick data. Repeated calls are ignored.
- Parameters:
log – data log
startDataLog(log: wpilog._wpilog.DataLog, logJoysticks: bool) -> None
Starts logging DriverStation data to data log. Repeated calls are ignored.
- Parameters:
log – data log
logJoysticks – if true, log joystick data