mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
[wpimath] Remove SlewRateLimiter 2 argument constructor (#5648)
Deprecated in #4377
This commit is contained in:
@@ -36,20 +36,6 @@ public class SlewRateLimiter {
|
||||
m_prevTime = MathSharedStore.getTimestamp();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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, in units per second.
|
||||
* @param initalValue The initial value of the input.
|
||||
* @deprecated Use SlewRateLimiter(double positiveRateLimit, double negativeRateLimit, double
|
||||
* initalValue) instead.
|
||||
*/
|
||||
@Deprecated(since = "2023", forRemoval = true)
|
||||
public SlewRateLimiter(double rateLimit, double initalValue) {
|
||||
this(rateLimit, -rateLimit, initalValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new SlewRateLimiter with the given positive rate limit and negative rate limit of
|
||||
* -rateLimit.
|
||||
|
||||
@@ -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