thermferm/pid.h

Thu, 19 Feb 2015 14:42:55 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 19 Feb 2015 14:42:55 +0100
changeset 316
73cd31dc6ce1
child 362
c92651a54969
permissions
-rw-r--r--

Moved pid function to separate files

#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