Package edu.wpi.first.wpilibj
Class RobotState
java.lang.Object
edu.wpi.first.wpilibj.RobotState
Robot state utility functions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returns true if the robot is in autonomous mode.static boolean
Returns true if the robot is disabled.static boolean
Returns true if the robot is enabled.static boolean
Returns true if the robot is E-stopped.static boolean
isTeleop()
Returns true if the robot is in teleop mode.static boolean
isTest()
Returns true if the robot is in test mode.
-
Method Details
-
isDisabled
Returns true if the robot is disabled.- Returns:
- True if the robot is disabled.
-
isEnabled
Returns true if the robot is enabled.- Returns:
- True if the robot is enabled.
-
isEStopped
Returns true if the robot is E-stopped.- Returns:
- True if the robot is E-stopped.
-
isTeleop
Returns true if the robot is in teleop mode.- Returns:
- True if the robot is in teleop mode.
-
isAutonomous
Returns true if the robot is in autonomous mode.- Returns:
- True if the robot is in autonomous mode.
-
isTest
Returns true if the robot is in test mode.- Returns:
- True if the robot is in test mode.
-