mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Merge "Fix changes where the default value was always being returned for many of the robot state status functions."
This commit is contained in:
@@ -15,28 +15,28 @@ bool RobotState::IsDisabled() {
|
||||
|
||||
bool RobotState::IsEnabled() {
|
||||
if (impl != 0) {
|
||||
impl->IsEnabled();
|
||||
return impl->IsEnabled();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool RobotState::IsOperatorControl() {
|
||||
if (impl != 0) {
|
||||
impl->IsOperatorControl();
|
||||
return impl->IsOperatorControl();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RobotState::IsAutonomous() {
|
||||
if (impl != 0) {
|
||||
impl->IsAutonomous();
|
||||
return impl->IsAutonomous();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool RobotState::IsTest() {
|
||||
if (impl != 0) {
|
||||
impl->IsTest();
|
||||
return impl->IsTest();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user