From 880964f675e36bdcc0607d02ebea501347dfe863 Mon Sep 17 00:00:00 2001 From: gitea Date: Sat, 12 Oct 2024 16:09:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E4=BF=AE=E6=94=B9=E5=88=B6?= =?UTF-8?q?=E5=8A=A8=E7=BB=93=E6=9D=9F=E5=BB=B6=E8=BF=9F=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=B4=9B=E6=9D=89=E7=9F=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/code/automatic_test/do_brake.py | 3 +-- aio/code/commons/clibs.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/aio/code/automatic_test/do_brake.py b/aio/code/automatic_test/do_brake.py index 44bec9a..400ca0d 100644 --- a/aio/code/automatic_test/do_brake.py +++ b/aio/code/automatic_test/do_brake.py @@ -257,7 +257,7 @@ def run_rl(path, loadsel, hr, md, config_file, result_dirs, w2t): _t_start = time() while True: if md.read_brake_done() == 1: - sleep(1) # 保证速度归零 + sleep(4) # 保证速度归零 md.write_probe(0) break else: @@ -269,7 +269,6 @@ def run_rl(path, loadsel, hr, md, config_file, result_dirs, w2t): sleep(1) # 6. 保留数据并处理输出 - sleep(3) # 为了让速度降为 0,3s 足够 curve_data = [] _c_msg = hr.c_msg.copy() for _msg in _c_msg: diff --git a/aio/code/commons/clibs.py b/aio/code/commons/clibs.py index 8f2dd0c..c4b2a35 100644 --- a/aio/code/commons/clibs.py +++ b/aio/code/commons/clibs.py @@ -15,8 +15,8 @@ MAX_FRAME_SIZE = 1024 TIMEOUT = 5 setdefaulttimeout(TIMEOUT) tab_names = {'dp': 'Data Process', 'at': 'Automatic Test', 'da': 'Duration Action', 'op': 'openapi'} -PREFIX = '' # for pyinstaller packaging -# PREFIX = '../assets/' # for source code debug +# PREFIX = '' # for pyinstaller packaging +PREFIX = '../assets/' # for source code debug app_icon = f'{PREFIX}templates/icon.ico' log_path = f'{PREFIX}templates/logs/' log_data_hmi = f'{PREFIX}templates/logs/c_msg.log'