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 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 Trigger -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandapplyState(State state) static 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
-
launcherOnTarget
-
autoUpdatePose
-
-
Method Details
-
setupStates
public static void setupStates() -
applyState
-
clearState
-
getAppliedState
-