From c1e20e48f4acf5c4fc87fdb6a51707402f8bc4cd Mon Sep 17 00:00:00 2001 From: cameron Date: Sat, 18 Nov 2023 12:12:51 -0700 Subject: [PATCH] Add FRS-GMRS presets --- .../freqscanner/freqscanneraddrangedialog.cpp | 16 ++++++++++++++++ .../freqscanner/freqscanneraddrangedialog.ui | 5 +++++ 2 files changed, 21 insertions(+) diff --git a/plugins/channelrx/freqscanner/freqscanneraddrangedialog.cpp b/plugins/channelrx/freqscanner/freqscanneraddrangedialog.cpp index 124322fa3f..0a017d81f7 100644 --- a/plugins/channelrx/freqscanner/freqscanneraddrangedialog.cpp +++ b/plugins/channelrx/freqscanner/freqscanneraddrangedialog.cpp @@ -74,6 +74,18 @@ void FreqScannerAddRangeDialog::accept() }; m_frequencies.append(dabFreqs); } + else if (ui->preset->currentText() == "FRS-GMRS") + { + static const QList FRS_GMRSFreqs = { + 462562500, 462587500, 462612500, 462637500, // FRS1, FRS2, FRS3, FRS4 + 462662500, 462687500, 462712500, 467562500, // FRS5, FRS6, FRS7, FRS8 + 467587500, 467612500, 467637500, 467662500, // FRS9, FRS10, FRS11, FRS12 + 467687500, 467712500, 462550000, 462575000, // FRS13, FRS14, FRS15, FRS16 + 462600000, 462625000, 462650000, 462675000, // FRS17, FRS18, FRS19, FRS20 + 462700000, 462725000 // FRS21, FRS22 + }; + m_frequencies.append(FRS_GMRSFreqs); + } else { qint64 start = ui->start->getValue(); @@ -130,6 +142,10 @@ void FreqScannerAddRangeDialog::on_preset_currentTextChanged(const QString& text { enableManAdjust = false; } + else if (text == "FRS-GMRS") + { + enableManAdjust = false; + } ui->start->setEnabled(enableManAdjust); ui->stop->setEnabled(enableManAdjust); ui->step->setEnabled(enableManAdjust); diff --git a/plugins/channelrx/freqscanner/freqscanneraddrangedialog.ui b/plugins/channelrx/freqscanner/freqscanneraddrangedialog.ui index 98cd619a9e..0329c9e0db 100644 --- a/plugins/channelrx/freqscanner/freqscanneraddrangedialog.ui +++ b/plugins/channelrx/freqscanner/freqscanneraddrangedialog.ui @@ -193,6 +193,11 @@ Marine + + + FRS-GMRS + +