SlewRateLimiter

class SlewRateLimiter(r: Double)

A class that limits the rate of change of an input value. Useful for implementing voltage, setpoint, and/or output ramps. A slew-rate limit is most appropriate when the quantity being controlled is a velocity or a voltage; when controlling a position, consider using a {@link package com.asiankoala.koawalib.control.profile.MotionProfile} instead.

Constructors

Link copied to clipboard
fun SlewRateLimiter(r: Double)

Functions

Link copied to clipboard
fun calculate(input: Double): Double

Filters the input to limit its slew rate.

Link copied to clipboard
fun reset(u: Double)

Resets the slew rate limiter to the specified value; ignores the rate limit when doing so.