Package frc.robot.pilot
Class Pilot
java.lang.Object
frc.spectrumLib.gamepads.Gamepad
frc.robot.pilot.Pilot
- All Implemented Interfaces:
edu.wpi.first.wpilibj2.command.Subsystem,SpectrumSubsystem
-
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 Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal Triggerfinal 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) voidsetSlowMode(SpectrumState slowMode) voidsetTurboMode(SpectrumState turboMode) voidSet up the default command for this subsystem.voidSet up the states and triggers for this subsystem.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
-
enabled
-
fn
-
noFn
-
home_select
-
LT
-
RT
-
LB_LT
-
AButton
-
BButton
-
XButton
-
YButton
-
startButton
-
RB
-
dpadUp
-
dpadDown
-
dpadLeft
-
dpadRight
-
tagsInView
-
upReorient
-
leftReorient
-
downReorient
-
rightReorient
-
driving
-
steer
-
fpv_LS
-
toggleReverse
-
coastOn_dB
-
coastOff_dA
-
reZero_start
-
visionPoseReset_LB_Select
-
testTune_tB
-
testTune_tA
-
testTune_tX
-
testTune_tY
-
testTune_RB
-
testTune_LB
-
testTriggersTrigger
-
testActionReady
-
-
Constructor Details
-
Pilot
Create a new Pilot with the default name and port.
-
-
Method Details
-
setupStates
public void setupStates()Description copied from interface:SpectrumSubsystemSet up the states and triggers for this subsystem. This is typically used to bind commands to SpectrumState triggers. -
setupDefaultCommand
public void setupDefaultCommand()Description copied from interface:SpectrumSubsystemSet up the default command for this subsystem. This command will run when no other command is using this subsystem. -
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() -
getSlowMode
-
setSlowMode
-
getTurboMode
-
setTurboMode
-