Package org.texastorque.torquelib.legacy
Class GenericController
java.lang.Object
edu.wpi.first.wpilibj.GenericHID
edu.wpi.first.wpilibj.Joystick
org.texastorque.torquelib.legacy.GenericController
Deprecated.
A class that reads input from either a Logitech or Xbox controller.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.Joystick
edu.wpi.first.wpilibj.Joystick.AxisType, edu.wpi.first.wpilibj.Joystick.ButtonType
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.GenericHID
edu.wpi.first.wpilibj.GenericHID.HIDType, edu.wpi.first.wpilibj.GenericHID.RumbleType
-
Field Summary
Modifier and TypeFieldDescriptionint[]
Deprecated.static final int
Deprecated.static final int
Deprecated.Fields inherited from class edu.wpi.first.wpilibj.Joystick
kDefaultThrottleChannel, kDefaultTwistChannel, kDefaultXChannel, kDefaultYChannel, kDefaultZChannel
-
Constructor Summary
ConstructorDescriptionGenericController
(int port, double dband) Deprecated.GenericController
(int port, int type, double dband) Deprecated.Create a new controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.int
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.double
Deprecated.double
Deprecated.double
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.double
Deprecated.double
Deprecated.double
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.void
setDeadband
(double dband) Deprecated.Set the deadband of the controller.void
setLeftRumble
(boolean on) Deprecated.void
setRightRumble
(boolean on) Deprecated.void
setRumble
(boolean on) Deprecated.void
setType
(int type) Deprecated.Change controller type.Methods inherited from class edu.wpi.first.wpilibj.Joystick
getDirectionDegrees, getDirectionRadians, getMagnitude, getThrottle, getThrottleChannel, getTop, getTopPressed, getTopReleased, getTrigger, getTriggerPressed, getTriggerReleased, getTwist, getTwistChannel, getX, getXChannel, getY, getYChannel, getZ, getZChannel, setThrottleChannel, setTwistChannel, setXChannel, setYChannel, setZChannel, top, trigger
Methods inherited from class edu.wpi.first.wpilibj.GenericHID
axisGreaterThan, axisLessThan, button, getAxisCount, getAxisType, getButtonCount, getName, getPort, getPOV, getPOV, getPOVCount, getRawAxis, getRawButton, getRawButtonPressed, getRawButtonReleased, getType, isConnected, pov, pov, povCenter, povDown, povDownLeft, povDownRight, povLeft, povRight, povUp, povUpLeft, povUpRight, setOutput, setOutputs, setRumble
-
Field Details
-
TYPE_LOGITECH
public static final int TYPE_LOGITECHDeprecated.- See Also:
-
TYPE_XBOX
public static final int TYPE_XBOXDeprecated.- See Also:
-
controllerMap
public int[] controllerMapDeprecated.
-
-
Constructor Details
-
GenericController
public GenericController(int port, double dband) Deprecated. -
GenericController
public GenericController(int port, int type, double dband) Deprecated.Create a new controller.- Parameters:
port
- Which Driver Station port the controller is in (use constant).type
- Type of controller.dband
- The size of the deadband.
-
-
Method Details
-
setDeadband
public void setDeadband(double dband) Deprecated.Set the deadband of the controller.- Parameters:
dband
- The new deadband to use.
-
setType
public void setType(int type) Deprecated.Change controller type. Will default to Xbox if an incorrect type is given.- Parameters:
type
- New controller type.
-
getControllerType
Deprecated. -
getLeftYAxis
public double getLeftYAxis()Deprecated. -
getLeftXAxis
public double getLeftXAxis()Deprecated. -
getRightYAxis
public double getRightYAxis()Deprecated. -
getRightXAxis
public double getRightXAxis()Deprecated. -
getLeftStickClick
public boolean getLeftStickClick()Deprecated. -
getRightStickClick
public boolean getRightStickClick()Deprecated. -
getLeftBumper
public boolean getLeftBumper()Deprecated. -
getRightBumper
public boolean getRightBumper()Deprecated. -
getLeftTrigger
public boolean getLeftTrigger()Deprecated. -
getLeftZAxis
public double getLeftZAxis()Deprecated. -
getRightTrigger
public boolean getRightTrigger()Deprecated. -
getRightZAxis
public double getRightZAxis()Deprecated. -
getLeftCenterButton
public boolean getLeftCenterButton()Deprecated. -
getRightCenterButton
public boolean getRightCenterButton()Deprecated. -
getXButton
public boolean getXButton()Deprecated. -
getYButton
public boolean getYButton()Deprecated. -
getBButton
public boolean getBButton()Deprecated. -
getAButton
public boolean getAButton()Deprecated. -
getAButtonReleased
public boolean getAButtonReleased()Deprecated. -
getBButtonReleased
public boolean getBButtonReleased()Deprecated. -
getXButtonReleased
public boolean getXButtonReleased()Deprecated. -
getYButtonReleased
public boolean getYButtonReleased()Deprecated. -
getAButtonPressed
public boolean getAButtonPressed()Deprecated. -
getBButtonPressed
public boolean getBButtonPressed()Deprecated. -
getXButtonPressed
public boolean getXButtonPressed()Deprecated. -
getYButtonPressed
public boolean getYButtonPressed()Deprecated. -
getDPADUp
public boolean getDPADUp()Deprecated. -
getDPADUpLeft
public boolean getDPADUpLeft()Deprecated. -
getDPADUpRight
public boolean getDPADUpRight()Deprecated. -
getDPADRight
public boolean getDPADRight()Deprecated. -
getDPADDownRight
public boolean getDPADDownRight()Deprecated. -
getDPADDown
public boolean getDPADDown()Deprecated. -
getDPADDownLeft
public boolean getDPADDownLeft()Deprecated. -
getDPADLeft
public boolean getDPADLeft()Deprecated. -
setLeftRumble
public void setLeftRumble(boolean on) Deprecated. -
setRightRumble
public void setRightRumble(boolean on) Deprecated. -
setRumble
public void setRumble(boolean on) Deprecated.
-
GenericController
).