Class ALowPassFilter

java.lang.Object
com.stuypulse.stuylib.streams.angles.filters.ALowPassFilter
All Implemented Interfaces:
AFilter

public class ALowPassFilter extends Object implements AFilter
Implementation of a real time IIR LowPassFilter
  • Constructor Details

    • ALowPassFilter

      public ALowPassFilter(Number rc)
      Parameters:
      rc - Time Constant. The time constant is the amount of time in seconds that it takes to get 63.2% of the way to the target value. 63.2% is (1 - (1 / e)).
  • Method Details

    • get

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