Deprecated internal filter of PID controller (#746)

This was replaced with an external LinearDigitalFilter.
This commit is contained in:
Tyler Veness
2017-12-04 20:05:02 -08:00
committed by Peter Johnson
parent b428d1e4b3
commit 59c4984ed6
5 changed files with 17 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ class PIDController : public LiveWindowSendable, public PIDInterface {
virtual double GetError() const;
WPI_DEPRECATED("Use GetError() instead, which is now already filtered.")
WPI_DEPRECATED("Use a LinearDigitalFilter as the input and GetError().")
virtual double GetAvgError() const;
virtual void SetPIDSourceType(PIDSourceType pidSource);
@@ -79,7 +79,10 @@ class PIDController : public LiveWindowSendable, public PIDInterface {
virtual void SetTolerance(double percent);
virtual void SetAbsoluteTolerance(double absValue);
virtual void SetPercentTolerance(double percentValue);
WPI_DEPRECATED("Use a LinearDigitalFilter as the input.")
virtual void SetToleranceBuffer(int buf = 1);
virtual bool OnTarget() const;
void Enable() override;