From 5914817d22f6cae9df56480c7cf6f70994933c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20P=C3=A1rk=C3=A1nyi?= Date: Thu, 4 Dec 2025 00:20:26 +0100 Subject: [PATCH] fix(rx): receiver improvements --- onbeat_rx.grc | 21 +++++++++++++++++++++ onbeat_rx_wrapper.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/onbeat_rx.grc b/onbeat_rx.grc index dda1430..d980444 100644 --- a/onbeat_rx.grc +++ b/onbeat_rx.grc @@ -78,6 +78,27 @@ blocks: coordinate: [192, 92.0] rotation: 0 state: true +- name: rx_gain + id: variable_qtgui_range + parameters: + comment: '' + gui_hint: '' + label: RX gain + min_len: '200' + orient: QtCore.Qt.Horizontal + rangeType: float + start: '0' + step: '0.1' + stop: '49.6' + value: '20' + widget: counter_slider + states: + bus_sink: false + bus_source: false + bus_structure: null + coordinate: [160, 256.0] + rotation: 0 + state: true - name: samp_rate id: variable parameters: diff --git a/onbeat_rx_wrapper.py b/onbeat_rx_wrapper.py index bcd0273..1ad4a04 100644 --- a/onbeat_rx_wrapper.py +++ b/onbeat_rx_wrapper.py @@ -37,5 +37,5 @@ received = asyncio.run(tcp_client()) -with open("rx_packets.json") as packetfile: +with open("rx_packets.json", mode="w") as packetfile: json.dump(received, packetfile)