Class JoystickWPIAdapter
java.lang.Object
xbot.common.controls.sensors.XJoystick
xbot.common.controls.sensors.wpi_adapters.JoystickWPIAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XJoystick
XJoystick.ButtonSource, XJoystick.XJoystickFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJoystickWPIAdapter
(int port, int numButtons, AdvancedJoystickButtonTrigger.AdvancedJoystickButtonTriggerFactory joystickButtonFactory, AdvancedPovButtonTrigger.AdvancedPovButtonTriggerFactory povButtonFactory, AnalogHIDButtonTrigger.AnalogHIDButtonTriggerFactory analogHidButtonFactory, RobotAssertionManager assertionManager, DevicePolice police) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getButton
(int button) int
getPOV()
double
getRawAxis
(int axisNumber) protected double
getX()
protected double
getY()
Methods inherited from class xbot.common.controls.sensors.XJoystick
addAnalogButton, addAnalogButton, getAnalogIfAvailable, getAxisInverted, getifAvailable, getPort, getPovIfAvailable, getVectorForAxisPair, setAxisInverted
-
Constructor Details
-
JoystickWPIAdapter
@AssistedInject public JoystickWPIAdapter(@Assisted("port") int port, @Assisted("numButtons") int numButtons, AdvancedJoystickButtonTrigger.AdvancedJoystickButtonTriggerFactory joystickButtonFactory, AdvancedPovButtonTrigger.AdvancedPovButtonTriggerFactory povButtonFactory, AnalogHIDButtonTrigger.AnalogHIDButtonTriggerFactory analogHidButtonFactory, RobotAssertionManager assertionManager, DevicePolice police)
-
-
Method Details
-
getX
protected double getX() -
getY
protected double getY() -
getRawAxis
public double getRawAxis(int axisNumber) - Specified by:
getRawAxis
in classXJoystick
-
getButton
public boolean getButton(int button) -
getPOV
public int getPOV() -
getGenericHID
- Specified by:
getGenericHID
in classXJoystick
-