Mercurial > templog
comparison py/fridge.py @ 279:6848907f85be
fix missing on_time variable
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 28 Nov 2015 08:42:33 +0800 |
parents | af924d27140f |
children | 6087c692d381 |
comparison
equal
deleted
inserted
replaced
278:fd9c6517225e | 279:6848907f85be |
---|---|
90 | 90 |
91 D("fridge on %s" % self.is_on()) | 91 D("fridge on %s" % self.is_on()) |
92 | 92 |
93 if self.is_on(): | 93 if self.is_on(): |
94 turn_off = False | 94 turn_off = False |
95 on_percent = self.integrator.integrate() / params.overshoot_delay | 95 on_time = self.integrator.integrate() |
96 on_percent = on_time / params.overshoot_delay | |
96 | 97 |
97 overshoot = params.overshoot_factor * on_percent | 98 overshoot = params.overshoot_factor * on_percent |
98 D("on_time %(on_percent)f, overshoot %(overshoot)f" % locals()) | 99 D("on_time %(on_percent)f, overshoot %(overshoot)f" % locals()) |
99 | 100 |
100 if not params.nowort and wort is not None: | 101 if not params.nowort and wort is not None: |