EnhancedSuppliers
EnhancedBooleanSupplier
EnhancedBooleanSupplier is a Feature that updates once / loop and tracks some additional data about a boolean that is frequently needed in FTC.
Constructing:
State:
Debouncing:
Debounce is basically a filter. This means that a state needs to be true for that long before it changes. I.e. with a leading debounce of 0.02 seconds, you need to hold down the gamepad button for 0.02 seconds before it will change to true in the code.
The arguments are in seconds.
Combining:
Both debouncings and combinations return new EnhancedBooleanSuppliers, rather than mutating the existing one.
Manual update management: