From 6f2952137e9372f04125f9f1b0c206b712b46edc Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 15 Jul 2021 12:00:45 +0100 Subject: [PATCH 1/7] Increase widget minimum width when scope is visible so that it is wide enough for all its controls --- plugins/channelrx/demodais/aisdemodgui.cpp | 14 ++++++++++++-- plugins/channelrx/demodpager/pagerdemodgui.cpp | 14 ++++++++++++-- plugins/channelrx/radioclock/radioclockgui.cpp | 14 ++++++++++++-- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/plugins/channelrx/demodais/aisdemodgui.cpp b/plugins/channelrx/demodais/aisdemodgui.cpp index f3090c6fd..d84a3901f 100644 --- a/plugins/channelrx/demodais/aisdemodgui.cpp +++ b/plugins/channelrx/demodais/aisdemodgui.cpp @@ -347,8 +347,18 @@ void AISDemodGUI::filter() void AISDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown) { - (void) widget; - (void) rollDown; + if (widget == ui->scopeContainer) + { + if (rollDown) + { + // Make wide enough for scope controls + setMinimumWidth(716); + } + else + { + setMinimumWidth(352); + } + } } void AISDemodGUI::onMenuDialogCalled(const QPoint &p) diff --git a/plugins/channelrx/demodpager/pagerdemodgui.cpp b/plugins/channelrx/demodpager/pagerdemodgui.cpp index fea6c9a1b..f2086c50e 100644 --- a/plugins/channelrx/demodpager/pagerdemodgui.cpp +++ b/plugins/channelrx/demodpager/pagerdemodgui.cpp @@ -390,8 +390,18 @@ void PagerDemodGUI::filter() void PagerDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown) { - (void) widget; - (void) rollDown; + if (widget == ui->scopeContainer) + { + if (rollDown) + { + // Make wide enough for scope controls + setMinimumWidth(716); + } + else + { + setMinimumWidth(352); + } + } } void PagerDemodGUI::onMenuDialogCalled(const QPoint &p) diff --git a/plugins/channelrx/radioclock/radioclockgui.cpp b/plugins/channelrx/radioclock/radioclockgui.cpp index 32ba972c0..9f4ce1da0 100644 --- a/plugins/channelrx/radioclock/radioclockgui.cpp +++ b/plugins/channelrx/radioclock/radioclockgui.cpp @@ -178,8 +178,18 @@ void RadioClockGUI::on_timezone_currentIndexChanged(int index) void RadioClockGUI::onWidgetRolled(QWidget* widget, bool rollDown) { - (void) widget; - (void) rollDown; + if (widget == ui->scopeContainer) + { + if (rollDown) + { + // Make wide enough for scope controls + setMinimumWidth(716); + } + else + { + setMinimumWidth(352); + } + } } void RadioClockGUI::onMenuDialogCalled(const QPoint &p) From dfd9f59216e00754ddf1073ec8094c68f3b5933b Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 15 Jul 2021 12:01:13 +0100 Subject: [PATCH 2/7] Remove obsolete macro --- plugins/channelrx/demodais/aisdemodsink.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/channelrx/demodais/aisdemodsink.cpp b/plugins/channelrx/demodais/aisdemodsink.cpp index b140d0955..48353ca4c 100644 --- a/plugins/channelrx/demodais/aisdemodsink.cpp +++ b/plugins/channelrx/demodais/aisdemodsink.cpp @@ -31,8 +31,6 @@ #include "aisdemod.h" #include "aisdemodsink.h" -#define AISDEMOD_MINS_MAXS 5 - AISDemodSink::AISDemodSink(AISDemod *aisDemod) : m_scopeSink(nullptr), m_aisDemod(aisDemod), From 99c0236cb6d38e3e32c230bf02bdff721e1ab8d2 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 15 Jul 2021 12:01:23 +0100 Subject: [PATCH 3/7] Remove obsolete variable --- plugins/channelrx/demodais/aisdemodsink.h | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/channelrx/demodais/aisdemodsink.h b/plugins/channelrx/demodais/aisdemodsink.h index 0a1ddda3b..fc7688e9a 100644 --- a/plugins/channelrx/demodais/aisdemodsink.h +++ b/plugins/channelrx/demodais/aisdemodsink.h @@ -125,7 +125,6 @@ private: Real *m_train; // Training sequence to look for int m_correlationLength; - int m_symbolPrev; unsigned char m_bytes[AISDEMOD_MAX_BYTES]; crc16x25 m_crc; From f74fdbeb3d10eb784c372b156de08d40a0851c8a Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 15 Jul 2021 12:03:26 +0100 Subject: [PATCH 4/7] Fix copy and paste errors in Packet Mod web API --- plugins/channeltx/modpacket/packetmod.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/channeltx/modpacket/packetmod.cpp b/plugins/channeltx/modpacket/packetmod.cpp index 1e8e19485..94dd6e3c4 100644 --- a/plugins/channeltx/modpacket/packetmod.cpp +++ b/plugins/channeltx/modpacket/packetmod.cpp @@ -615,13 +615,13 @@ void PacketMod::webapiUpdateChannelSettings( settings.m_reverseAPIChannelIndex = response.getPacketModSettings()->getReverseApiChannelIndex(); } if (channelSettingsKeys.contains("udpEnabled")) { - settings.m_udpEnabled = response.getPacketDemodSettings()->getUdpEnabled(); + settings.m_udpEnabled = response.getPacketModSettings()->getUdpEnabled(); } if (channelSettingsKeys.contains("udpAddress")) { - settings.m_udpAddress = *response.getPacketDemodSettings()->getUdpAddress(); + settings.m_udpAddress = *response.getPacketModSettings()->getUdpAddress(); } if (channelSettingsKeys.contains("udpPort")) { - settings.m_udpPort = response.getPacketDemodSettings()->getUdpPort(); + settings.m_udpPort = response.getPacketModSettings()->getUdpPort(); } } @@ -930,7 +930,7 @@ void PacketMod::webapiFormatChannelSettings( swgPacketModSettings->setData(new QString(settings.m_data)); } if (channelSettingsKeys.contains("bpf") || force) { - swgPacketModSettings->setBpf(settings.m_preEmphasis ? 1 : 0); + swgPacketModSettings->setBpf(settings.m_bpf ? 1 : 0); } if (channelSettingsKeys.contains("bpfLowCutoff") || force) { swgPacketModSettings->setBpfLowCutoff(settings.m_bpfLowCutoff); From 39478415a1a2030dad5629b43e9f847e26e153ec Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 15 Jul 2021 12:03:48 +0100 Subject: [PATCH 5/7] Default to having spectrum hidden --- plugins/channeltx/modpacket/packetmodgui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/channeltx/modpacket/packetmodgui.cpp b/plugins/channeltx/modpacket/packetmodgui.cpp index 7dbb7a6ce..892333a93 100644 --- a/plugins/channeltx/modpacket/packetmodgui.cpp +++ b/plugins/channeltx/modpacket/packetmodgui.cpp @@ -476,6 +476,8 @@ PacketModGUI::PacketModGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseb ui->spectrumGUI->setBuddies(m_spectrumVis, ui->glSpectrum); + ui->spectrumContainer->setVisible(false); + displaySettings(); applySettings(); } From ebc52027780e5d6465921f1645de2a733e2c9f3f Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 15 Jul 2021 12:04:44 +0100 Subject: [PATCH 6/7] Remove unneeded file --- .../pertester/pertestergui.ui.autosave | 576 ------------------ 1 file changed, 576 deletions(-) delete mode 100644 plugins/feature/pertester/pertestergui.ui.autosave diff --git a/plugins/feature/pertester/pertestergui.ui.autosave b/plugins/feature/pertester/pertestergui.ui.autosave deleted file mode 100644 index d7b16de17..000000000 --- a/plugins/feature/pertester/pertestergui.ui.autosave +++ /dev/null @@ -1,576 +0,0 @@ - - - PERTesterGUI - - - - 0 - 0 - 350 - 430 - - - - - 0 - 0 - - - - - 320 - 100 - - - - - 350 - 16777215 - - - - - Liberation Sans - 9 - - - - GS-232 Rotator Controller - - - - - 10 - 10 - 331 - 291 - - - - Settings - - - - 3 - - - 2 - - - 2 - - - 2 - - - 2 - - - - - - - Start/stop PER Test - - - - - - - :/play.png - :/stop.png:/play.png - - - - - - - Reset statistics - - - - - - - :/recycle.png:/recycle.png - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Start test - - - - - - - Number of packets to transmit - - - 1 - - - 2000000000 - - - - - - - When to start the test, after the start button is pressed - - - - Immediately - - - - - On satellite AOS - - - - - On satellite mid pass - - - - - - - - Packets - - - - - - - Interval in seconds between packets - - - 3 - - - 1000000.000000000000000 - - - - - - - Interval (s) - - - - - - - Satellites - - - - - - - Space separated list of satellite names to start the PER test on - - - ISS - - - - - - - - - - - Packet - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - Hex encoded packet to transmit. - -Substitutions: -%{ax25.src=CALLSIGN} -%{ax25.dst=CALLSIGN} -%{num} -%{data=min,max} - - - - - - - - - - - Ignore - - - - - - - Leading - - - - - - - 10000 - - - - - - - Trailing - - - - - - - 10000 - - - - - - - bytes - - - - - - - - - - - TX UDP - - - - - - - - 120 - 0 - - - - Qt::ClickFocus - - - Destination UDP address - - - 000.000.000.000 - - - 127.0.0.1 - - - - - - - : - - - Qt::AlignCenter - - - - - - - - 50 - 0 - - - - - 50 - 16777215 - - - - Qt::ClickFocus - - - Destination UDP port - - - 00000 - - - 9997 - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - RX UDP - - - - - - - - 120 - 0 - - - - Qt::ClickFocus - - - Destination UDP address - - - 000.000.000.000 - - - 127.0.0.1 - - - - - - - : - - - Qt::AlignCenter - - - - - - - - 50 - 0 - - - - - 50 - 16777215 - - - - Qt::ClickFocus - - - Destination UDP port - - - 00000 - - - 9998 - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - 10 - 310 - 331 - 91 - - - - Statistics - - - - 3 - - - 2 - - - 2 - - - 2 - - - 2 - - - - - - - Number of packets received that match a transmitted packet - - - 0 - - - - - - - Received and Matched - - - - - - - PER - - - - - - - 0% - - - - - - - Number of packets that have been transmitted - - - 0 - - - - - - - Transmitted - - - - - - - Received and Unmatched - - - - - - - Number of packets received that do not match a transmitted packet - - - 0 - - - - - - - - - - - RollupWidget - QWidget -
gui/rollupwidget.h
- 1 -
- - ButtonSwitch - QToolButton -
gui/buttonswitch.h
-
-
- - startStop - - - - - -
From 02be2f330b9631aeb3ea3cc76b9d3d9115183a2a Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 15 Jul 2021 12:05:15 +0100 Subject: [PATCH 7/7] Fix name of AIS window --- plugins/feature/ais/aisgui.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/feature/ais/aisgui.ui b/plugins/feature/ais/aisgui.ui index a391051b9..1c4875bac 100644 --- a/plugins/feature/ais/aisgui.ui +++ b/plugins/feature/ais/aisgui.ui @@ -35,7 +35,7 @@ - GS-232 Rotator Controller + AIS