mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Change RobotState functions to return actual values (this time with nullptrs) [artf3611]
Change-Id: Icbe8fbf3d936ab696fed7f264bdf49b95d35c0de
This commit is contained in:
@@ -7,35 +7,35 @@ void RobotState::SetImplementation(RobotStateInterface* i) {
|
||||
}
|
||||
|
||||
bool RobotState::IsDisabled() {
|
||||
if (impl != 0) {
|
||||
if (impl != nullptr) {
|
||||
return impl->IsDisabled();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RobotState::IsEnabled() {
|
||||
if (impl != 0) {
|
||||
if (impl != nullptr) {
|
||||
return impl->IsEnabled();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool RobotState::IsOperatorControl() {
|
||||
if (impl != 0) {
|
||||
if (impl != nullptr) {
|
||||
return impl->IsOperatorControl();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RobotState::IsAutonomous() {
|
||||
if (impl != 0) {
|
||||
if (impl != nullptr) {
|
||||
return impl->IsAutonomous();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool RobotState::IsTest() {
|
||||
if (impl != 0) {
|
||||
if (impl != nullptr) {
|
||||
return impl->IsTest();
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user