Package com.cdarobotics.cdalib.bindings
Class Binding
java.lang.Object
com.cdarobotics.cdalib.bindings.Binding
- Direct Known Subclasses:
ToggleBinding
A named boolean condition, typically wired to a gamepad button or a robot state. The condition
is evaluated on demand via
getStatus().-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Binding
- Parameters:
condition- the boolean condition this binding evaluatesid- the unique name used to register and look up this binding
-
-
Method Details
-
getId
- Returns:
- the unique id of this binding.
-
getCondition
- Returns:
- the underlying condition supplier.
-
getStatus
public boolean getStatus()- Returns:
- the current value of this binding's condition.
-