Skip to content

Commit

Permalink
Remove SlewRateLimiter 2 argument constructor
Browse files Browse the repository at this point in the history
Deprecated in wpilibsuite#4377
  • Loading branch information
rzblue committed Sep 17, 2023
1 parent 19a8850 commit db7ec5f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,6 @@ public SlewRateLimiter(double positiveRateLimit, double negativeRateLimit, doubl
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.
Expand Down
13 changes: 0 additions & 13 deletions wpimath/src/main/native/include/frc/filter/SlewRateLimiter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit db7ec5f

Please sign in to comment.