Class ControlWord

java.lang.Object
edu.wpi.first.hal.ControlWord

public class ControlWord extends Object
A wrapper for the HALControlWord bitfield.
  • Constructor Details

    • ControlWord

      public ControlWord()
      Default constructor.
  • Method Details

    • update

      public void update(ControlWord word)
      Updates from an existing word.
      Parameters:
      word - word to update from
    • getEnabled

      public boolean getEnabled()
      Gets the Enabled flag.
      Returns:
      the Enabled flag
    • getAutonomous

      public boolean getAutonomous()
      Gets the Autonomous mode flag.
      Returns:
      the Autonomous mode flag
    • getTest

      public boolean getTest()
      Gets the Test mode flag.
      Returns:
      the Test mode flag
    • getEStop

      public boolean getEStop()
      Gets the E-Stop flag.
      Returns:
      the E-Stop flag
    • getFMSAttached

      public boolean getFMSAttached()
      Gets the FMS attached flag.
      Returns:
      the FMS attached flag
    • getDSAttached

      public boolean getDSAttached()
      Gets the DS attached flag.
      Returns:
      the DS attached flag