制动性能测试和数据处理已完成

This commit is contained in:
2025-01-16 19:28:57 +08:00
parent 2413d6d305
commit 26f01635df
55 changed files with 1588 additions and 1251 deletions

View File

@@ -201,7 +201,7 @@ def run_rl(path, prj_file, hr, md, sub, w2t):
# 4. 执行采集
time.sleep(10) # 消除前 10s 的不稳定数据
start_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time()))
single_time, stall_time, scenario_time = 30, 10, 0
single_time, stall_time, scenario_time = 40, 10, 0
if number < 6: # 单轴
time.sleep(single_time)
elif number < 12: # 堵转
@@ -234,6 +234,7 @@ def run_rl(path, prj_file, hr, md, sub, w2t):
def main():
s_time = time.time()
path = clibs.data_at["_path"]
sub = clibs.data_at["_sub"]
w2t = clibs.w2t
@@ -245,6 +246,11 @@ def main():
clibs.c_pd.push_prj_to_server(prj_file)
run_rl(path, prj_file, hr, md, sub, w2t)
e_time = time.time()
time_total = e_time - s_time
w2t(f"-" * 90 + "\n", "purple")
w2t(f"处理总时长:{time_total // 3600:02.0f} h {time_total % 3600 // 60:02.0f} m {time_total % 60:02.0f} s", "green")
if __name__ == "__main__":
main()