Package edu.wpi.first.wpilibj
Class RobotState
java.lang.Object
edu.wpi.first.wpilibj.RobotState
public final class RobotState extends Object
Robot state utility functions.
-
Method Summary
Modifier and Type Method Description static boolean
isAutonomous()
Returns true if the robot is in autonomous mode.static boolean
isDisabled()
Returns true if the robot is disabled.static boolean
isEnabled()
Returns true if the robot is enabled.static boolean
isEStopped()
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.
-