--- a/thermferm/thermferm.h Thu May 14 22:03:35 2015 +0200 +++ b/thermferm/thermferm.h Sat May 16 17:39:30 2015 +0200 @@ -6,6 +6,7 @@ #define FALSE 0 #include "../config.h" +#include "pid.h" #include <stdlib.h> #include <stdio.h> @@ -160,8 +161,6 @@ float fridge_set; /* Fridge temperature setting */ float temp_set_min; /* Minimum temperature */ float temp_set_max; /* Maximum temperature */ - float idle_rangeL; /* Idle temperature low */ - float idle_rangeH; /* Idle temperature high */ char *profile; /* Active profile uuid */ time_t prof_started; /* Profile start time */ int prof_state; /* Profile OFF|PAUSE|RUN|DONE */ @@ -171,11 +170,8 @@ float prof_peak_abs; /* Profile absolute peak temp */ float prof_peak_rel; /* Profile relative peak temp */ time_t prof_primary_done; /* Profile primary is done */ - double PID_iState; /* PID Integral state */ - double PID_dState; /* PID last measured value */ - float PID_Kp; /* PID Kp setting */ - float PID_Kd; /* PID Kd setting */ - float PID_Ki; /* PID Ki setting */ + pid_var *PID_cool; /* PID cooler */ + pid_var *PID_heat; /* PID heater */ } units_list; #define UNITMODE_OFF 0 /* Unit turned off */