From 9309ec17118c847880333c72e456f47258314d04 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Mon, 20 Apr 2026 17:31:56 +0100 Subject: [PATCH 1/5] NFMDemod: Correct FM scaling. --- plugins/channelrx/demodnfm/nfmdemodsettings.h | 2 +- plugins/channelrx/demodnfm/nfmdemodsink.cpp | 4 ++-- plugins/channeltx/modnfm/nfmmodsettings.h | 2 +- plugins/channeltx/modnfm/nfmmodsource.cpp | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/channelrx/demodnfm/nfmdemodsettings.h b/plugins/channelrx/demodnfm/nfmdemodsettings.h index bd48d114d..45c243494 100644 --- a/plugins/channelrx/demodnfm/nfmdemodsettings.h +++ b/plugins/channelrx/demodnfm/nfmdemodsettings.h @@ -38,7 +38,7 @@ struct NFMDemodSettings int32_t m_inputFrequencyOffset; Real m_rfBandwidth; Real m_afBandwidth; - Real m_fmDeviation; + Real m_fmDeviation; //!< Full deviation in Hz (UI shows peak deviation) int m_squelchGate; bool m_deltaSquelch; Real m_squelch; //!< deci-Bels diff --git a/plugins/channelrx/demodnfm/nfmdemodsink.cpp b/plugins/channelrx/demodnfm/nfmdemodsink.cpp index a48bb48b4..e2f40d206 100644 --- a/plugins/channelrx/demodnfm/nfmdemodsink.cpp +++ b/plugins/channelrx/demodnfm/nfmdemodsink.cpp @@ -317,7 +317,7 @@ void NFMDemodSink::applySettings(const QStringList& settingsKeys, const NFMDemod Real lowCut = -Real(settings.m_fmDeviation) / m_channelSampleRate; Real hiCut = Real(settings.m_fmDeviation) / m_channelSampleRate; m_rfFilter.create_filter(lowCut, hiCut); - m_phaseDiscri.setFMScaling(Real(m_audioSampleRate) / (2.0f * settings.m_fmDeviation)); + m_phaseDiscri.setFMScaling(Real(m_audioSampleRate) / settings.m_fmDeviation); } if ((settingsKeys.contains("afBandwidth") && (settings.m_afBandwidth != m_settings.m_afBandwidth)) || force) @@ -386,7 +386,7 @@ void NFMDemodSink::applyAudioSampleRate(unsigned int sampleRate) } m_afSquelch.setThreshold(m_squelchLevel); - m_phaseDiscri.setFMScaling(Real(sampleRate) / (2.0f * m_settings.m_fmDeviation)); + m_phaseDiscri.setFMScaling(Real(sampleRate) / m_settings.m_fmDeviation); // m_fmDeviation is full rather than peak deviation, so the usual factor of 2 is cancelled m_audioFifo.setSize(sampleRate); m_squelchDelayLine.resize(sampleRate/2); m_interpolatorDistance = Real(m_channelSampleRate) / Real(sampleRate); diff --git a/plugins/channeltx/modnfm/nfmmodsettings.h b/plugins/channeltx/modnfm/nfmmodsettings.h index 0b2d0e109..d9bf77961 100644 --- a/plugins/channeltx/modnfm/nfmmodsettings.h +++ b/plugins/channeltx/modnfm/nfmmodsettings.h @@ -48,7 +48,7 @@ struct NFMModSettings qint64 m_inputFrequencyOffset; Real m_rfBandwidth; Real m_afBandwidth; - float m_fmDeviation; + float m_fmDeviation; //!< Full deviation in Hz (UI shows peak deviation) float m_toneFrequency; float m_volumeFactor; bool m_channelMute; diff --git a/plugins/channeltx/modnfm/nfmmodsource.cpp b/plugins/channeltx/modnfm/nfmmodsource.cpp index 9e2d295e1..eb7f561c7 100644 --- a/plugins/channeltx/modnfm/nfmmodsource.cpp +++ b/plugins/channeltx/modnfm/nfmmodsource.cpp @@ -171,6 +171,7 @@ void NFMModSource::modulateSample() t1 = m_lowpass.filter(t); } + // The usual factor of 2*pi is cancelled by m_fmDeviation being the full rather than peak deviation m_modPhasor += (float) ((M_PI * m_settings.m_fmDeviation / (float) m_audioSampleRate) * t1); // limit phasor range to ]-pi,pi] From 19fa916e48e4860a93112c5114531819394f5961 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 21 Apr 2026 19:53:59 +0100 Subject: [PATCH 2/5] =?UTF-8?q?Use=20=C2=B1=20symbol=20for=20frequency=20d?= =?UTF-8?q?eviation=20in=20GUI.=20Indicate=20figure=20is=20peak=20deviatio?= =?UTF-8?q?n=20in=20docs=20and=20tooltips.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakePresets.json | 14 ++++++++------ plugins/channelrx/demodais/aisdemodgui.cpp | 4 ++-- plugins/channelrx/demodais/aisdemodgui.ui | 2 +- plugins/channelrx/demodais/aisdemodsettings.h | 2 +- plugins/channelrx/demodais/readme.md | 2 +- .../demodendoftrain/endoftraindemodgui.cpp | 4 ++-- .../demodendoftrain/endoftraindemodgui.ui | 4 ++-- plugins/channelrx/demodendoftrain/readme.md | 4 ++-- plugins/channelrx/demodpacket/packetdemodgui.cpp | 4 ++-- plugins/channelrx/demodpacket/packetdemodgui.ui | 4 ++-- plugins/channelrx/demodpacket/readme.md | 2 +- plugins/channelrx/demodpager/pagerdemodgui.cpp | 4 ++-- plugins/channelrx/demodpager/pagerdemodgui.ui | 4 ++-- plugins/channelrx/demodpager/readme.md | 2 +- plugins/channeltx/modais/aismodgui.cpp | 6 +++--- plugins/channeltx/modais/aismodgui.ui | 4 ++-- plugins/channeltx/modais/aismodsettings.cpp | 2 +- plugins/channeltx/modais/readme.md | 2 +- plugins/channeltx/modpacket/packetmodgui.cpp | 6 +++--- plugins/channeltx/modpacket/packetmodgui.ui | 4 ++-- plugins/channeltx/modpacket/readme.md | 2 +- plugins/channeltx/modwfm/readme.md | 2 +- plugins/channeltx/modwfm/wfmmodgui.cpp | 4 ++-- plugins/channeltx/modwfm/wfmmodgui.ui | 4 ++-- plugins/channeltx/modwfm/wfmmodsettings.h | 2 +- sdrgui/gui/rollupcontents.cpp | 2 +- 26 files changed, 49 insertions(+), 47 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 70fc2c96b..862605558 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -49,21 +49,22 @@ "binaryDir": "${sourceDir}/build", "cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo", + //"CMAKE_BUILD_TYPE": "Debug", "DEBUG_OUTPUT": "ON", "RX_SAMPLE_24BIT": "ON", "ARCH_OPT": "SSE4_2", "HIDE_CONSOLE": "OFF", - "ENABLE_AIRSPY": "ON", + "ENABLE_AIRSPY": "OFF", "ENABLE_AIRSPYHF": "ON", - "ENABLE_BLADERF": "ON", + "ENABLE_BLADERF": "OFF", "ENABLE_HACKRF": "ON", - "ENABLE_IIO": "ON", + "ENABLE_IIO": "OFF", "ENABLE_MIRISDR": "OFF", - "ENABLE_PERSEUS": "ON", + "ENABLE_PERSEUS": "OFF", "ENABLE_RTLSDR": "ON", "ENABLE_SDRPLAY": "ON", "ENABLE_SOAPYSDR": "ON", - "ENABLE_XTRX": "ON", + "ENABLE_XTRX": "OFF", "ENABLE_USRP": "ON", "BUILD_SERVER": "OFF", "CMAKE_PREFIX_PATH": "C:/Qt/5.15.2/msvc2019_64;C:/Applications/boost_1_81_0" @@ -91,7 +92,8 @@ "binaryDir": "${sourceDir}/build-qt6", "cacheVariables": { "ENABLE_QT6": "ON", - "CMAKE_PREFIX_PATH": "C:/Qt/6.7.3/msvc2022_64;C:/Applications/boost_1_81_0" + "CMAKE_PREFIX_PATH": "C:/Qt/6.10.2/msvc2022_64;C:/Applications/boost_1_81_0", + "ENABLE_PROFILER": "ON" } } ], diff --git a/plugins/channelrx/demodais/aisdemodgui.cpp b/plugins/channelrx/demodais/aisdemodgui.cpp index 37b76143f..2a6b1e786 100644 --- a/plugins/channelrx/demodais/aisdemodgui.cpp +++ b/plugins/channelrx/demodais/aisdemodgui.cpp @@ -575,7 +575,7 @@ void AISDemodGUI::on_rfBW_valueChanged(int value) void AISDemodGUI::on_fmDev_valueChanged(int value) { - ui->fmDevText->setText(QString("%1k").arg(value / 10.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(value / 10.0, 0, 'f', 1)); m_settings.m_fmDeviation = value * 100.0; applySettings(QStringList({"fmDeviation"})); } @@ -894,7 +894,7 @@ void AISDemodGUI::displaySettings() ui->rfBWText->setText(QString("%1k").arg(m_settings.m_rfBandwidth / 1000.0, 0, 'f', 1)); ui->rfBW->setValue(m_settings.m_rfBandwidth / 100.0); - ui->fmDevText->setText(QString("%1k").arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); ui->fmDev->setValue(m_settings.m_fmDeviation / 100.0); ui->thresholdText->setText(QString("%1").arg(m_settings.m_correlationThreshold)); diff --git a/plugins/channelrx/demodais/aisdemodgui.ui b/plugins/channelrx/demodais/aisdemodgui.ui index 19f4c6358..cd6adbcff 100644 --- a/plugins/channelrx/demodais/aisdemodgui.ui +++ b/plugins/channelrx/demodais/aisdemodgui.ui @@ -301,7 +301,7 @@ - Frequency deviation + Peak frequency deviation 10 diff --git a/plugins/channelrx/demodais/aisdemodsettings.h b/plugins/channelrx/demodais/aisdemodsettings.h index 17f9c1499..72fc1db65 100644 --- a/plugins/channelrx/demodais/aisdemodsettings.h +++ b/plugins/channelrx/demodais/aisdemodsettings.h @@ -36,7 +36,7 @@ struct AISDemodSettings qint32 m_baud; qint32 m_inputFrequencyOffset; Real m_rfBandwidth; - Real m_fmDeviation; + Real m_fmDeviation; //!< Peak deviation to give modulation index of 0.5 for 9600 baud Real m_correlationThreshold; QString m_filterMMSI; bool m_udpEnabled; diff --git a/plugins/channelrx/demodais/readme.md b/plugins/channelrx/demodais/readme.md index 4980b29e9..9c52e024f 100644 --- a/plugins/channelrx/demodais/readme.md +++ b/plugins/channelrx/demodais/readme.md @@ -40,7 +40,7 @@ This specifies the bandwidth of a LPF that is applied to the input signal to lim

