thermferm/pid.h

Fri, 20 Mar 2015 16:56:07 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 20 Mar 2015 16:56:07 +0100
changeset 338
8e29d142d67d
parent 316
73cd31dc6ce1
child 362
c92651a54969
permissions
-rw-r--r--

Added support for all 1-wire temperature sensors that are in the Linux kernel source.

#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