Robot Core Documentation
|
The Joystick class read the joystick connected to the driver station. More...
Public Member Functions | |
JoystickBase (int id) | |
boolean | isGamepad () |
double | getX () |
double | getY () |
double | getRX () |
double | getRY () |
double | getThrottle () |
double | getTwist () |
double | getPOV () |
boolean | getRawButton (final int button) |
Public Member Functions inherited from robotCore.GenericHID |
The Joystick class read the joystick connected to the driver station.
The joystick is connected to the driver station and communicates with RobotCore via a network connection which it uses to send the current joystick x and y positions as well as the state of the buttons.
robotCore.JoystickBase.JoystickBase | ( | int | id | ) |
id | - This is currently unused, but is provided for compatibility with the wpilib library. |
double robotCore.JoystickBase.getPOV | ( | ) |
boolean robotCore.JoystickBase.getRawButton | ( | final int | button | ) |
Reimplemented from robotCore.GenericHID.
double robotCore.JoystickBase.getRX | ( | ) |
double robotCore.JoystickBase.getRY | ( | ) |
double robotCore.JoystickBase.getThrottle | ( | ) |
double robotCore.JoystickBase.getTwist | ( | ) |
double robotCore.JoystickBase.getX | ( | ) |
Reimplemented from robotCore.GenericHID.
double robotCore.JoystickBase.getY | ( | ) |
Reimplemented from robotCore.GenericHID.
boolean robotCore.JoystickBase.isGamepad | ( | ) |