Skip to content

Commit

Permalink
rename threads
Browse files Browse the repository at this point in the history
  • Loading branch information
co2e14 committed Jan 20, 2025
1 parent fede83b commit 1b0b806
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bin/guiv4_prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,19 @@ def __init__(self):
# OAV connections thread
self.zoomLevel = 1
self.setupOAV()
self.th = OAVThread()
self.th.ImageUpdate.connect(self.setImage)
self.th.start()
self.zoomChanged.connect(self.th.setZoomLevel)
self.OAVth = OAVThread()
self.OAVth.ImageUpdate.connect(self.setImage)
self.OAVth.start()
self.zoomChanged.connect(self.OAVth.setZoomLevel)
self.ui.oav_stream.mousePressEvent = self.onMouse
self.ui.start.clicked.connect(self.oavStart)
self.ui.stop.clicked.connect(self.oavStop)
self.ui.snapshot.clicked.connect(self.saveSnapshot)
self.ui.AutoCenter.clicked.connect(self.autoCenter)
# RBV updating connections thread
th2 = RBVThread()
th2.rbvUpdate.connect(self.updateRBVs)
th2.start()
RBVth = RBVThread()
RBVth.rbvUpdate.connect(self.updateRBVs)
RBVth.start()
# robot active thread
# th3 = robotCheckThread()
# th3.robotUpdate.connect(self.setRobotActiveStatus)
Expand Down

0 comments on commit 1b0b806

Please sign in to comment.