123 */ |
123 */ |
124 // Cheap trick, just follow slowly the air temp. |
124 // Cheap trick, just follow slowly the air temp. |
125 simulator->beer_temperature += ((simulator->air_temperature - simulator->beer_temperature) / 500.0); |
125 simulator->beer_temperature += ((simulator->air_temperature - simulator->beer_temperature) / 500.0); |
126 simulator->air_temperature += ((simulator->beer_temperature - simulator->air_temperature) / 2500.0); |
126 simulator->air_temperature += ((simulator->beer_temperature - simulator->air_temperature) / 2500.0); |
127 |
127 |
128 syslog(LOG_NOTICE, "air=%.3f beer=%.3f heater=%.3f cooler=%.3f", simulator->air_temperature, simulator->beer_temperature, |
128 if ((seconds % 15) == 0) |
|
129 syslog(LOG_NOTICE, "air=%.3f beer=%.3f heater=%.3f cooler=%.3f", simulator->air_temperature, simulator->beer_temperature, |
129 simulator->s_heat_temp, simulator->s_cool_temp); |
130 simulator->s_heat_temp, simulator->s_cool_temp); |
130 |
131 |
131 // if (debug) |
132 // if (debug) |
132 // fprintf(stdout, "sqm_room_air=%f air=%f air_heat_transfer=%f air_change=%f beer=%f\n", |
133 // fprintf(stdout, "sqm_room_air=%f air=%f air_heat_transfer=%f air_change=%f beer=%f\n", |
133 // sqm_room_air, simulator->air_temperature, air_heat_transfer, air_change, simulator->beer_temperature); |
134 // sqm_room_air, simulator->air_temperature, air_heat_transfer, air_change, simulator->beer_temperature); |