Class XboxControllerWpiAdapter
java.lang.Object
xbot.common.controls.sensors.XJoystick
xbot.common.controls.sensors.XXboxController
xbot.common.controls.sensors.wpi_adapters.XboxControllerWpiAdapter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XXboxController
XXboxController.XboxButton, XXboxController.XXboxControllerFactory
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XJoystick
XJoystick.ButtonSource, XJoystick.XJoystickFactory
-
Field Summary
Fields inherited from class xbot.common.controls.sensors.XXboxController
allocatedButtons, assertionManager, leftXInversion, leftYInversion, port, rightXInversion, rightYInversion, rumbleManager
-
Constructor Summary
ConstructorDescriptionXboxControllerWpiAdapter
(int port, AdvancedJoystickButtonTrigger.AdvancedJoystickButtonTriggerFactory joystickButtonFactory, AdvancedPovButtonTrigger.AdvancedPovButtonTriggerFactory povButtonFactory, AnalogHIDButtonTrigger.AnalogHIDButtonTriggerFactory analogHidButtonFactory, XRumbleManager.XRumbleManagerFactory rumbleManagerFactory, RobotAssertionManager manager, DevicePolice police) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getButton
(int button) protected double
protected double
protected double
int
getPOV()
double
getRawAxis
(int axis) protected double
protected double
protected double
Methods inherited from class xbot.common.controls.sensors.XXboxController
getifAvailable, getLeftFieldOrientedVector, getLeftStickX, getLeftStickY, getLeftTrigger, getLeftVector, getRightFieldOrientedVector, getRightStickX, getRightStickY, getRightTrigger, getRightVector, getRumbleManager, getXboxButton, setLeftInversion, setRightInversion
Methods inherited from class xbot.common.controls.sensors.XJoystick
addAnalogButton, addAnalogButton, getAnalogIfAvailable, getAxisInverted, getifAvailable, getPort, getPovIfAvailable, getVectorForAxisPair, setAxisInverted
-
Field Details
-
controller
-
-
Constructor Details
-
XboxControllerWpiAdapter
@AssistedInject public XboxControllerWpiAdapter(@Assisted("port") int port, AdvancedJoystickButtonTrigger.AdvancedJoystickButtonTriggerFactory joystickButtonFactory, AdvancedPovButtonTrigger.AdvancedPovButtonTriggerFactory povButtonFactory, AnalogHIDButtonTrigger.AnalogHIDButtonTriggerFactory analogHidButtonFactory, XRumbleManager.XRumbleManagerFactory rumbleManagerFactory, RobotAssertionManager manager, DevicePolice police)
-
-
Method Details
-
getRawAxis
public double getRawAxis(int axis) - Specified by:
getRawAxis
in classXJoystick
-
getButton
public boolean getButton(int button) -
getGenericHID
- Specified by:
getGenericHID
in classXJoystick
-
getPOV
public int getPOV() -
getLeftRawTriggerAxis
protected double getLeftRawTriggerAxis()- Specified by:
getLeftRawTriggerAxis
in classXXboxController
-
getRightRawTriggerAxis
protected double getRightRawTriggerAxis()- Specified by:
getRightRawTriggerAxis
in classXXboxController
-
getLeftRawX
protected double getLeftRawX()- Specified by:
getLeftRawX
in classXXboxController
-
getLeftRawY
protected double getLeftRawY()- Specified by:
getLeftRawY
in classXXboxController
-
getRightRawX
protected double getRightRawX()- Specified by:
getRightRawX
in classXXboxController
-
getRightRawY
protected double getRightRawY()- Specified by:
getRightRawY
in classXXboxController
-