thermferm/pid.h

Thu, 26 Mar 2015 20:34:53 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 26 Mar 2015 20:34:53 +0100
changeset 344
acd840c9fcc0
parent 316
73cd31dc6ce1
child 362
c92651a54969
permissions
-rw-r--r--

Fixed Offset label in device editor. Added code to edit pin states for DS2408 and DS2413 1-wire devices.

#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