DSControlWord
- class wpilib.DSControlWord
Bases:
pybind11_object
A wrapper around Driver Station control word.
DSControlWord constructor.
Upon construction, the current Driver Station control word is read and stored internally.
- isAutonomous() bool
Check if the DS is commanding autonomous mode.
- Returns:
True if the robot is being commanded to be in autonomous mode
- isAutonomousEnabled() bool
Check if the DS is commanding autonomous mode and if it has enabled the robot.
- Returns:
True if the robot is being commanded to be in autonomous mode and enabled.
- isDSAttached() bool
Check if the DS is attached.
- Returns:
True if the DS is connected to the robot
- isDisabled() bool
Check if the robot is disabled.
- Returns:
True if the robot is explicitly disabled or the DS is not connected
- isEStopped() bool
Check if the robot is e-stopped.
- Returns:
True if the robot is e-stopped
- isEnabled() bool
Check if the DS has enabled the robot.
- Returns:
True if the robot is enabled and the DS is connected
- isFMSAttached() bool
Is the driver station attached to a Field Management System?
- Returns:
True if the robot is competing on a field being controlled by a Field Management System
- isTeleop() bool
Check if the DS is commanding teleop mode.
- Returns:
True if the robot is being commanded to be in teleop mode
- isTeleopEnabled() bool
Check if the DS is commanding teleop mode and if it has enabled the robot.
- Returns:
True if the robot is being commanded to be in teleop mode and enabled.
- isTest() bool
Check if the DS is commanding test mode.
- Returns:
True if the robot is being commanded to be in test mode