Package edu.wpi.first.wpilibj
Class DSControlWord
java.lang.Object
edu.wpi.first.wpilibj.DSControlWord
public class DSControlWord extends Object
A wrapper around Driver Station control word.
- 
Constructor SummaryConstructors Constructor Description DSControlWord()DSControlWord constructor.
- 
Method SummaryModifier and Type Method Description booleanisAutonomous()Gets a value indicating whether the Driver Station requires the robot to be running in autonomous mode.booleanisAutonomousEnabled()Gets a value indicating whether the Driver Station requires the robot to be running in autonomous mode and enabled.booleanisDisabled()Gets a value indicating whether the Driver Station requires the robot to be disabled.booleanisDSAttached()Gets a value indicating whether the Driver Station is attached.booleanisEnabled()Gets a value indicating whether the Driver Station requires the robot to be enabled.booleanisEStopped()Gets a value indicating whether the Robot is e-stopped.booleanisFMSAttached()Gets if the driver station attached to a Field Management System.booleanisTeleop()Gets a value indicating whether the Driver Station requires the robot to be running in operator-controlled mode.booleanisTeleopEnabled()Gets a value indicating whether the Driver Station requires the robot to be running in operator-controller mode and enabled.booleanisTest()Gets a value indicating whether the Driver Station requires the robot to be running in test mode.voidupdate()Update internal Driver Station control word.
- 
Constructor Details- 
DSControlWordpublic DSControlWord()DSControlWord constructor.Upon construction, the current Driver Station control word is read and stored internally. 
 
- 
- 
Method Details- 
updateUpdate internal Driver Station control word.
- 
isEnabledGets a value indicating whether the Driver Station requires the robot to be enabled.- Returns:
- True if the robot is enabled, false otherwise.
 
- 
isDisabledGets a value indicating whether the Driver Station requires the robot to be disabled.- Returns:
- True if the robot should be disabled, false otherwise.
 
- 
isEStoppedGets a value indicating whether the Robot is e-stopped.- Returns:
- True if the robot is e-stopped, false otherwise.
 
- 
isAutonomousGets a value indicating whether the Driver Station requires the robot to be running in autonomous mode.- Returns:
- True if autonomous mode should be enabled, false otherwise.
 
- 
isAutonomousEnabledGets a value indicating whether the Driver Station requires the robot to be running in autonomous mode and enabled.- Returns:
- True if autonomous should be set and the robot should be enabled.
 
- 
isTeleopGets a value indicating whether the Driver Station requires the robot to be running in operator-controlled mode.- Returns:
- True if operator-controlled mode should be enabled, false otherwise.
 
- 
isTeleopEnabledGets a value indicating whether the Driver Station requires the robot to be running in operator-controller mode and enabled.- Returns:
- True if operator-controlled mode should be set and the robot should be enabled.
 
- 
isTestGets a value indicating whether the Driver Station requires the robot to be running in test mode.- Returns:
- True if test mode should be enabled, false otherwise.
 
- 
isDSAttachedGets a value indicating whether the Driver Station is attached.- Returns:
- True if Driver Station is attached, false otherwise.
 
- 
isFMSAttachedGets if 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
 
 
-