summaryrefslogtreecommitdiff
path: root/devices/serial_device.py
diff options
context:
space:
mode:
Diffstat (limited to 'devices/serial_device.py')
-rw-r--r--devices/serial_device.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/devices/serial_device.py b/devices/serial_device.py
index dc92b12..067656a 100644
--- a/devices/serial_device.py
+++ b/devices/serial_device.py
@@ -314,7 +314,7 @@ class SerialDevice(BaseDevice):
))
color_idx += 1
# Write-only action channels — motor must be enabled (ME) before VS/MA take effect
- for cmd, label in (("ME", "Enable"), ("MD", "Disable")):
+ for cmd, label in (("ME", "Enable"), ("MD", "Disable"), ("ST", "Stop")):
channels.append(ChannelConfig(
channel_id=f"{mid}_{cmd}",
name=f"{mid} {label}",
@@ -822,7 +822,7 @@ class _CMLPanel(QWidget):
lay.setContentsMargins(0, 4, 0, 4)
lay.setSpacing(6)
- grp = QGroupBox("Motors (RS-232: addr=0 / RS-485: addr 1-31)")
+ grp = QGroupBox("Motors (motor ID 1-31, always sent explicitly)")
grp_lay = QVBoxLayout(grp)
scroll = QScrollArea()
@@ -885,9 +885,9 @@ class _MotorRow(QWidget):
lay.addWidget(self._id_edit)
self._addr_spin = QSpinBox()
- self._addr_spin.setRange(0, 31)
- self._addr_spin.setValue(m.get("address", 1))
- self._addr_spin.setToolTip("0 = RS-232 (no prefix), 1-31 = RS-485")
+ self._addr_spin.setRange(1, 31)
+ self._addr_spin.setValue(max(1, m.get("address", 1)))
+ self._addr_spin.setToolTip("CM1-C motor ID — always sent explicitly as \".<id>\"")
lay.addWidget(QLabel("Addr:"))
lay.addWidget(self._addr_spin)