- added tracer

This commit is contained in:
jens
2020-12-20 12:15:42 +01:00
parent 29cc4dfae7
commit cccfd539c6
3 changed files with 44 additions and 1 deletions
+4 -1
View File
@@ -7,7 +7,7 @@ from components.sensor import TempSensorFactory
from components.pid import TempController
from components.plant import Pot
from components.actor import HeaterFactory, StirrerFactory
from tasks import TaskManager, TempSensorTask, HeaterTask, PotTask, TcTask, StirrerTask
from tasks import TaskManager, TempSensorTask, HeaterTask, PotTask, TcTask, StirrerTask, TracerTask
DT_CTRL = 0.1
@@ -49,6 +49,9 @@ if __name__ == '__main__':
stirrer_task = StirrerTask(stirrer, DT_CTRL, dispatcher.msgio_get("Stirrer"))
taskmgr.add(stirrer_task)
# Tracer
taskmgr.add(TracerTask(sensor, tc, DT_CTRL, dispatcher.msgio_get("Tracer")))
# Message dispatcher
h_dispatcher = taskmgr.start()
h_server = server.listen("0.0.0.0", 8765)