- send TempCtrl:Soll if changed
This commit is contained in:
@@ -150,9 +150,12 @@ class TcTask(ATask):
|
||||
|
||||
async def on_process(self):
|
||||
print("{}: Started with interval {} s".format(self.msg_handler.get_key(), self.interval))
|
||||
temp_soll = Value()
|
||||
while True:
|
||||
self.tc.set_theta_soll(self.temp_soll)
|
||||
await self.send({'Soll': self.temp_soll})
|
||||
temp_soll.set(self.temp_soll)
|
||||
if temp_soll.is_changed():
|
||||
self.tc.set_theta_soll(temp_soll.get())
|
||||
await self.send({'Soll': temp_soll.get()})
|
||||
self.tc.process()
|
||||
|
||||
await asyncio.sleep(self.interval)
|
||||
|
||||
Reference in New Issue
Block a user