- 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
+1
View File
@@ -87,6 +87,7 @@ class TempController(APid):
# Process state # Process state
state_next = self.state state_next = self.state
if self.state == States.INIT: if self.state == States.INIT:
if not self.is_startup:
state_next = States.IDLE state_next = States.IDLE
elif self.state == States.IDLE: elif self.state == States.IDLE:
if diff >= THRESH_IDLE_HEAT: if diff >= THRESH_IDLE_HEAT:
+1
View File
@@ -112,6 +112,7 @@ class TempController(APid):
# Process state # Process state
state_next = self.state state_next = self.state
if self.state == States.INIT: if self.state == States.INIT:
if not self.is_startup:
state_next = States.IDLE state_next = States.IDLE
elif self.state == States.IDLE: elif self.state == States.IDLE:
if diff >= THRESH_IDLE_HEAT: if diff >= THRESH_IDLE_HEAT: