Class BDebounceRC.Rising

java.lang.Object
com.stuypulse.stuylib.streams.booleans.filters.BDebounceRC.Rising
All Implemented Interfaces:
BDebounceRC, BFilter
Enclosing interface:
BDebounceRC

public static class BDebounceRC.Rising extends Object implements BDebounceRC
An RC Debouncer that has a true bias
  • Constructor Details

    • Rising

      public Rising(Number debounceTime)
      Parameters:
      debounceTime - amount of time on average to go from false to true
  • Method Details

    • get

      public boolean get(boolean next)
      Description copied from interface: BFilter
      Get next value in Filter based on the next value given
      Specified by:
      get in interface BFilter
      Parameters:
      next - next input value in the stream
      Returns:
      the output value of the filter