1. [current: do_current.py] 增加了 hw_sensor_trq_feedback 曲线的采集
2. [current: current.py] 增加了 hw_sensor_trq_feedback 曲线数据的处理,以及修改了之前数据处理的逻辑 3. [current: clibs.py] 新增可手动修改连接 IP 地址的功能,存储在 assets/templates/ipaddr.txt 中,默认是 192.168.0.160
This commit is contained in:
@ -19,7 +19,7 @@ class ModbusRequest(object):
|
||||
self.host = clibs.ip_addr
|
||||
self.port = 502
|
||||
self.interval = 0.3
|
||||
self.c = ModbusTcpClient(self.host, self.port)
|
||||
self.c = ModbusTcpClient(host=self.host, port=self.port)
|
||||
self.c.connect()
|
||||
|
||||
def motor_off(self):
|
||||
|
Reference in New Issue
Block a user