final commit
This commit is contained in:
@ -639,10 +639,10 @@ class App:
|
||||
|
||||
@staticmethod
|
||||
def __goto_update(event):
|
||||
webbrowser.open("https://10.2.20.216:10008/aio.zip")
|
||||
webbrowser.open("当前是最新版本,继续保持!")
|
||||
|
||||
def __auth_and_vercheck(self):
|
||||
url_vers = "http://10.2.20.216:10008/version"
|
||||
url_vers = "http://10.2.21.27:10008/version"
|
||||
try:
|
||||
self.server_vers = request.urlopen(url_vers, timeout=2).read().decode("utf-8").strip()
|
||||
except Exception:
|
||||
|
@ -153,7 +153,7 @@ def run_rl(path, sub, hr, md, config_file, prj_file, result_dirs, avs, w2t):
|
||||
get_init_speed = float(ws.cell(row=3, column=2).value)
|
||||
single_brake = str(ws.cell(row=4, column=2).value)
|
||||
pon = ws.cell(row=5, column=2).value
|
||||
io_name = ws.cell(row=6, column=2).value.upper()
|
||||
io_name = ws.cell(row=6, column=2).value.upper().strip()
|
||||
wb.close()
|
||||
w2t(f"基本参数配置:write_diagnosis(废弃) = {write_diagnosis}, get_init_speed = {get_init_speed}, single_brake = {single_brake}, pon = {pon}\n")
|
||||
|
||||
|
@ -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])
|
||||
|
Reference in New Issue
Block a user