diff --git a/aio/README.md b/aio/README.md index 0bf3d67..906fcf2 100644 --- a/aio/README.md +++ b/aio/README.md @@ -558,4 +558,8 @@ v0.2.0.3(2024/07/27) 3. [APIs: factory_test.py]: 精简程序,解决 OOM 问题 4. [APIsL openapi.py] - 心跳修改为 1 s,因为 OOM 问题的解决依赖于长久的打开曲线开关,此时对于 hr.c_msg 的定时清理是个挑战,将心跳缩短,有利于清理日志后,避免丢失心跳 - - 新增 diagnosis.save 命令,但是执行时,有问题,待解决 \ No newline at end of file + - 新增 diagnosis.save 命令,但是执行时,有问题,待解决 + +v0.2.0.4(2024/07/30) +1. [APIs: do_brake.py]: 修复制动数据处理过程中,只取曲线的最后 240 个数据 +2. [APIs: aio.py]: 判定版本处,删除 self.destroy(),因为该语句会导致异常发生 \ No newline at end of file diff --git a/aio/code/aio.py b/aio/code/aio.py index e90793b..979c7a3 100644 --- a/aio/code/aio.py +++ b/aio/code/aio.py @@ -202,7 +202,6 @@ class App(customtkinter.CTk): if cur_vers.strip() != new_vers.strip(): msg = f"""当前版本:{cur_vers}\n更新版本:{new_vers}\n\n请及时前往钉盘更新~~~""" tkinter.messagebox.showwarning(title="版本更新", message=msg) - self.destroy() except: tkinter.messagebox.showwarning(title="版本更新", message="连接服务器失败,无法确认当前是否是最新版本......") # functions below ↓ ---------------------------------------------------------------------------------------- diff --git a/aio/code/automatic_test/do_brake.py b/aio/code/automatic_test/do_brake.py index 33868d5..223b6e3 100644 --- a/aio/code/automatic_test/do_brake.py +++ b/aio/code/automatic_test/do_brake.py @@ -116,7 +116,7 @@ def gen_result_file(path, curve_data, axis, _reach, _load, _speed, count): _d2d_vel = {'hw_joint_vel_feedback': []} _d2d_trq = {'device_servo_trq_feedback': []} _d2d_stop = {'device_safety_estop': []} - for data in curve_data: + for data in curve_data[-240:]: dict_results = data['data'] for item in dict_results: try: @@ -129,8 +129,6 @@ def gen_result_file(path, curve_data, axis, _reach, _load, _speed, count): _d2d_trq['device_servo_trq_feedback'].extend(item['value']) elif item.get('channel', None) == 0 and item.get('name', None) == 'device_safety_estop': _d2d_stop['device_safety_estop'].extend(item['value']) - if len(_d2d_trq['device_servo_trq_feedback']) / 1000 > 10: - break df1 = pandas.DataFrame.from_dict(_d2d_vel) df2 = pandas.DataFrame.from_dict(_d2d_trq)