重新修改制动结束延迟时间洛杉矶

This commit is contained in:
gitea 2024-10-12 16:09:58 +08:00
parent 3481d3b496
commit 880964f675
2 changed files with 3 additions and 4 deletions

View File

@ -257,7 +257,7 @@ def run_rl(path, loadsel, hr, md, config_file, result_dirs, w2t):
_t_start = time() _t_start = time()
while True: while True:
if md.read_brake_done() == 1: if md.read_brake_done() == 1:
sleep(1) # 保证速度归零 sleep(4) # 保证速度归零
md.write_probe(0) md.write_probe(0)
break break
else: else:
@ -269,7 +269,6 @@ def run_rl(path, loadsel, hr, md, config_file, result_dirs, w2t):
sleep(1) sleep(1)
# 6. 保留数据并处理输出 # 6. 保留数据并处理输出
sleep(3) # 为了让速度降为 03s 足够
curve_data = [] curve_data = []
_c_msg = hr.c_msg.copy() _c_msg = hr.c_msg.copy()
for _msg in _c_msg: for _msg in _c_msg:

View File

@ -15,8 +15,8 @@ MAX_FRAME_SIZE = 1024
TIMEOUT = 5 TIMEOUT = 5
setdefaulttimeout(TIMEOUT) setdefaulttimeout(TIMEOUT)
tab_names = {'dp': 'Data Process', 'at': 'Automatic Test', 'da': 'Duration Action', 'op': 'openapi'} tab_names = {'dp': 'Data Process', 'at': 'Automatic Test', 'da': 'Duration Action', 'op': 'openapi'}
PREFIX = '' # for pyinstaller packaging # PREFIX = '' # for pyinstaller packaging
# PREFIX = '../assets/' # for source code debug PREFIX = '../assets/' # for source code debug
app_icon = f'{PREFIX}templates/icon.ico' app_icon = f'{PREFIX}templates/icon.ico'
log_path = f'{PREFIX}templates/logs/' log_path = f'{PREFIX}templates/logs/'
log_data_hmi = f'{PREFIX}templates/logs/c_msg.log' log_data_hmi = f'{PREFIX}templates/logs/c_msg.log'