- PID/TC goes Idle state on first theat_ist measurement
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user