Class RobotState

java.lang.Object
edu.wpi.first.wpilibj.RobotState

public final class RobotState
extends Object
Robot state utility functions.
  • Method Details

    • isDisabled

      public static boolean isDisabled()
      Returns true if the robot is disabled.
      Returns:
      True if the robot is disabled.
    • isEnabled

      public static boolean isEnabled()
      Returns true if the robot is enabled.
      Returns:
      True if the robot is enabled.
    • isEStopped

      public static boolean isEStopped()
      Returns true if the robot is E-stopped.
      Returns:
      True if the robot is E-stopped.
    • isTeleop

      public static boolean isTeleop()
      Returns true if the robot is in teleop mode.
      Returns:
      True if the robot is in teleop mode.
    • isAutonomous

      public static boolean isAutonomous()
      Returns true if the robot is in autonomous mode.
      Returns:
      True if the robot is in autonomous mode.
    • isTest

      public static boolean isTest()
      Returns true if the robot is in test mode.
      Returns:
      True if the robot is in test mode.