Package frc.robot.pilot
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 frc.spectrumLib.gamepads.Gamepad
Gamepad.Config, Gamepad.Threshold -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal TriggerFields inherited from class frc.spectrumLib.gamepads.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 frc.spectrumLib.gamepads.Gamepad
chooseCardinalDirections, configure, getBlueAllianceStickCardinals, getHID, getLeftStickCardinals, getLeftStickCurve, getLeftStickDirection, getLeftStickMagnitude, getLeftTriggerAxis, getLeftX, getLeftY, getRedAllianceStickCardinals, getRightStickCardinals, getRightStickCurve, getRightStickDirection, getRightStickMagnitude, getRightTriggerAxis, getRightX, getRightY, getRumbleHID, getTriggersCurve, getTwist, isConnected, leftStick, leftXTrigger, leftYTrigger, periodic, resetConfig, rightStick, rightXTrigger, rightYTrigger, rumbleCommand, rumbleCommand, rumbleCommand, rumbleControllerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.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
-
-
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()
-