blob: 530cee34a06217ee37b4f159a594851749778957 [file] [log] [blame]
Brian Silverman8fce7482020-01-05 13:18:21 -08001/*----------------------------------------------------------------------------*/
2/* Copyright (c) 2016-2019 FIRST. All Rights Reserved. */
3/* Open Source Software - may be modified and shared by FRC teams. The code */
4/* must be accompanied by the FIRST BSD license file in the root directory of */
5/* the project. */
6/*----------------------------------------------------------------------------*/
7
8#include "frc/RobotState.h"
9
10#include "frc/DriverStation.h"
11
12using namespace frc;
13
14bool RobotState::IsDisabled() {
15 return DriverStation::GetInstance().IsDisabled();
16}
17
18bool RobotState::IsEnabled() {
19 return DriverStation::GetInstance().IsEnabled();
20}
21
22bool RobotState::IsEStopped() {
23 return DriverStation::GetInstance().IsEStopped();
24}
25
26bool RobotState::IsOperatorControl() {
27 return DriverStation::GetInstance().IsOperatorControl();
28}
29
30bool RobotState::IsAutonomous() {
31 return DriverStation::GetInstance().IsAutonomous();
32}
33
34bool RobotState::IsTest() { return DriverStation::GetInstance().IsTest(); }