Add RobotState#IsEStopped and DriverStation#IsEStopped (#952)

This commit is contained in:
Loki
2019-07-16 09:18:23 -05:00
committed by Peter Johnson
parent e488861877
commit 0f6ef80ab2
6 changed files with 37 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */
/* Copyright (c) 2016-2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -19,6 +19,10 @@ bool RobotState::IsEnabled() {
return DriverStation::GetInstance().IsEnabled();
}
bool RobotState::IsEStopped() {
return DriverStation::GetInstance().IsEStopped();
}
bool RobotState::IsOperatorControl() {
return DriverStation::GetInstance().IsOperatorControl();
}