Package frc.robot
Class RobotStates
java.lang.Object
frc.robot.RobotStates
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpectrumStatestatic final SpectrumStatestatic final SpectrumStatestatic final SpectrumStatestatic final Triggerstatic final Triggerstatic final Triggerstatic final Triggerstatic final Triggerstatic final Triggerstatic final SpectrumStatestatic final SpectrumStatestatic final SpectrumStatestatic final Triggerstatic final Triggerstatic final Triggerstatic final SpectrumStatestatic final Triggerstatic final Triggerstatic final SpectrumStatestatic final SpectrumStatestatic final Triggerstatic final Triggerstatic final Triggerstatic final SpectrumStatestatic final Triggerstatic final Triggerstatic final Triggerstatic final Triggerstatic final SpectrumStatestatic final Triggerstatic final SpectrumStatestatic final Triggerstatic final Triggerstatic final SpectrumStatestatic final Triggerstatic final Triggerstatic final SpectrumStatestatic final Triggerstatic final Triggerstatic final Triggerstatic final TriggerDefine Robot States here and how they can be triggered States should be triggers that command multiple mechanism or can be used in teleop or auton Use onTrue/whileTrue to run a command when entering the state Use onFalse/whileFalse to run a command when leaving the state RobotType Triggersstatic final Triggerstatic final Triggerstatic final Triggerstatic final SpectrumStatestatic final SpectrumStatestatic final Triggerstatic final SpectrumStatestatic final Triggerstatic final Triggerstatic final Triggerstatic final Triggerstatic final Triggerstatic final Triggerstatic final SpectrumStatestatic final Trigger -
Method Summary
Modifier and TypeMethodDescriptionstatic edu.wpi.first.wpilibj2.command.Commandstatic edu.wpi.first.wpilibj2.command.Commandstatic edu.wpi.first.wpilibj2.command.Commandstatic doublestatic doublestatic doublestatic doublestatic doublestatic doublestatic void
-
Field Details
-
coastMode
-
coral
-
algae
-
l1
-
l2
-
l3
-
l4
-
shrinkState
-
rightScore
-
reverse
-
actionPrepState
-
actionState
-
homeAll
-
autonStationIntake
-
twistAtReef
-
aligned
-
autoScoreMode
-
autonAutoScoreMode
-
coralScoring
-
pm
Define Robot States here and how they can be triggered States should be triggers that command multiple mechanism or can be used in teleop or auton Use onTrue/whileTrue to run a command when entering the state Use onFalse/whileFalse to run a command when leaving the state RobotType Triggers -
photon
-
sim
-
intakeRunning
-
stationIntaking
-
groundAlgae
-
groundCoral
-
intaking
-
climbPrep
-
climbFinish
-
shrink
-
processorAlgae
-
L2Algae
-
L3Algae
-
netAlgae
-
stagedAlgae
-
L1Coral
-
L2Coral
-
L3Coral
-
L4Coral
-
branch
-
stagedCoral
-
staged
-
atL1Coral
-
atL2Coral
-
atL3Coral
-
atL4Coral
-
atL2Algae
-
atL3Algae
-
completeStagedCoral
-
completeStagedAlgae
-
toggleReverse
-
poseReversal
-
poseUpdate
-
isAtHome
-
twistStageComplete
-
homeElevator
-
hasGamePiece
-
-
Method Details
-
setupStates
public static void setupStates() -
clearStaged
public static edu.wpi.first.wpilibj2.command.Command clearStaged() -
clearStates
public static edu.wpi.first.wpilibj2.command.Command clearStates() -
autonClearStates
public static edu.wpi.first.wpilibj2.command.Command autonClearStates() -
getScoreTime
public static double getScoreTime() -
getAutonScoreTime
public static double getAutonScoreTime() -
getTwistAtReefDelay
public static double getTwistAtReefDelay() -
getScoreAfterAlignTime
public static double getScoreAfterAlignTime() -
getAutonScoreAfterAlignTime
public static double getAutonScoreAfterAlignTime() -
getActionPrepToActionTime
public static double getActionPrepToActionTime()
-