Class PhysicalEncoder


public class PhysicalEncoder extends Knob
A Knob controlled through Addresses by an Encoder that outputs relative values.
  • Constructor Details

    • PhysicalEncoder

      public PhysicalEncoder(String id, DoubleAddress positionAddress)
      Creates a new PhysicalPotentiometer.
      Parameters:
      id - The ID string for the PhysicalPotentiometer to use.
      positionAddress - The Address used for the position. A value of 0.5 is the center, values above that are movement in the positive direction, and values below that are movement in the negative direction.
  • Method Details

    • updateClient

      public void updateClient()
      Description copied from class: Control
      Updates the control's state on the client. This should get any feedback from the server, but this should not interface with the buttonbox hardware.

      This doesn't do anything by default, and should be overridden by the class inheritting this.

      Overrides:
      updateClient in class Knob
    • setLoopMode

      public PhysicalEncoder setLoopMode(PhysicalEncoder.LoopMode mode)
      Sets the loop mode of the encoder.
      Parameters:
      mode - Mode to set.
      Returns:
      The modified object for method chaining.
    • setScale

      public PhysicalEncoder setScale(double scale)
      Sets the scaling of the encoder values.
      Parameters:
      scale - Scale to set.
      Returns:
      The modified object for method chaining.