优化了制动和电机电流自动测试代码
This commit is contained in:
@ -107,9 +107,7 @@ conn, cursor, w2t, tl_prg, f_records, stop, running = None, None, None, None, No
|
||||
ip_addr = "192.168.0.160"
|
||||
ssh_port, socket_port, xService_port, external_port, modbus_port, upgrade_port = 22, 5050, 6666, 8080, 502, 4567
|
||||
username, password = "luoshi", "luoshi2019"
|
||||
interval = 0.5 # interval after actions being triggered, such as modbus/socket/external communication operations
|
||||
RADIAN = 57.3 # 180 / 3.1415926
|
||||
MAX_FRAME_SIZE = 1024
|
||||
interval, RADIAN, MAX_FRAME_SIZE, count = 0.5, 57.3, 1024, 0
|
||||
c_md, c_hr, c_ec, c_pd = None, None, None, None
|
||||
lock = threading.Lock()
|
||||
|
||||
|
Reference in New Issue
Block a user