final commit

This commit is contained in:
2025-03-27 19:17:46 +08:00
parent 62200a9fe4
commit 14c08cca31
5 changed files with 10 additions and 9 deletions

View File

@ -2,6 +2,7 @@ import json
import threading
import time
import pandas
import numpy
import math
import csv
from common import clibs
@ -201,7 +202,7 @@ def proc_device_servo_trq_feedback(records, params, w2t):
for axis in range(6):
df = pandas.DataFrame.from_dict({"device_servo_trq_feedback": d_trq[axis]})
_ = math.sqrt((df[df.columns[0]] * rcs[axis] / 1000).pow(2).sum() / len(df))
_ = math.sqrt(numpy.square(df[df.columns[0]].values * 1.27 / 1000).sum() / len(df))
results.append(_)
path = "/".join(params["prj_file"].split("/")[:-1])