Package xbot.common.controls.sensors
Class XFTCGamepad
java.lang.Object
xbot.common.controls.sensors.XJoystick
xbot.common.controls.sensors.XFTCGamepad
- All Implemented Interfaces:
IGamepad
- Direct Known Subclasses:
FTCGamepadWpiAdapter
,MockFTCGamepad
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XJoystick
XJoystick.ButtonSource, XJoystick.XJoystickFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionXFTCGamepad
(int port, AdvancedJoystickButtonTrigger.AdvancedJoystickButtonTriggerFactory joystickButtonFactory, AdvancedPovButtonTrigger.AdvancedPovButtonTriggerFactory povButtonFactory, AnalogHIDButtonTrigger.AnalogHIDButtonTriggerFactory analogHidButtonFactory, RobotAssertionManager assertionManager, int numButtons, DevicePolice police) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
protected int
double
protected int
protected int
protected int
double
protected int
void
setLeftInversion
(boolean xInverted, boolean yInverted) void
setRightInversion
(boolean xInverted, boolean yInverted) Methods inherited from class xbot.common.controls.sensors.XJoystick
addAnalogButton, addAnalogButton, getAnalogIfAvailable, getAxisInverted, getButton, getGenericHID, getifAvailable, getPort, getPOV, getPovIfAvailable, getRawAxis, getVectorForAxisPair, setAxisInverted
-
Constructor Details
-
XFTCGamepad
public XFTCGamepad(int port, AdvancedJoystickButtonTrigger.AdvancedJoystickButtonTriggerFactory joystickButtonFactory, AdvancedPovButtonTrigger.AdvancedPovButtonTriggerFactory povButtonFactory, AnalogHIDButtonTrigger.AnalogHIDButtonTriggerFactory analogHidButtonFactory, RobotAssertionManager assertionManager, int numButtons, DevicePolice police)
-
-
Method Details
-
getLeftJoystickXAxis
protected int getLeftJoystickXAxis() -
getLeftJoystickYAxis
protected int getLeftJoystickYAxis() -
getRightJoystickXAxis
protected int getRightJoystickXAxis() -
getRightJoystickYAxis
protected int getRightJoystickYAxis() -
getLeftTriggerAxis
protected int getLeftTriggerAxis() -
getRightTriggerAxis
protected int getRightTriggerAxis() -
getLeftVector
- Specified by:
getLeftVector
in interfaceIGamepad
-
getRightVector
- Specified by:
getRightVector
in interfaceIGamepad
-
getLeftFieldOrientedVector
- Specified by:
getLeftFieldOrientedVector
in interfaceIGamepad
-
getRightFieldOrientedVector
- Specified by:
getRightFieldOrientedVector
in interfaceIGamepad
-
getLeftTrigger
public double getLeftTrigger()- Specified by:
getLeftTrigger
in interfaceIGamepad
-
getRightTrigger
public double getRightTrigger()- Specified by:
getRightTrigger
in interfaceIGamepad
-
setLeftInversion
public void setLeftInversion(boolean xInverted, boolean yInverted) - Specified by:
setLeftInversion
in interfaceIGamepad
-
setRightInversion
public void setRightInversion(boolean xInverted, boolean yInverted) - Specified by:
setRightInversion
in interfaceIGamepad
-