Class FTCGamepadWpiAdapter
java.lang.Object
xbot.common.controls.sensors.XJoystick
xbot.common.controls.sensors.XFTCGamepad
xbot.common.controls.sensors.wpi_adapters.FTCGamepadWpiAdapter
- All Implemented Interfaces:
IGamepad
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XFTCGamepad
XFTCGamepad.XFTCGamepadFactory
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XJoystick
XJoystick.ButtonSource, XJoystick.XJoystickFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFTCGamepadWpiAdapter
(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.XFTCGamepad
getLeftFieldOrientedVector, getLeftJoystickXAxis, getLeftJoystickYAxis, getLeftTrigger, getLeftTriggerAxis, getLeftVector, getRightFieldOrientedVector, getRightJoystickXAxis, getRightJoystickYAxis, getRightTrigger, getRightTriggerAxis, getRightVector, setLeftInversion, setRightInversion
Methods inherited from class xbot.common.controls.sensors.XJoystick
addAnalogButton, addAnalogButton, getAnalogIfAvailable, getAxisInverted, getifAvailable, getPort, getPovIfAvailable, getVectorForAxisPair, setAxisInverted
-
Constructor Details
-
FTCGamepadWpiAdapter
@AssistedInject public FTCGamepadWpiAdapter(@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
-