Expose integral to enable user-space hacking
This commit is contained in:
parent
41bc38c879
commit
06804ed13a
5
PID_v1.h
5
PID_v1.h
@ -52,6 +52,8 @@ class PID
|
||||
// the PID calculation is performed. default is 100
|
||||
|
||||
|
||||
void Initialize(); // * bumpless update of internal variables.
|
||||
double outputSum; // * internal integrator state for understanding and user-space control
|
||||
|
||||
//Display functions ****************************************************************
|
||||
double GetKp(); // These functions query the pid for interal values.
|
||||
@ -61,7 +63,6 @@ class PID
|
||||
int GetDirection(); //
|
||||
|
||||
private:
|
||||
void Initialize();
|
||||
|
||||
double dispKp; // * we'll hold on to the tuning parameters in user-entered
|
||||
double dispKi; // format for display purposes
|
||||
@ -80,7 +81,7 @@ class PID
|
||||
// what these values are. with pointers we'll just know.
|
||||
|
||||
unsigned long lastTime;
|
||||
double outputSum, lastInput;
|
||||
double lastInput;
|
||||
|
||||
unsigned long SampleTime;
|
||||
double outMin, outMax;
|
||||
|
Loading…
Reference in New Issue
Block a user