- PID/TC goes Idle state on first theat_ist measurement

This commit is contained in:
jens
2021-10-12 17:13:19 +02:00
parent bf7ec2beaf
commit e8fa90e753
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -87,7 +87,8 @@ class TempController(APid):
# Process state
state_next = self.state
if self.state == States.INIT:
state_next = States.IDLE
if not self.is_startup:
state_next = States.IDLE
elif self.state == States.IDLE:
if diff >= THRESH_IDLE_HEAT:
state_next = States.HEAT
+2 -1
View File
@@ -112,7 +112,8 @@ class TempController(APid):
# Process state
state_next = self.state
if self.state == States.INIT:
state_next = States.IDLE
if not self.is_startup:
state_next = States.IDLE
elif self.state == States.IDLE:
if diff >= THRESH_IDLE_HEAT:
state_next = States.HEAT