Package edu.wpi.first.hal
Class ControlWord
java.lang.Object
edu.wpi.first.hal.ControlWord
A wrapper for the HALControlWord bitfield.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the Autonomous mode flag.boolean
Gets the DS attached flag.boolean
Gets the Enabled flag.boolean
getEStop()
Gets the E-Stop flag.boolean
Gets the FMS attached flag.boolean
getTest()
Gets the Test mode flag.void
update
(ControlWord word) Updates from an existing word.
-
Constructor Details
-
ControlWord
public ControlWord()Default constructor.
-
-
Method Details
-
update
Updates from an existing word.- Parameters:
word
- word to update from
-
getEnabled
Gets the Enabled flag.- Returns:
- the Enabled flag
-
getAutonomous
Gets the Autonomous mode flag.- Returns:
- the Autonomous mode flag
-
getTest
Gets the Test mode flag.- Returns:
- the Test mode flag
-
getEStop
Gets the E-Stop flag.- Returns:
- the E-Stop flag
-
getFMSAttached
Gets the FMS attached flag.- Returns:
- the FMS attached flag
-
getDSAttached
Gets the DS attached flag.- Returns:
- the DS attached flag
-