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

public class ARateLimit extends Object implements AFilter
This class lets you rate limit a stream of inputs

Instead of being based on the rate that update is called, the value you give it is based on how much it should be able to change in one second.

  • Constructor Details

    • ARateLimit

      public ARateLimit(Number rateLimit)
      Parameters:
      rateLimit - The max speed in rad/s.
  • 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