|
RobotCore 1.0
WPILib port to raspberry Pi
|
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) |
Provides access to Driver Station functionality.
Definition at line 13 of file DriverStation.java.
|
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.
| port | The port index on the Driver Station that the controller is plugged into (0-5). |
Definition at line 52 of file DriverStation.java.
|
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.
| port | The port index on the Driver Station that the controller is plugged into (0-5). |
Definition at line 36 of file DriverStation.java.
|
static |
Registers the given handle for DS data refresh notifications.
| handle | The event handle. |
Definition at line 91 of file DriverStation.java.
|
static |
Unregisters the given handle from DS data refresh notifications.
| handle | The event handle. |
Definition at line 100 of file DriverStation.java.
|
static |
Starts logging DriverStation data to data log, including joystick data. Repeated calls are ignored.
| log | data log |
Definition at line 72 of file DriverStation.java.
|
static |
Starts logging DriverStation data to data log. Repeated calls are ignored.
| log | data log |
| logJoysticks | if true, log joystick data |
Definition at line 82 of file DriverStation.java.