Package com.cdarobotics.cdalib.bindings
Class AnalogBinding
java.lang.Object
com.cdarobotics.cdalib.bindings.AnalogBinding
A named analog input (e.g. a trigger pull or joystick axis), evaluated on demand via
getValue().-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AnalogBinding
- Parameters:
provider- the analog value source this binding readsid- the unique name used to register and look up this binding
-
-
Method Details
-
getId
- Returns:
- the unique id of this analog binding.
-
getProvider
- Returns:
- the underlying value supplier.
-
getValue
public double getValue()- Returns:
- the current value of this analog input.
-