Package frc.robot

Class RobotStates

java.lang.Object
frc.robot.RobotStates

public class RobotStates extends Object
Manages the high-level robot states. This class coordinates multiple subsystems based on the current robot state.
  • Field Details

    • robotInNeutralZone

      public static final Trigger 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

      public static final Trigger robotInEnemyZone
    • robotInFeedZone

      public static final Trigger robotInFeedZone
    • robotInScoreZone

      public static final Trigger robotInScoreZone
    • launcherOnTarget

      public static final Trigger launcherOnTarget
    • autoUpdatePose

      public static final Trigger autoUpdatePose
  • Method Details

    • setupStates

      public static void setupStates()
    • applyState

      public static Command applyState(State state)
    • clearState

      public static Command clearState()
    • getAppliedState

      public static State getAppliedState()