Switched PID to BOO mode for all modes.

Sat, 05 Mar 2016 12:50:23 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 05 Mar 2016 12:50:23 +0100
changeset 491
31b14c9ac625
parent 490
080c8ea4875e
child 492
750f2468dec5

Switched PID to BOO mode for all modes.

thermferm/thermferm.c file | annotate | diff | comparison | revisions
--- a/thermferm/thermferm.c	Fri Feb 26 15:14:00 2016 +0100
+++ b/thermferm/thermferm.c	Sat Mar 05 12:50:23 2016 +0100
@@ -1524,7 +1524,7 @@
 			unit->PID_cool->SetP = unit->beer_set;
 			unit->PID_heat->SetP = unit->beer_set;
 			unit->PID_cool->Input = unit->PID_heat->Input = unit->beer_temperature / 1000.0;
-			unit->PID_cool->Mode = unit->PID_heat->Mode = PID_MODE_AUTO;
+			unit->PID_cool->Mode = unit->PID_heat->Mode = PID_MODE_BOO;
 		    } else if (unit->mode == UNITMODE_PROFILE) {
 			double  usetemp;
 			unit->PID_cool->SetP = unit->prof_target_hi;
@@ -1538,7 +1538,7 @@
 			    fprintf(stdout, " fridge_mode=%d measured=%.3f %.3f => %.3f\n", unit->prof_fridge_mode,
 					    unit->air_temperature / 1000.0, unit->beer_temperature / 1000.0, usetemp);
 			unit->PID_cool->Input = unit->PID_heat->Input = usetemp;
-			unit->PID_cool->Mode = unit->PID_heat->Mode = PID_MODE_AUTO;
+			unit->PID_cool->Mode = unit->PID_heat->Mode = PID_MODE_BOO;
 		    }
 
 		    /*

mercurial