mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpimath] Remove SlewRateLimiter 2 argument constructor (#5648)
Deprecated in #4377
This commit is contained in:
@@ -58,19 +58,6 @@ class SlewRateLimiter {
|
||||
explicit SlewRateLimiter(Rate_t rateLimit)
|
||||
: SlewRateLimiter(rateLimit, -rateLimit) {}
|
||||
|
||||
/**
|
||||
* Creates a new SlewRateLimiter with the given positive rate limit and
|
||||
* negative rate limit of -rateLimit and initial value.
|
||||
*
|
||||
* @param rateLimit The rate-of-change limit.
|
||||
* @param initialValue The initial value of the input.
|
||||
*/
|
||||
WPI_DEPRECATED(
|
||||
"Use SlewRateLimiter(Rate_t positiveRateLimit, Rate_t negativeRateLimit, "
|
||||
"Unit_t initalValue) instead")
|
||||
SlewRateLimiter(Rate_t rateLimit, Unit_t initialValue)
|
||||
: SlewRateLimiter(rateLimit, -rateLimit, initialValue) {}
|
||||
|
||||
/**
|
||||
* Filters the input to limit its slew rate.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user