blob: 530cee34a06217ee37b4f159a594851749778957 [file] [log] [blame]
Brian Silverman41cdd3e2019-01-19 19:48:58 -08001/*----------------------------------------------------------------------------*/
James Kuszmaul4f3ad3c2019-12-01 16:35:21 -08002/* Copyright (c) 2016-2019 FIRST. All Rights Reserved. */
Brian Silverman41cdd3e2019-01-19 19:48:58 -08003/* 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
James Kuszmaul4f3ad3c2019-12-01 16:35:21 -080022bool RobotState::IsEStopped() {
23 return DriverStation::GetInstance().IsEStopped();
24}
25
Brian Silverman41cdd3e2019-01-19 19:48:58 -080026bool 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(); }