RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
org.wpilib.driverstation.DriverStation Class Reference

Static Public Member Functions

static GenericHID getGenericHID (int port)
static Gamepad getGamepad (int port)
static void startDataLog (DataLog log)
static void startDataLog (DataLog log, boolean logJoysticks)
static void provideRefreshedDataEventHandle (int handle)
static void removeRefreshedDataEventHandle (int handle)

Detailed Description

Provides access to Driver Station functionality.

Definition at line 13 of file DriverStation.java.

Member Function Documentation

◆ getGamepad()

Gamepad org.wpilib.driverstation.DriverStation.getGamepad ( int port)
static

Gets the Gamepad object for the given port. Gamepad objects are cached, so this will always return the same object for the same port.

Parameters
portThe port index on the Driver Station that the controller is plugged into (0-5).
Returns
The Gamepad object for the given port.

Definition at line 52 of file DriverStation.java.

◆ getGenericHID()

GenericHID org.wpilib.driverstation.DriverStation.getGenericHID ( int port)
static

Gets the GenericHID object for the given port. GenericHID objects are cached, so this will always return the same object for the same port.

Parameters
portThe port index on the Driver Station that the controller is plugged into (0-5).
Returns
The GenericHID object for the given port.

Definition at line 36 of file DriverStation.java.

◆ provideRefreshedDataEventHandle()

void org.wpilib.driverstation.DriverStation.provideRefreshedDataEventHandle ( int handle)
static

Registers the given handle for DS data refresh notifications.

Parameters
handleThe event handle.

Definition at line 91 of file DriverStation.java.

◆ removeRefreshedDataEventHandle()

void org.wpilib.driverstation.DriverStation.removeRefreshedDataEventHandle ( int handle)
static

Unregisters the given handle from DS data refresh notifications.

Parameters
handleThe event handle.

Definition at line 100 of file DriverStation.java.

◆ startDataLog() [1/2]

void org.wpilib.driverstation.DriverStation.startDataLog ( DataLog log)
static

Starts logging DriverStation data to data log, including joystick data. Repeated calls are ignored.

Parameters
logdata log

Definition at line 72 of file DriverStation.java.

◆ startDataLog() [2/2]

void org.wpilib.driverstation.DriverStation.startDataLog ( DataLog log,
boolean logJoysticks )
static

Starts logging DriverStation data to data log. Repeated calls are ignored.

Parameters
logdata log
logJoysticksif true, log joystick data

Definition at line 82 of file DriverStation.java.


The documentation for this class was generated from the following file: