- implemented APid

- choose Tempcontroller impl. from config
This commit is contained in:
jens
2021-10-02 12:24:42 +02:00
parent f7745f9814
commit 2e143ee03f
3 changed files with 21 additions and 2 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ if __name__ == '__main__':
# Temperature Controller
tc_params = config['TempCtrl']
tc = PidFactory.create('Normal', DT, tc_params)
tc = PidFactory.create(config['Controller']['pid_type'], DT, tc_params)
tc.set_on_changed("y", heater_task.actor)
tc_task = TcTask(tc, DT_TASK, dispatcher.msgio_get("TempCtrl"))
taskmgr.add(tc_task)