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/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 QListfmDevText->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/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

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/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] 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(); }