update the settings for successful firing

master
James Gao 2014-10-19 02:48:32 +00:00
rodzic 3cb20a019b
commit 84145bb3cd
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -4,7 +4,7 @@ import random
import warnings
class KilnController(object):
def __init__(self, schedule, monitor, interval=5, start_time=None, Kp=.01, Ki=.001, Kd=.001, simulate=True):
def __init__(self, schedule, monitor, interval=5, start_time=None, Kp=.025, Ki=.01, Kd=.001, simulate=True):
self.schedule = schedule
self.monitor = monitor
self.interval = interval

Wyświetl plik

@ -59,8 +59,8 @@ class Monitor(threading.Thread):
return self.history[-1][1]
def run(self):
with open("/home/pi/data.txt", "w") as f:
f.write("time\ttemp\n")
# with open("/home/pi/data.txt", "w") as f:
# f.write("time\ttemp\n")
while self.running:
temp = self._read_temp()
now = time.time()