Package frc.robot
Class RobotStates
java.lang.Object
frc.robot.RobotStates
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpectrumState
static final SpectrumState
static final SpectrumState
static final SpectrumState
static final Trigger
static final Trigger
static final Trigger
static final Trigger
static final Trigger
static final Trigger
static final SpectrumState
static final SpectrumState
static final SpectrumState
static final Trigger
static final Trigger
static final Trigger
static final SpectrumState
static final Trigger
static final Trigger
static final SpectrumState
static final SpectrumState
static final Trigger
static final Trigger
static final Trigger
static final SpectrumState
static final Trigger
static final Trigger
static final Trigger
static final Trigger
static final SpectrumState
static final Trigger
static final SpectrumState
static final Trigger
static final Trigger
static final SpectrumState
static final Trigger
static final Trigger
static final SpectrumState
static final Trigger
static final Trigger
static final Trigger
static final Trigger
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 Triggersstatic final Trigger
static final Trigger
static final Trigger
static final SpectrumState
static final SpectrumState
static final Trigger
static final SpectrumState
static final Trigger
static final Trigger
static final Trigger
static final Trigger
static final Trigger
static final Trigger
static final SpectrumState
static final Trigger
-
Method Summary
Modifier and TypeMethodDescriptionstatic edu.wpi.first.wpilibj2.command.Command
static edu.wpi.first.wpilibj2.command.Command
static edu.wpi.first.wpilibj2.command.Command
static double
static double
static double
static double
static double
static 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() -
getTwistAtReefDelay
public static double getTwistAtReefDelay() -
getScoreAfterAlignTime
public static double getScoreAfterAlignTime() -
getAutonScoreAfterAlignTime
public static double getAutonScoreAfterAlignTime() -
getActionPrepToActionTime
public static double getActionPrepToActionTime()
-