Skip to content

Commit

Permalink
Add M3FS in GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouchous-ledger committed Jun 20, 2024
1 parent ef69aac commit 470610a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pystages/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from ..corvus import Corvus
from ..smc100 import SMC100
from ..stage import Stage
from ..m3fs import M3FS
from enum import Enum
from serial.tools.list_ports import comports
from serial.tools.list_ports_common import ListPortInfo
Expand All @@ -26,6 +27,7 @@ class StageType(str, Enum):
CNC = "CNC"
Corvus = "Corvus"
SMC = "SMC100"
M3FS = "M3FS"


class StageWindow(QWidget):
Expand All @@ -46,6 +48,8 @@ def connect(self, on_off):
self.stage = Corvus(dev)
elif selected == StageType.SMC:
self.stage = SMC100(dev, [1, 2])
elif selected == StageType.M3FS:
self.stage = M3FS(dev, baudrate=115200)
self.position_timer.start(100)

else:
Expand Down Expand Up @@ -83,7 +87,7 @@ def __init__(self):
w = QLabel("Stage Selection")
box.addWidget(w)
self.stage_selection = w = QComboBox()
w.addItems([StageType.CNC, StageType.Corvus, StageType.SMC])
w.addItems([StageType.CNC, StageType.Corvus, StageType.SMC, StageType.M3FS])
box.addWidget(w)
self.port_selection = w = QComboBox()
w.addItem("Auto detection", None)
Expand Down

0 comments on commit 470610a

Please sign in to comment.