thermferm/pid.h

changeset 316
73cd31dc6ce1
child 362
c92651a54969
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/thermferm/pid.h	Thu Feb 19 14:42:55 2015 +0100
@@ -0,0 +1,17 @@
+#ifndef	PID_H
+#define	PID_H
+
+typedef struct _pid_var {
+	double		iState;		/* Integrator state			*/
+	double		dState;		/* Last measured value input		*/
+	double		iMax;		/* Maximum allowable integrator state	*/
+	double		iMin;		/* Minimum allowable integrator state	*/
+	double		iGain;		/* Integral gain			*/
+	double		pGain;		/* Proportional gain			*/
+	double		dGain;		/* Derivative gain			*/
+} pid_var;
+
+
+double UpdatePID( pid_var *, double, double);
+
+#endif

mercurial