Package org.texastorque.torquelib.legacy
Class TorqueLogiPro
java.lang.Object
edu.wpi.first.wpilibj.GenericHID
edu.wpi.first.wpilibj.Joystick
org.texastorque.torquelib.legacy.TorqueLogiPro
public class TorqueLogiPro
extends edu.wpi.first.wpilibj.Joystick
-
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
Fields inherited from class edu.wpi.first.wpilibj.Joystick
kDefaultThrottleChannel, kDefaultTwistChannel, kDefaultXChannel, kDefaultYChannel, kDefaultZChannel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
atPovState
(int angle) boolean
atPovState
(TorqueLogiPro.PovState state) boolean
getButtonByIndex
(int index) double
getPitch()
double
getRoll()
double
boolean
double
getYaw()
Methods inherited from class edu.wpi.first.wpilibj.Joystick
getDirectionDegrees, getDirectionRadians, getMagnitude, getThrottleChannel, getTop, getTopPressed, getTopReleased, 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
-
port
protected final int port
-
-
Constructor Details
-
TorqueLogiPro
public TorqueLogiPro(int port) -
TorqueLogiPro
public TorqueLogiPro(int port, double deadband)
-
-
Method Details
-
getTrigger
public boolean getTrigger()- Overrides:
getTrigger
in classedu.wpi.first.wpilibj.Joystick
-
getButtonByIndex
public boolean getButtonByIndex(int index) -
getPovState
-
atPovState
-
atPovState
public boolean atPovState(int angle) -
getRoll
public double getRoll() -
getPitch
public double getPitch() -
getYaw
public double getYaw() -
getThrottle
public double getThrottle()- Overrides:
getThrottle
in classedu.wpi.first.wpilibj.Joystick
-