Package frc.robot
Class RobotStates
java.lang.Object
frc.robot.RobotStates
Manages the high-level robot states. This class coordinates multiple subsystems based on the
current robot state.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Triggerstatic final Triggerstatic 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 Trigger -
Method Summary
Modifier and TypeMethodDescriptionstatic edu.wpi.first.wpilibj2.command.CommandapplyState(State state) static edu.wpi.first.wpilibj2.command.Commandstatic Statestatic void
-
Field Details
-
robotInNeutralZone
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 -
robotInEnemyZone
-
robotInFeedZone
-
robotInScoreZone
-
forceScore
-
turretOnTarget
-
launcherOnTarget
-
readyToLaunch
-
-
Method Details
-
setupStates
public static void setupStates() -
applyState
-
clearState
public static edu.wpi.first.wpilibj2.command.Command clearState() -
getAppliedState
-