From fde1e6b3e440f5609a869e94fbe8565898d98ba2 Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 17 Jul 2024 17:29:34 +0800 Subject: [PATCH] ctrl_panel: Limits fixes * PID Autotune test current should be positive * max_v should be 4 V not 5 V * r0 should not be negative --- pytec/pytec/gui/view/param_tree.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pytec/pytec/gui/view/param_tree.json b/pytec/pytec/gui/view/param_tree.json index fc6134b..3a85d83 100644 --- a/pytec/pytec/gui/view/param_tree.json +++ b/pytec/pytec/gui/view/param_tree.json @@ -148,7 +148,7 @@ "step": 0.1, "limits": [ 0, - 5 + 4 ], "siPrefix": true, "suffix": "V", @@ -199,6 +199,7 @@ "type": "float", "value": 10000, "step": 1, + "min": 0, "siPrefix": true, "pinSiPrefix": "k", "suffix": "Ω", @@ -381,7 +382,7 @@ "decimals": 6, "step": 0.1, "limits": [ - -2, + 0, 2 ], "siPrefix": true,