Cleans up air alarm cooling, limits temp to TCMB

This commit is contained in:
mwerezak
2014-07-11 14:49:23 -04:00
parent db29d172f5
commit b23b4dd7ce
2 changed files with 8 additions and 7 deletions

View File

@@ -152,8 +152,8 @@ What are the archived variables for?
var/heat_capacity = heat_capacity()
temperature += thermal_energy/heat_capacity
if (temperature < 0)
temperature = 0
if (temperature < TCMB)
temperature = TCMB
return (temperature - old_temperature)*heat_capacity