update
This commit is contained in:
11
app.py
11
app.py
@ -68,7 +68,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
||||
|
||||
background-color: rgba(255, 255, 255, 0);
|
||||
font: 700 12pt "Microsoft YaHei UI";
|
||||
color: black;
|
||||
color: red;
|
||||
|
||||
|
||||
"""
|
||||
@ -176,8 +176,15 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
||||
self.configReader.read(Constant.set_ini)
|
||||
ip = self.configReader.get('Robot_Feed', 'IPAddress')
|
||||
port = int(self.configReader.get('Robot_Feed', 'Port'))
|
||||
photo_locs = [(int(self.configReader.get('Robot_Feed', 'photo_x1')),
|
||||
int(self.configReader.get('Robot_Feed', 'photo_y1'))),
|
||||
(int(self.configReader.get('Robot_Feed', 'photo_x2')),
|
||||
int(self.configReader.get('Robot_Feed', 'photo_y2'))),
|
||||
(int(self.configReader.get('Robot_Feed', 'photo_x3')),
|
||||
int(self.configReader.get('Robot_Feed', 'photo_y3')))
|
||||
]
|
||||
|
||||
self.robotClient = RobotClient(ip, port, self.command_position_quene, self.status_address)
|
||||
self.robotClient = RobotClient(ip, port, photo_locs,self.command_position_quene, self.status_address)
|
||||
self.feeding = Feeding(self.robotClient, self.detection) # 临时
|
||||
self.last_time = time.time()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user