Class AnalogBinding

java.lang.Object
com.cdarobotics.cdalib.bindings.AnalogBinding

public class AnalogBinding extends Object
A named analog input (e.g. a trigger pull or joystick axis), evaluated on demand via getValue().
  • Constructor Details

    • AnalogBinding

      public AnalogBinding(DoubleSupplier provider, String id)
      Parameters:
      provider - the analog value source this binding reads
      id - the unique name used to register and look up this binding
  • Method Details

    • getId

      public String getId()
      Returns:
      the unique id of this analog binding.
    • getProvider

      public DoubleSupplier getProvider()
      Returns:
      the underlying value supplier.
    • getValue

      public double getValue()
      Returns:
      the current value of this analog input.