calculate
fun calculate(input: Double, timestamp: ComparableTimeMark = TimeSource.Monotonic.markNow()): Double(source)
Filters the input to limit its slew rate.
Return
The filtered value, which will not change faster than the slew rate.
Parameters
input
The input value whose slew rate is to be limited.
timestamp
the current time (default: TimeSource.Monotonic.markNow())