|
RobotCore 1.0
WPILib port to raspberry Pi
|
The Joystick class read the joystick connected to the driver station. More...
Public Member Functions | |
| JoystickBase (int id) | |
| void | getAllJoystickData (int stick, float[] axesArray, short[] rawAxesArray, byte[] povsArray, float[] touchpadFingersArray, long[] buttonsAndMetadata) |
| boolean | isGamepad () |
| double | getX () |
| double | getY () |
| double | getRX () |
| double | getRY () |
| double | getThrottle () |
| double | getTwist () |
| double | getPOV () |
| boolean | getRawButton (final int button) |
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.
Definition at line 33 of file JoystickBase.java.
| robotCore.JoystickBase.JoystickBase | ( | int | id | ) |
| id | - This is currently unused, but is provided for compatibility with the wpilib library. |
Definition at line 73 of file JoystickBase.java.
| void robotCore.JoystickBase.getAllJoystickData | ( | int | stick, |
| float[] | axesArray, | ||
| short[] | rawAxesArray, | ||
| byte[] | povsArray, | ||
| float[] | touchpadFingersArray, | ||
| long[] | buttonsAndMetadata ) |
Definition at line 78 of file JoystickBase.java.
| double robotCore.JoystickBase.getPOV | ( | ) |
Definition at line 185 of file JoystickBase.java.
| boolean robotCore.JoystickBase.getRawButton | ( | final int | button | ) |
Reimplemented from robotCore.GenericHID.
Definition at line 194 of file JoystickBase.java.
| double robotCore.JoystickBase.getRX | ( | ) |
Definition at line 147 of file JoystickBase.java.
| double robotCore.JoystickBase.getRY | ( | ) |
Definition at line 156 of file JoystickBase.java.
| double robotCore.JoystickBase.getThrottle | ( | ) |
Definition at line 168 of file JoystickBase.java.
| double robotCore.JoystickBase.getTwist | ( | ) |
Definition at line 177 of file JoystickBase.java.
| double robotCore.JoystickBase.getX | ( | ) |
Reimplemented from robotCore.GenericHID.
Definition at line 129 of file JoystickBase.java.
| double robotCore.JoystickBase.getY | ( | ) |
Reimplemented from robotCore.GenericHID.
Definition at line 138 of file JoystickBase.java.
| boolean robotCore.JoystickBase.isGamepad | ( | ) |
Definition at line 119 of file JoystickBase.java.