kopia lustrzana https://github.com/jamesgao/kiln_controller
update the settings for successful firing
rodzic
3cb20a019b
commit
84145bb3cd
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue