instance structure for PID controller More...
#include <pid.h>
Public Member Functions | |
void | init () |
void | set_kpid (a_float kp_, a_float ki_, a_float kd_) |
a_float | run (a_float set, a_float fdb_) |
a_float | pos (a_float set, a_float fdb_) |
a_float | inc (a_float set, a_float fdb_) |
void | zero () |
Data Fields | |
a_float | kp |
a_float | ki |
a_float | kd |
a_float | summax |
a_float | summin |
a_float | sum |
a_float | outmax |
a_float | outmin |
a_float | out |
a_float | var |
a_float | fdb |
a_float | err |
instance structure for PID controller
a_float a_pid::err |
cache error
a_float a_pid::fdb |
cache feedback
a_float a_pid::kd |
derivative constant
a_float a_pid::ki |
integral constant
a_float a_pid::kp |
proportional constant
a_float a_pid::out |
controller final output
a_float a_pid::outmax |
maximum final output
a_float a_pid::outmin |
minimum final output
a_float a_pid::sum |
controller integral output
a_float a_pid::summax |
maximum integral output
a_float a_pid::summin |
minimum integral output
a_float a_pid::var |
cache variable