Package frclib.driverio
Class FrcSideWinderJoystick
java.lang.Object
trclib.driverio.TrcGameController
frclib.driverio.FrcJoystick
frclib.driverio.FrcSideWinderJoystick
This class implements the platform dependent joystick. It provides monitoring of the joystick buttons. If the
caller of this class provides a button notification handler, it will call it when there are button events.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class frclib.driverio.FrcJoystick
FrcJoystick.ButtonEventHandler, FrcJoystick.ButtonType
Nested classes/interfaces inherited from class trclib.driverio.TrcGameController
TrcGameController.DriveMode
-
Field Summary
Fields inherited from class frclib.driverio.FrcJoystick
joystick
Fields inherited from class trclib.driverio.TrcGameController
instanceName, tracer
-
Constructor Summary
ConstructorsConstructorDescriptionFrcSideWinderJoystick
(String instanceName, int port) Constructor: Create an instance of the object.FrcSideWinderJoystick
(String instanceName, int port, double deadbandThreshold) Constructor: Create an instance of the object. -
Method Summary
Methods inherited from class frclib.driverio.FrcJoystick
getButtons, getDriveInputs, getDriveInputs, getThrottle, getThrottle, getThrottle, getTwist, getTwist, getTwist, getX, getX, getX, getY, getY, getY, getZ, getZ, getZ, notifyButtonEvent, setButtonEventHandler, setInverted, setInverted
Methods inherited from class trclib.driverio.TrcGameController
adjustAnalogControl, adjustAnalogControl, getDirectionDegrees, getDirectionRadians, getMagnitude, init, setButtonEventEnabled, setExponent, setSamplingPeriod, toString
-
Constructor Details
-
FrcSideWinderJoystick
Constructor: Create an instance of the object.- Parameters:
instanceName
- specifies the instance name.port
- specifies the joystick port ID.
-
FrcSideWinderJoystick
Constructor: Create an instance of the object.- Parameters:
instanceName
- specifies the instance name.port
- specifies the joystick port ID.deadbandThreshold
- specifies the deadband of the analog sticks.
-