001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.wpilibj;
006
007@SuppressWarnings("MissingJavadocMethod")
008public final class RobotState {
009  public static boolean isDisabled() {
010    return DriverStation.isDisabled();
011  }
012
013  public static boolean isEnabled() {
014    return DriverStation.isEnabled();
015  }
016
017  public static boolean isEStopped() {
018    return DriverStation.isEStopped();
019  }
020
021  @Deprecated
022  public static boolean isOperatorControl() {
023    return isTeleop();
024  }
025
026  public static boolean isTeleop() {
027    return DriverStation.isTeleop();
028  }
029
030  public static boolean isAutonomous() {
031    return DriverStation.isAutonomous();
032  }
033
034  public static boolean isTest() {
035    return DriverStation.isTest();
036  }
037
038  private RobotState() {}
039}