5: Dev - Frequency deviation

-Adjusts the expected frequency deviation in 0.1 kHz steps from 1 to 6 kHz. Typical values are 4.8 kHz, corresponding to a modulation index of 0.5 at 9,600 baud. +Adjusts the expected peak frequency deviation in 0.1 kHz steps from 1 to 6 kHz. Typical values are 4.8 kHz, corresponding to a modulation index of 0.5 at 9,600 baud.

6: TH - Correlation Threshold

diff --git a/plugins/channelrx/demodendoftrain/endoftraindemodgui.cpp b/plugins/channelrx/demodendoftrain/endoftraindemodgui.cpp index 8d7443ddf..c8da03e6b 100644 --- a/plugins/channelrx/demodendoftrain/endoftraindemodgui.cpp +++ b/plugins/channelrx/demodendoftrain/endoftraindemodgui.cpp @@ -305,7 +305,7 @@ void EndOfTrainDemodGUI::on_rfBW_valueChanged(int value) void EndOfTrainDemodGUI::on_fmDev_valueChanged(int value) { - ui->fmDevText->setText(QString("%1k").arg(value / 10.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(value / 10.0, 0, 'f', 1)); m_settings.m_fmDeviation = value * 100.0; applySetting("fmDeviation"); } @@ -584,7 +584,7 @@ void EndOfTrainDemodGUI::displaySettings() ui->rfBWText->setText(QString("%1k").arg(m_settings.m_rfBandwidth / 1000.0, 0, 'f', 1)); ui->rfBW->setValue(m_settings.m_rfBandwidth / 100.0); - ui->fmDevText->setText(QString("%1k").arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); ui->fmDev->setValue(m_settings.m_fmDeviation / 100.0); updateIndexLabel(); diff --git a/plugins/channelrx/demodendoftrain/endoftraindemodgui.ui b/plugins/channelrx/demodendoftrain/endoftraindemodgui.ui index 81cec7080..2306a65f9 100644 --- a/plugins/channelrx/demodendoftrain/endoftraindemodgui.ui +++ b/plugins/channelrx/demodendoftrain/endoftraindemodgui.ui @@ -321,7 +321,7 @@
- Frequency deviation + Peak frequency deviation 10 @@ -349,7 +349,7 @@ - 5.0k + ±3.0k Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter diff --git a/plugins/channelrx/demodendoftrain/readme.md b/plugins/channelrx/demodendoftrain/readme.md index 22fb78306..059f8720a 100644 --- a/plugins/channelrx/demodendoftrain/readme.md +++ b/plugins/channelrx/demodendoftrain/readme.md @@ -7,7 +7,7 @@ that can be found on some trains. It transmits information about whether motion is detected, brake pressure, whether the marker light is on and battery information. * Frequency: 457.9375 MHz (North America, India), 477.7 MHz (Australia) and 450.2625 MHz (New Zealand). -* Modulation: FSK, 1800Hz space, 1200 mark, +-3kHz deviation. +* Modulation: FSK, 1800Hz space, 1200 mark, ±3kHz deviation. * Baud rate: 1200 baud. The End-of-train packet specification is defined in: @@ -40,7 +40,7 @@ This specifies the bandwidth of a LPF that is applied to the input signal to lim

5: Frequency deviation

-Adjusts the expected frequency deviation in 0.1 kHz steps from 1 to 6 kHz. Typical value is 3 kHz. +Adjusts the expected peak frequency deviation in 0.1 kHz steps from 1 to 6 kHz. Typical value is ±3 kHz.

6: Filter Address

diff --git a/plugins/channelrx/demodpacket/packetdemodgui.cpp b/plugins/channelrx/demodpacket/packetdemodgui.cpp index 5764828ba..54fe7165b 100644 --- a/plugins/channelrx/demodpacket/packetdemodgui.cpp +++ b/plugins/channelrx/demodpacket/packetdemodgui.cpp @@ -276,7 +276,7 @@ void PacketDemodGUI::on_rfBW_valueChanged(int value) void PacketDemodGUI::on_fmDev_valueChanged(int value) { - ui->fmDevText->setText(QString("%1k").arg(value / 10.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(value / 10.0, 0, 'f', 1)); m_settings.m_fmDeviation = value * 100.0; applySettings(QStringList({"fmDeviation"})); } @@ -538,7 +538,7 @@ void PacketDemodGUI::displaySettings() ui->rfBWText->setText(QString("%1k").arg(m_settings.m_rfBandwidth / 1000.0, 0, 'f', 1)); ui->rfBW->setValue(m_settings.m_rfBandwidth / 100.0); - ui->fmDevText->setText(QString("%1k").arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); ui->fmDev->setValue(m_settings.m_fmDeviation / 100.0); updateIndexLabel(); diff --git a/plugins/channelrx/demodpacket/packetdemodgui.ui b/plugins/channelrx/demodpacket/packetdemodgui.ui index 126996967..158c723a5 100644 --- a/plugins/channelrx/demodpacket/packetdemodgui.ui +++ b/plugins/channelrx/demodpacket/packetdemodgui.ui @@ -339,7 +339,7 @@
- Frequency deviation + Peak frequency deviation 10 @@ -367,7 +367,7 @@ - 5.0k + ±5.0k Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter diff --git a/plugins/channelrx/demodpacket/readme.md b/plugins/channelrx/demodpacket/readme.md index 57e4176a7..78b5a89d7 100644 --- a/plugins/channelrx/demodpacket/readme.md +++ b/plugins/channelrx/demodpacket/readme.md @@ -34,7 +34,7 @@ This specifies the bandwidth of a LPF that is applied to the input signal to lim

6: Frequency deviation

-Adjusts the expected frequency deviation in 0.1 kHz steps from 1 to 6 kHz. Typical values are 2.5 kHz and 5 kHz. +Adjusts the expected peak frequency deviation in 0.1 kHz steps from 1 to 6 kHz. Typical values are ±2.5 kHz and ±5 kHz.

7: Filter Packets From

diff --git a/plugins/channelrx/demodpager/pagerdemodgui.cpp b/plugins/channelrx/demodpager/pagerdemodgui.cpp index 6829de94f..6fc356e2e 100644 --- a/plugins/channelrx/demodpager/pagerdemodgui.cpp +++ b/plugins/channelrx/demodpager/pagerdemodgui.cpp @@ -368,7 +368,7 @@ void PagerDemodGUI::on_rfBW_valueChanged(int value) void PagerDemodGUI::on_fmDev_valueChanged(int value) { - ui->fmDevText->setText(QString("%1k").arg(value / 10.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(value / 10.0, 0, 'f', 1)); m_settings.m_fmDeviation = value * 100.0; applySettings(QStringList("fmDeviation")); } @@ -665,7 +665,7 @@ void PagerDemodGUI::displaySettings() ui->rfBWText->setText(QString("%1k").arg(m_settings.m_rfBandwidth / 1000.0, 0, 'f', 1)); ui->rfBW->setValue(m_settings.m_rfBandwidth / 100.0); - ui->fmDevText->setText(QString("%1k").arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); ui->fmDev->setValue(m_settings.m_fmDeviation / 100.0); updateIndexLabel(); diff --git a/plugins/channelrx/demodpager/pagerdemodgui.ui b/plugins/channelrx/demodpager/pagerdemodgui.ui index d66602c81..a1c13e259 100644 --- a/plugins/channelrx/demodpager/pagerdemodgui.ui +++ b/plugins/channelrx/demodpager/pagerdemodgui.ui @@ -301,7 +301,7 @@
- Frequency deviation + Peak frequency deviation 10 @@ -329,7 +329,7 @@ - 2.4k + ±2.4k Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter diff --git a/plugins/channelrx/demodpager/readme.md b/plugins/channelrx/demodpager/readme.md index 15a8e586d..1cf071a6c 100644 --- a/plugins/channelrx/demodpager/readme.md +++ b/plugins/channelrx/demodpager/readme.md @@ -30,7 +30,7 @@ This specifies the bandwidth of a LPF that is applied to the input signal to lim

5: Dev - Frequency deviation

-Adjusts the expected frequency deviation in 0.1 kHz steps from 1 to 6 kHz. POCSAG uses FSK with a +/- 4.5 kHz shift. +Adjusts the expected peak frequency deviation in 0.1 kHz steps from 1 to 6 kHz. POCSAG uses FSK with a ±4.5 kHz shift.

6: Mod - Modulation

diff --git a/plugins/channeltx/modais/aismodgui.cpp b/plugins/channeltx/modais/aismodgui.cpp index 7926c9147..63f84da2b 100644 --- a/plugins/channeltx/modais/aismodgui.cpp +++ b/plugins/channeltx/modais/aismodgui.cpp @@ -156,7 +156,7 @@ void AISModGUI::on_mode_currentIndexChanged(int value) ui->rfBWText->setText(QString("%1k").arg(m_settings.m_rfBandwidth / 1000.0, 0, 'f', 1)); ui->rfBW->setValue(m_settings.m_rfBandwidth / 100.0); - ui->fmDevText->setText(QString("%1k").arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); ui->fmDev->setValue(m_settings.m_fmDeviation / 100.0); ui->btText->setText(QString("%1").arg(m_settings.m_bt, 0, 'f', 1)); ui->bt->setValue(m_settings.m_bt * 10); @@ -174,7 +174,7 @@ void AISModGUI::on_rfBW_valueChanged(int value) void AISModGUI::on_fmDev_valueChanged(int value) { - ui->fmDevText->setText(QString("%1k").arg(value / 10.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(value / 10.0, 0, 'f', 1)); m_settings.m_fmDeviation = value * 100.0; applySettings(QStringList("fmDeviation")); } @@ -556,7 +556,7 @@ void AISModGUI::displaySettings() ui->rfBWText->setText(QString("%1k").arg(m_settings.m_rfBandwidth / 1000.0, 0, 'f', 1)); ui->rfBW->setValue(m_settings.m_rfBandwidth / 100.0); - ui->fmDevText->setText(QString("%1k").arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); ui->fmDev->setValue(m_settings.m_fmDeviation / 100.0); ui->btText->setText(QString("%1").arg(m_settings.m_bt, 0, 'f', 1)); diff --git a/plugins/channeltx/modais/aismodgui.ui b/plugins/channeltx/modais/aismodgui.ui index 629d0bc86..20a98241b 100644 --- a/plugins/channeltx/modais/aismodgui.ui +++ b/plugins/channeltx/modais/aismodgui.ui @@ -304,7 +304,7 @@
- Frequency deviation + Peak frequency deviation 10 @@ -332,7 +332,7 @@ - 4.8k + ±4.8k Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter diff --git a/plugins/channeltx/modais/aismodsettings.cpp b/plugins/channeltx/modais/aismodsettings.cpp index 736602594..1bf419445 100644 --- a/plugins/channeltx/modais/aismodsettings.cpp +++ b/plugins/channeltx/modais/aismodsettings.cpp @@ -35,7 +35,7 @@ void AISModSettings::resetToDefaults() m_inputFrequencyOffset = 0; m_baud = 9600; // nominal value m_rfBandwidth = 25000.0f; // 12.5k for narrow, 25k for wide (narrow is obsolete) - m_fmDeviation = 4800.0f; // To give modulation index of 0.5 for 9600 baud + m_fmDeviation = 4800.0f; // Peak deviation - To give modulation index of 0.5 for 9600 baud m_gain = -1.0f; // To avoid overflow, which results in out-of-band RF m_channelMute = false; m_repeat = false; diff --git a/plugins/channeltx/modais/readme.md b/plugins/channeltx/modais/readme.md index 9748de83a..6ce364fc8 100644 --- a/plugins/channeltx/modais/readme.md +++ b/plugins/channeltx/modais/readme.md @@ -34,7 +34,7 @@ This specifies the bandwidth of a LPF that is applied to the output signal to li

6: FM Deviation

-This specifies the maximum frequency deviation. Typically this should be 4.8kHz, giving a modulation index of 0.5 at 9,600 baud. +This specifies the peak frequency deviation. Typically this should be ±4.8kHz, giving a modulation index of 0.5 at 9,600 baud.

7: BT Bandwidth

diff --git a/plugins/channeltx/modpacket/packetmodgui.cpp b/plugins/channeltx/modpacket/packetmodgui.cpp index 4f35aa7af..37e899521 100644 --- a/plugins/channeltx/modpacket/packetmodgui.cpp +++ b/plugins/channeltx/modpacket/packetmodgui.cpp @@ -151,7 +151,7 @@ void PacketModGUI::on_mode_currentIndexChanged(int value) m_settings.setMode(mode); ui->rfBWText->setText(QString("%1k").arg(m_settings.m_rfBandwidth / 1000.0, 0, 'f', 1)); - ui->fmDevText->setText(QString("%1k").arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); ui->fmDev->setValue(m_settings.m_fmDeviation / 100.0); ui->glSpectrum->setCenterFrequency(m_settings.m_spectrumRate/4); ui->glSpectrum->setSampleRate(m_settings.m_spectrumRate/2); @@ -173,7 +173,7 @@ void PacketModGUI::on_rfBW_valueChanged(int value) void PacketModGUI::on_fmDev_valueChanged(int value) { - ui->fmDevText->setText(QString("%1k").arg(value / 10.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(value / 10.0, 0, 'f', 1)); m_settings.m_fmDeviation = value * 100.0; applySettings(QStringList("fmDeviation")); } @@ -593,7 +593,7 @@ void PacketModGUI::displaySettings() ui->rfBWText->setText(QString("%1k").arg(m_settings.m_rfBandwidth / 1000.0, 0, 'f', 1)); ui->rfBW->setValue(m_settings.m_rfBandwidth / 100.0); - ui->fmDevText->setText(QString("%1k").arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); ui->fmDev->setValue(m_settings.m_fmDeviation / 100.0); ui->gainText->setText(QString("%1").arg((double)m_settings.m_gain, 0, 'f', 1)); diff --git a/plugins/channeltx/modpacket/packetmodgui.ui b/plugins/channeltx/modpacket/packetmodgui.ui index 8df7d2d31..a034dc9a8 100644 --- a/plugins/channeltx/modpacket/packetmodgui.ui +++ b/plugins/channeltx/modpacket/packetmodgui.ui @@ -304,7 +304,7 @@
- Frequency deviation + Peak frequency deviation 10 @@ -332,7 +332,7 @@ - 5.0k + ±5.0k Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter diff --git a/plugins/channeltx/modpacket/readme.md b/plugins/channeltx/modpacket/readme.md index 21af80f69..9257525ed 100644 --- a/plugins/channeltx/modpacket/readme.md +++ b/plugins/channeltx/modpacket/readme.md @@ -32,7 +32,7 @@ This specifies the bandwidth of a LPF that is applied to the output signal to li

6: Frequency deviation

-Adjusts the frequency deviation in 0.1 kHz steps from 1 to 6 kHz. Typical values are 2.5 kHz and 5 kHz. +Adjusts the frequency peak deviation in 0.1 kHz steps from 1 to 6 kHz. Typical values are ±2.5 kHz and ±5 kHz.

7: Gain

diff --git a/plugins/channeltx/modwfm/readme.md b/plugins/channeltx/modwfm/readme.md index e28bc0326..39446160a 100644 --- a/plugins/channeltx/modwfm/readme.md +++ b/plugins/channeltx/modwfm/readme.md @@ -32,7 +32,7 @@ This is the bandwidth in kHz of the modulating signal filtered before modulation

7: Frequency deviation

-Adjusts the frequency deviation in 1 kHz steps from 0 to 100 kHz +Adjusts the peak frequency deviation in 1 kHz steps from 0 to 100 kHz

8: Volume

diff --git a/plugins/channeltx/modwfm/wfmmodgui.cpp b/plugins/channeltx/modwfm/wfmmodgui.cpp index 745fb8c44..1b447146f 100644 --- a/plugins/channeltx/modwfm/wfmmodgui.cpp +++ b/plugins/channeltx/modwfm/wfmmodgui.cpp @@ -172,7 +172,7 @@ void WFMModGUI::on_afBW_valueChanged(int value) void WFMModGUI::on_fmDev_valueChanged(int value) { - ui->fmDevText->setText(QString("%1k").arg(value)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(value)); m_settings.m_fmDeviation = value * 1000.0; applySettings(QStringList("fmDeviation")); } @@ -476,7 +476,7 @@ void WFMModGUI::displaySettings() ui->afBWText->setText(QString("%1k").arg(m_settings.m_afBandwidth / 1000.0)); ui->afBW->setValue(m_settings.m_afBandwidth / 1000.0); - ui->fmDevText->setText(QString("%1k").arg(m_settings.m_fmDeviation / 1000.0)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(m_settings.m_fmDeviation / 1000.0)); ui->fmDev->setValue(m_settings.m_fmDeviation / 1000.0); ui->volumeText->setText(QString("%1").arg(m_settings.m_volumeFactor, 0, 'f', 1)); diff --git a/plugins/channeltx/modwfm/wfmmodgui.ui b/plugins/channeltx/modwfm/wfmmodgui.ui index 4a8d5bb2b..534534438 100644 --- a/plugins/channeltx/modwfm/wfmmodgui.ui +++ b/plugins/channeltx/modwfm/wfmmodgui.ui @@ -302,7 +302,7 @@
- Modulation percentage + Peak frequency deviation 100 @@ -327,7 +327,7 @@ - 50k + ±50k Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter diff --git a/plugins/channeltx/modwfm/wfmmodsettings.h b/plugins/channeltx/modwfm/wfmmodsettings.h index 3f82d5b41..0bb0b3051 100644 --- a/plugins/channeltx/modwfm/wfmmodsettings.h +++ b/plugins/channeltx/modwfm/wfmmodsettings.h @@ -45,7 +45,7 @@ struct WFMModSettings qint64 m_inputFrequencyOffset; Real m_rfBandwidth; Real m_afBandwidth; - float m_fmDeviation; + float m_fmDeviation; //!< Peak frequency deviation in Hz float m_toneFrequency; float m_volumeFactor; bool m_channelMute; diff --git a/sdrgui/gui/rollupcontents.cpp b/sdrgui/gui/rollupcontents.cpp index 9f9bf0d00..eb6861037 100644 --- a/sdrgui/gui/rollupcontents.cpp +++ b/sdrgui/gui/rollupcontents.cpp @@ -122,7 +122,7 @@ int RollupContents::arrangeRollups() } int h = 0; if (r->hasHeightForWidth()) { - h = r->heightForWidth(width() - 4); + h = r->heightForWidth(width() - 4); // FIXME: This is preferred height for the given width, not the minimum height. } else { h = r->minimumSizeHint().height(); } From 8c1b83fa24d9006b6cd4d16d1e131a09436665ff Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 21 Apr 2026 19:57:59 +0100 Subject: [PATCH 3/5] Same for Radiosonde --- plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp | 4 ++-- plugins/channelrx/demodradiosonde/radiosondedemodgui.ui | 2 +- plugins/channelrx/demodradiosonde/radiosondedemodsettings.h | 2 +- plugins/channelrx/demodradiosonde/readme.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp b/plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp index 88e18df57..081e4508d 100644 --- a/plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp +++ b/plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp @@ -398,7 +398,7 @@ void RadiosondeDemodGUI::on_rfBW_valueChanged(int value) void RadiosondeDemodGUI::on_fmDev_valueChanged(int value) { - ui->fmDevText->setText(QString("%1k").arg(value / 10.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(value / 10.0, 0, 'f', 1)); m_settings.m_fmDeviation = value * 100.0; applySettings(QStringList("fmDeviation")); } @@ -748,7 +748,7 @@ void RadiosondeDemodGUI::displaySettings() ui->rfBWText->setText(QString("%1k").arg(m_settings.m_rfBandwidth / 1000.0, 0, 'f', 1)); ui->rfBW->setValue(m_settings.m_rfBandwidth / 100.0); - ui->fmDevText->setText(QString("%1k").arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); + ui->fmDevText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(m_settings.m_fmDeviation / 1000.0, 0, 'f', 1)); ui->fmDev->setValue(m_settings.m_fmDeviation / 100.0); ui->thresholdText->setText(QString("%1").arg(m_settings.m_correlationThreshold)); diff --git a/plugins/channelrx/demodradiosonde/radiosondedemodgui.ui b/plugins/channelrx/demodradiosonde/radiosondedemodgui.ui index 9d6b8192b..d98410385 100644 --- a/plugins/channelrx/demodradiosonde/radiosondedemodgui.ui +++ b/plugins/channelrx/demodradiosonde/radiosondedemodgui.ui @@ -298,7 +298,7 @@ - Frequency deviation + Peak frequency deviation 10 diff --git a/plugins/channelrx/demodradiosonde/radiosondedemodsettings.h b/plugins/channelrx/demodradiosonde/radiosondedemodsettings.h index fa9f83f58..2b2edbd44 100644 --- a/plugins/channelrx/demodradiosonde/radiosondedemodsettings.h +++ b/plugins/channelrx/demodradiosonde/radiosondedemodsettings.h @@ -36,7 +36,7 @@ struct RadiosondeDemodSettings qint32 m_baud; qint32 m_inputFrequencyOffset; Real m_rfBandwidth; - Real m_fmDeviation; + Real m_fmDeviation; // Peak frequency deviation in Hz Real m_correlationThreshold; QString m_filterSerial; bool m_udpEnabled; diff --git a/plugins/channelrx/demodradiosonde/readme.md b/plugins/channelrx/demodradiosonde/readme.md index 8fab4e4b4..7bbf0e53f 100644 --- a/plugins/channelrx/demodradiosonde/readme.md +++ b/plugins/channelrx/demodradiosonde/readme.md @@ -34,7 +34,7 @@ This specifies the bandwidth of a LPF that is applied to the input signal to lim

5: Dev - Frequency deviation

-Adjusts the expected frequency deviation in 0.1 kHz steps from 1 to 5 kHz. Typical value to RS41 is 2.4kHz. +Adjusts the expected peak frequency deviation in 0.1 kHz steps from 1 to 5 kHz. Typical value to RS41 is ±2.4kHz.

6: TH - Correlation Threshold

From 89fde2bdfc2f38c3c400b2e4796822c3cf3c6a8c Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 21 Apr 2026 19:58:59 +0100 Subject: [PATCH 4/5] M17 Demod: Remove factor of Pi in setFMScaling --- plugins/channelrx/demodm17/m17demodsink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channelrx/demodm17/m17demodsink.cpp b/plugins/channelrx/demodm17/m17demodsink.cpp index 9cee85ac8..42fc2eaa3 100644 --- a/plugins/channelrx/demodm17/m17demodsink.cpp +++ b/plugins/channelrx/demodm17/m17demodsink.cpp @@ -308,7 +308,7 @@ void M17DemodSink::applySettings(const M17DemodSettings& settings, const QList Date: Tue, 21 Apr 2026 20:06:29 +0100 Subject: [PATCH 5/5] Undo changes that should have been commited. --- CMakePresets.json | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 862605558..70fc2c96b 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -49,22 +49,21 @@ "binaryDir": "${sourceDir}/build", "cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo", - //"CMAKE_BUILD_TYPE": "Debug", "DEBUG_OUTPUT": "ON", "RX_SAMPLE_24BIT": "ON", "ARCH_OPT": "SSE4_2", "HIDE_CONSOLE": "OFF", - "ENABLE_AIRSPY": "OFF", + "ENABLE_AIRSPY": "ON", "ENABLE_AIRSPYHF": "ON", - "ENABLE_BLADERF": "OFF", + "ENABLE_BLADERF": "ON", "ENABLE_HACKRF": "ON", - "ENABLE_IIO": "OFF", + "ENABLE_IIO": "ON", "ENABLE_MIRISDR": "OFF", - "ENABLE_PERSEUS": "OFF", + "ENABLE_PERSEUS": "ON", "ENABLE_RTLSDR": "ON", "ENABLE_SDRPLAY": "ON", "ENABLE_SOAPYSDR": "ON", - "ENABLE_XTRX": "OFF", + "ENABLE_XTRX": "ON", "ENABLE_USRP": "ON", "BUILD_SERVER": "OFF", "CMAKE_PREFIX_PATH": "C:/Qt/5.15.2/msvc2019_64;C:/Applications/boost_1_81_0" @@ -92,8 +91,7 @@ "binaryDir": "${sourceDir}/build-qt6", "cacheVariables": { "ENABLE_QT6": "ON", - "CMAKE_PREFIX_PATH": "C:/Qt/6.10.2/msvc2022_64;C:/Applications/boost_1_81_0", - "ENABLE_PROFILER": "ON" + "CMAKE_PREFIX_PATH": "C:/Qt/6.7.3/msvc2022_64;C:/Applications/boost_1_81_0" } } ],