#include "RobotState.h"

RobotStateInterface* RobotState::impl = 0;

void RobotState::SetImplementation(RobotStateInterface* i) {
    impl = i;
}

bool RobotState::IsDisabled() {
    if (impl != 0) {
        return impl->IsDisabled();
    }
    return true;
}

bool RobotState::IsEnabled() {
    if (impl != 0) {
        impl->IsEnabled();
    }
    return false;
}

bool RobotState::IsOperatorControl() {
    if (impl != 0) {
        impl->IsOperatorControl();
    }
    return true;
}

bool RobotState::IsAutonomous() {
    if (impl != 0) {
        impl->IsAutonomous();
    }
    return false;
}

bool RobotState::IsTest() {
    if (impl != 0) {
        impl->IsTest();
    }
    return false;
}

#include "RobotState.h"

RobotStateInterface* RobotState::impl = 0;

void RobotState::SetImplementation(RobotStateInterface* i) {
    impl = i;
}

bool RobotState::IsDisabled() {
    if (impl != 0) {
        return impl->IsDisabled();
    }
    return true;
}

bool RobotState::IsEnabled() {
    if (impl != 0) {
        return impl->IsEnabled();
    }
    return false;
}

bool RobotState::IsOperatorControl() {
    if (impl != 0) {
        return impl->IsOperatorControl();
    }
    return true;
}

bool RobotState::IsAutonomous() {
    if (impl != 0) {
        return impl->IsAutonomous();
    }
    return false;
}

bool RobotState::IsTest() {
    if (impl != 0) {
        return impl->IsTest();
    }
    return false;
}

Fix changes where the default value was always being returned for many of the robot state status functions.
Fix changes where the default value was always being returned for many of the robot state status functions.

Change-Id: I50f11ce6d8ba4cbaa9ab7f44cd2f353e8bba72dd
