blob: f5da5c120164755df40d7e13047a371236f12667 [file] [log] [blame]
Brian Silverman41cdd3e2019-01-19 19:48:58 -08001/*----------------------------------------------------------------------------*/
2/* Copyright (c) 2016-2018 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::IsOperatorControl() {
23 return DriverStation::GetInstance().IsOperatorControl();
24}
25
26bool RobotState::IsAutonomous() {
27 return DriverStation::GetInstance().IsAutonomous();
28}
29
30bool RobotState::IsTest() { return DriverStation::GetInstance().IsTest(); }