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
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class XXboxController
XXboxController.XboxAxisButton, XXboxController.XboxButton, XXboxController.XXboxControllerFactoryNested classes/interfaces inherited from class XJoystick
XJoystick.ButtonSource, XJoystick.XJoystickFactory -
Field Summary
FieldsFields inherited from class XXboxController
leftXInversion, leftYInversion, port, rightXInversion, rightYInversion, rumbleManager -
Constructor Summary
ConstructorsConstructorDescriptionXboxControllerWpiAdapter(int port, AdvancedJoystickButtonTrigger.AdvancedJoystickButtonTriggerFactory joystickButtonFactory, AdvancedPovButtonTrigger.AdvancedPovButtonTriggerFactory povButtonFactory, AnalogHIDButtonTrigger.AnalogHIDButtonTriggerFactory analogHidButtonFactory, XRumbleManager.XRumbleManagerFactory rumbleManagerFactory, RobotAssertionManager manager, DevicePolice police) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetAxis(org.wpilib.driverstation.XboxController.Axis axis) booleangetButton(int button) booleangetButton(org.wpilib.driverstation.XboxController.Button button) org.wpilib.driverstation.GenericHIDgetHID()doubleprotected doublegetLeftX()protected doublegetLeftY()org.wpilib.driverstation.POVDirectiongetPOV()doublegetRawAxis(int axis) doubleprotected doubleprotected doubleMethods inherited from class XXboxController
getLeftFieldOrientedVector, getLeftStickX, getLeftStickY, getLeftVector, getRightFieldOrientedVector, getRightStickX, getRightStickY, getRightVector, getRumbleManager, getXboxAxisButtonIfAvailable, getXboxButtonIfAvailable, onPovAllocated, setLeftInversion, setRightInversionMethods inherited from class XJoystick
addAnalogButton, addAnalogButton, assertPovDirectionsAvailable, getAnalogIfAvailable, getAxisInverted, getifAvailable, getPort, getPovDirection, getPovIfAvailable, getVectorForAxisPair, setAxisInverted
-
Field Details
-
controller
protected org.wpilib.driverstation.XboxController 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:
getRawAxisin classXJoystick
-
getButton
-
getButton
public boolean getButton(org.wpilib.driverstation.XboxController.Button button) - Specified by:
getButtonin classXXboxController
-
getAxis
public double getAxis(org.wpilib.driverstation.XboxController.Axis axis) - Specified by:
getAxisin classXXboxController
-
getHID
-
getPOV
-
getLeftTrigger
public double getLeftTrigger() -
getRightTrigger
public double getRightTrigger() -
getLeftX
protected double getLeftX()- Specified by:
getLeftXin classXXboxController
-
getLeftY
protected double getLeftY()- Specified by:
getLeftYin classXXboxController
-
getRightX
protected double getRightX()- Specified by:
getRightXin classXXboxController
-
getRightY
protected double getRightY()- Specified by:
getRightYin classXXboxController
-