Class Pilot
java.lang.Object
frc.spectrumLib.gamepads.Gamepad
frc.robot.pilot.Pilot
- All Implemented Interfaces:
Subsystem
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Gamepad
Gamepad.Config, Gamepad.Mapping, Gamepad.Threshold -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Triggerfinal TriggerAny of the above; its falling edge is IDLE.final Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal TriggerFields inherited from class Gamepad
A, autoMode, B, bothBumpers, bothTriggers, disabled, downDpad, kFalse, leftBumper, leftBumperOnly, leftDpad, leftStickClick, leftStickCurve, leftStickX, leftStickY, leftTrigger, leftTriggerOnly, noBumpers, noModifiers, noTriggers, rightBumper, rightBumperOnly, rightDpad, rightStickClick, rightStickCurve, rightStickX, rightStickY, rightTrigger, rightTriggerOnly, select, start, teleop, testMode, triggersCurve, upDpad, X, Y -
Constructor Summary
ConstructorsConstructorDescriptionPilot(Pilot.PilotConfig config) Create a new Pilot with the default name and port. -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoubledoublevoidsetMaxRotationalVelocity(double maxRotationalVelocity) voidsetMaxVelocity(double maxVelocity) Methods inherited from class Gamepad
chooseCardinalDirections, configure, describePressed, getBlueAllianceStickCardinals, getDpad, getHID, getLayout, getLeftStickCardinals, getLeftStickCurve, getLeftStickDirection, getLeftStickMagnitude, getLeftTriggerAxis, getLeftX, getLeftY, getRedAllianceStickCardinals, getRightStickCardinals, getRightStickCurve, getRightStickDirection, getRightStickMagnitude, getRightTriggerAxis, getRightX, getRightY, getRumbleHID, getTriggersCurve, getTwist, isConnected, leftStick, leftXTrigger, leftYTrigger, modifierChords, periodic, resetConfig, rightStick, rightXTrigger, rightYTrigger, rumbleCommand, rumbleCommand, rumbleCommand, rumbleControllerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Subsystem
defer, getCurrentCommand, getDefaultCommand, getName, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Field Details
-
LB
-
RB
-
LT
-
RT
-
AButton
-
BButton
-
XButton
-
YButton
-
startButton
-
selectButton
-
leftStickPress
-
rightStickPress
-
dPadUp
-
dPadDown
-
dPadLeft
-
dPadRight
-
setShotTower_LB_A
-
setShotLeftTrench_LB_X
-
setShotRightTrench_LB_B
-
unjam_A
-
trackTarget_X
-
anyFaceChord
Any of the above; its falling edge is IDLE.
-
-
Constructor Details
-
Pilot
Create a new Pilot with the default name and port.
-
-
Method Details
-
setMaxVelocity
public void setMaxVelocity(double maxVelocity) -
setMaxRotationalVelocity
public void setMaxRotationalVelocity(double maxRotationalVelocity) -
getDriveFwdPositive
public double getDriveFwdPositive() -
getDriveLeftPositive
public double getDriveLeftPositive() -
getDriveCCWPositive
public double getDriveCCWPositive() -
getPilotStickAngle
public double getPilotStickAngle()
-