Skip to content

Commit 59c1c87

Browse files
authored
Merge pull request #173 from CWRUbotix/fix-float-qos
Make GUI float transceiver QoS match serial node
2 parents bb68df6 + b7d318c commit 59c1c87

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

src/surface/gui/gui/widgets/float_comm.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from PyQt6.QtGui import QTextCursor
33
from PyQt6.QtWidgets import QHBoxLayout, QLabel, QPushButton, QTextEdit, QVBoxLayout, QWidget
44
from pyqtgraph import PlotWidget
5-
from rclpy.qos import qos_profile_default
5+
from rclpy.qos import QoSPresetProfiles, qos_profile_default
66

77
from gui.gui_node import GUINode
88
from rov_msgs.msg import FloatCommand, FloatData, FloatSerial, FloatSingle
@@ -24,10 +24,23 @@ def __init__(self) -> None:
2424
self.handle_data_signal.connect(self.handle_data)
2525
self.handle_serial_signal.connect(self.handle_serial)
2626
self.handle_data_single_signal.connect(self.handle_single)
27-
GUINode().create_signal_subscription(FloatData, 'transceiver_data', self.handle_data_signal)
28-
GUINode().create_signal_subscription(FloatSerial, 'float_serial', self.handle_serial_signal)
2927
GUINode().create_signal_subscription(
30-
FloatSingle, 'transceiver_single', self.handle_data_single_signal
28+
FloatData,
29+
'transceiver_data',
30+
self.handle_data_signal,
31+
qos_profile=QoSPresetProfiles.SENSOR_DATA.value,
32+
)
33+
GUINode().create_signal_subscription(
34+
FloatSerial,
35+
'float_serial',
36+
self.handle_serial_signal,
37+
qos_profile=QoSPresetProfiles.SENSOR_DATA.value,
38+
)
39+
GUINode().create_signal_subscription(
40+
FloatSingle,
41+
'transceiver_single',
42+
self.handle_data_single_signal,
43+
qos_profile=QoSPresetProfiles.SENSOR_DATA.value,
3144
)
3245

3346
info_layout = QVBoxLayout()

0 commit comments

Comments
 (0)