Package frc.robot

Class RobotStates

java.lang.Object
frc.robot.RobotStates

public class RobotStates extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static edu.wpi.first.wpilibj2.command.Command
     
    static edu.wpi.first.wpilibj2.command.Command
     
    static State
     
    static void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • setupStates

      public static void setupStates()
      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
    • 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()