From dbbf30bfebaa4677c4df5b681bc03e4882b18ec1 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 0f4029e..60abb52 100644 --- a/pytec/pytec/gui/view/param_tree.json +++ b/pytec/pytec/gui/view/param_tree.json @@ -156,7 +156,7 @@ "step": 0.1, "limits": [ 0, - 5 + 4 ], "siPrefix": true, "suffix": "V", @@ -209,6 +209,7 @@ "type": "float", "value": 10000, "step": 1, + "min": 0, "siPrefix": true, "pinSiPrefix": "k", "suffix": "Ω", @@ -402,7 +403,7 @@ "decimals": 6, "step": 0.1, "limits": [ - -2, + 0, 2 ], "siPrefix": true,