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