Add GetIntegral() and SetIntegral(double) for user-space anti-windup
This commit is contained in:
2
PID_v1.h
2
PID_v1.h
@ -50,6 +50,7 @@ class PID
|
||||
// once it is set in the constructor.
|
||||
void SetSampleTime(int); // * sets the frequency, in Milliseconds, with which
|
||||
// the PID calculation is performed. default is 100
|
||||
void SetIntegral(double); // * sets the internal Integral term, in output units
|
||||
|
||||
|
||||
|
||||
@ -59,6 +60,7 @@ class PID
|
||||
double GetKd(); // where it's important to know what is actually
|
||||
int GetMode(); // inside the PID.
|
||||
int GetDirection(); //
|
||||
double GetIntegral(); //
|
||||
|
||||
private:
|
||||
void Initialize();
|
||||
|
Reference in New Issue
Block a user