Class Pt1filter

java.lang.Object
io.openems.edge.common.filter.Pt1filter

public class Pt1filter extends Object
  • Constructor Details

    • Pt1filter

      public Pt1filter(double filterTimeConstant, double cycleTime)
      Creates a PT1 filter.
      Parameters:
      filterTimeConstant - filter time constant in seconds.
      cycleTime - cycle time of calling applyPt1Filter in seconds
  • Method Details

    • setCycleTime

      public void setCycleTime(double cycleTime)
      Sets cycle time of PT1 filter.
      Parameters:
      cycleTime - cycle time of calling applyPt1Filter in seconds
    • applyPt1Filter

      public double applyPt1Filter(double value)
      Apply the PT1 filter.
      Parameters:
      value - the input value
      Returns:
      the filtered value