|
Public Member Functions |
|
| OutputPID () |
| | Constructor.
|
|
| OutputPID (const float p[3]) |
| | Constructor, allows non-explicit conversion.
|
|
| OutputPID (const float p[3], float w) |
| | Constructor.
|
|
| OutputPID (const float p, const float i, const float d, float w) |
| | Constructor.
|
|
| OutputPID (const OutputPID &a, const OutputPID &b, float w) |
| | Constructor, see set(a,b,w).
|
|
void | set (const float p[3], float w=1) |
| | sets the value to v and weight to w
|
|
void | set (const float p, const float i, const float d, float w=1) |
| | sets the value to v and weight to w
|
|
void | set (const OutputPID &a, const OutputPID &b, float w) |
| | sets the value to a weighted average of a and b (higher w, more a)
|
|
void | unset () |
| | sets value and weight to 0
|
Public Attributes |
|
float | pid [3] |
| | pid value of the output
|
|
float | weight |
| | weight to be used in averaging, 0 to "fall through"
|
Protected Member Functions |
|
void | set_pid (const float p[3]) |
| | handy utility function, sets pid[0:2] to p[0:2]
|
|
void | set_pid (const float p, const float i, const float d) |
| | handy utility function, sets pid[0:2] to [p,i,d]
|