Skip to content

Commit

Permalink
fix fps
Browse files Browse the repository at this point in the history
  • Loading branch information
Alpaca233 committed Feb 24, 2025
1 parent 189e460 commit 88b3503
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions software/control/gui_hcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ def loadWidgets(self):
include_camera_auto_wb_setting=True,
)
self.laserAutofocusSettingWidget = widgets.LaserAutofocusSettingWidget(
self.streamHandler_focus_camera,
self.liveController_focus_camera,
self.laserAutofocusController,
stretch=False,
Expand Down
8 changes: 4 additions & 4 deletions software/control/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,14 @@ class LaserAutofocusSettingWidget(QWidget):
signal_newAnalogGain = Signal(float)
signal_apply_settings = Signal()

def __init__(self, liveController, laserAutofocusController, stretch=True):
def __init__(self, streamHandler, liveController, laserAutofocusController, stretch=True):
super().__init__()
self.streamHandler = streamHandler
self.liveController = liveController
self.laserAutofocusController = laserAutofocusController
self.stretch = stretch
self.liveController.set_trigger_fps(10)
self.streamHandler.set_display_fps(10)

# Enable background filling
self.setAutoFillBackground(True)
Expand Down Expand Up @@ -513,9 +516,6 @@ def _add_spinbox(self, layout, label: str, property_name: str,
self.spinboxes[property_name] = spinbox

def toggle_live(self, pressed):
# Print traceback for debugging
import traceback
traceback.print_stack()
if pressed:
self.liveController.start_live()
self.btn_live.setText("Stop Live")
Expand Down

0 comments on commit 88b3503

Please sign in to comment.