From 29f5cd0c9f32eff833dc134406226fe813dc75f2 Mon Sep 17 00:00:00 2001 From: gitea Date: Mon, 21 Apr 2025 09:42:58 +0800 Subject: [PATCH] fix scenario trq data --- codes/autotest/do_current.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codes/autotest/do_current.py b/codes/autotest/do_current.py index a9c9ea2..9137feb 100644 --- a/codes/autotest/do_current.py +++ b/codes/autotest/do_current.py @@ -111,9 +111,9 @@ class DoCurrentTest(QThread): d_sensor[axis].extend(d_item) elif item.get("channel", None) == axis and item.get("name", None) == "hw_estimate_trans_trq_res": d_trans[axis].extend(d_item) - elif item.get("channel", None) == number and item.get("name", None) == "hw_predict_trq_res": + elif item.get("channel", None) == axis and item.get("name", None) == "hw_predict_trq_res": d_predict_trq[axis].extend(d_item) - elif item.get("channel", None) == number and item.get("name", None) == "hw_real_trq_res": + elif item.get("channel", None) == axis and item.get("name", None) == "hw_real_trq_res": d_real_trq[axis].extend(d_item) for axis in range(6):