basically done

This commit is contained in:
2025-01-17 13:20:49 +08:00
parent 26f01635df
commit ea05c9bd41
23 changed files with 70 additions and 240170 deletions

View File

@@ -75,8 +75,11 @@ def initialization(path, sub, data_dirs, data_files, hr, w2t):
clibs.insert_logdb("INFO", "do_brake", f"get_configs: 各关节角速度 {avs}")
return avs
clibs.c_hr.set_socket_params(True, str(clibs.external_port), "\r", 1)
clibs.c_ec = openapi.ExternalCommunication(clibs.ip_addr, clibs.external_port)
try:
clibs.c_hr.set_socket_params(True, str(clibs.external_port), "\r", 1)
clibs.c_ec = openapi.ExternalCommunication(clibs.ip_addr, clibs.external_port)
except Exception:
w2t(f"{clibs.ip_addr}:{clibs.socket_port} 或者 {clibs.ip_addr}:{clibs.external_port} 不可达,需检查网络连接!\n", color="red", desc="NetworkError")
_config_file, _prj_file, _result_dirs = check_files()
_avs = get_configs()