Searched defs:pidctrl (Results 1 – 1 of 1) sorted by relevance
61 struct pidctrl { struct63 int pc_error; /* Current error. */64 int pc_olderror; /* Saved error for derivative. */65 int pc_integral; /* Integral accumulator. */66 int pc_derivative; /* Change from last error. */67 int pc_input; /* Last input. */68 int pc_output; /* Last output. */69 int pc_ticks; /* Last sampling time. */93 void pidctrl_init(struct pidctrl *pc, int interval, int setpoint, argument