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
    • forceScore

      public static final Trigger forceScore
    • turretOnTarget

      public static final Trigger turretOnTarget
    • launcherOnTarget

      public static final Trigger launcherOnTarget
    • readyToLaunch

      public static final Trigger readyToLaunch
  • Method Details

    • setupStates

      public static void setupStates()
    • applyState

      public static edu.wpi.first.wpilibj2.command.Command applyState(State state)
    • clearState

      public static edu.wpi.first.wpilibj2.command.Command clearState()
    • getAppliedState

      public static State getAppliedState()