From df9715b3ef5e16b3a49865a01d883a8fd99feeb3 Mon Sep 17 00:00:00 2001 From: atse Date: Fri, 28 Jun 2024 11:44:37 +0800 Subject: [PATCH] ctrl_panel: PID Auto Tune -> PID Autotune --- pytec/pytec/gui/view/param_tree.json | 2 +- pytec/tec_qt.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pytec/pytec/gui/view/param_tree.json b/pytec/pytec/gui/view/param_tree.json index 576c556..f798872 100644 --- a/pytec/pytec/gui/view/param_tree.json +++ b/pytec/pytec/gui/view/param_tree.json @@ -373,7 +373,7 @@ }, { "name": "pid_autotune", - "title": "PID Auto Tune", + "title": "PID Autotune", "expanded": false, "type": "group", "tip": "Automatically tune PID parameters", diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 0ec1a18..1269467 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -82,7 +82,7 @@ class MainWindow(QtWidgets.QMainWindow): [["load"], partial(self.thermostat.load_cfg, ch)], [ ["pid", "pid_autotune", "run_pid"], - partial(self.pid_auto_tune_request, ch), + partial(self.pid_autotune_request, ch), ], ] for ch in range(self.NUM_CHANNELS) @@ -280,10 +280,10 @@ class MainWindow(QtWidgets.QMainWindow): param.child(*param.childPath(inner_param)).setOpts(lock=False) if inner_param.opts.get("pid_autotune", None) is not None: - auto_tuner_param = inner_param.opts["pid_autotune"][0] + autotuner_param = inner_param.opts["pid_autotune"][0] if inner_param.opts["pid_autotune"][1] != "ch": ch = inner_param.opts["pid_autotune"][1] - self.autotuners.set_params(auto_tuner_param, ch, data) + self.autotuners.set_params(autotuner_param, ch, data) if inner_param.opts.get("activaters", None) is not None: activater = inner_param.opts["activaters"][ @@ -295,7 +295,7 @@ class MainWindow(QtWidgets.QMainWindow): await self.client.set_param(*activater) @asyncSlot() - async def pid_auto_tune_request(self, ch=0): + async def pid_autotune_request(self, ch=0): match self.autotuners.get_state(ch): case PIDAutotuneState.STATE_OFF | PIDAutotuneState.STATE_FAILED: self.autotuners.load_params_and_set_ready(ch)