- refactored

git-svn-id: http://moon:8086/svn/projects/HendiControl@380 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2020-04-20 15:50:25 +00:00
parent ec85ab3c73
commit 16b77f0a17
9 changed files with 38 additions and 25 deletions
+2 -2
View File
@@ -3,12 +3,12 @@ import json
from aplant import APlant
from math import sqrt
from hendiCtrl import HendiCtrl
from max31865 import Max31865
from tempSensor_max31865 import TempSensor_max31865 as TempSensor
class Plant(APlant):
def __init__(self, params):
self.heater = HendiCtrl('/dev/ttyUSB0', 115200)
self.tempsensor = Max31865()
self.tempsensor = TempSensor()
self.P = 0
self.isOn = False
self.cycleTime = 30