Package edu.wpi.first.wpilibj
Class JoystickBase
- java.lang.Object
-
- edu.wpi.first.wpilibj.GenericHID
-
- edu.wpi.first.wpilibj.JoystickBase
-
@Deprecated public abstract class JoystickBase extends GenericHID
Deprecated.Inherit directly from GenericHID instead.JoystickBase Interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.GenericHID
GenericHID.Hand, GenericHID.HIDType, GenericHID.RumbleType
-
-
Constructor Summary
Constructors Constructor Description JoystickBase(int port)Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract doublegetThrottle()Deprecated.Get the throttle.abstract doublegetTwist()Deprecated.Get the twist value.doublegetZ()Deprecated.abstract doublegetZ(GenericHID.Hand hand)Deprecated.Get the z position of the HID.-
Methods inherited from class edu.wpi.first.wpilibj.GenericHID
getAxisCount, getAxisType, getButtonCount, getName, getPort, getPOV, getPOV, getPOVCount, getRawAxis, getRawButton, getRawButtonPressed, getRawButtonReleased, getType, getX, getX, getY, getY, setOutput, setOutputs, setRumble
-
-
-
-
Method Detail
-
getZ
public abstract double getZ(GenericHID.Hand hand)
Deprecated.Get the z position of the HID.- Parameters:
hand- which hand, left or right- Returns:
- the z position
-
getZ
public double getZ()
Deprecated.
-
getTwist
public abstract double getTwist()
Deprecated.Get the twist value.- Returns:
- the twist value
-
getThrottle
public abstract double getThrottle()
Deprecated.Get the throttle.- Returns:
- the throttle value
-
-