Source code for wpilib.robotstate

# validated: 2018-01-04 TW e1195e8b9dab edu/wpi/first/wpilibj/RobotState.java

__all__ = ["RobotState"]

[docs]class RobotState: """Provides an interface to determine the current operating state of the robot code. """ impl = None
[docs] @staticmethod def isDisabled(): return RobotState.impl.isDisabled()
[docs] @staticmethod def isEnabled(): return RobotState.impl.isEnabled()
[docs] @staticmethod def isOperatorControl(): return RobotState.impl.isOperatorControl()
[docs] @staticmethod def isAutonomous(): return RobotState.impl.isAutonomous()
[docs] @staticmethod def isTest(): return RobotState.impl.isTest()