From 7336cda7bc01b8a818cdb493a5e77ce612a50f5b Mon Sep 17 00:00:00 2001 From: srcejon Date: Fri, 21 Jun 2024 10:24:36 +0100 Subject: [PATCH] FreqScanner: Add HF ATC channels preset. --- .../freqscanner/freqscanneraddrangedialog.cpp | 17 +++++++++++++++++ .../freqscanner/freqscanneraddrangedialog.ui | 6 +++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/plugins/channelrx/freqscanner/freqscanneraddrangedialog.cpp b/plugins/channelrx/freqscanner/freqscanneraddrangedialog.cpp index 254199885..e28b21956 100644 --- a/plugins/channelrx/freqscanner/freqscanneraddrangedialog.cpp +++ b/plugins/channelrx/freqscanner/freqscanneraddrangedialog.cpp @@ -91,6 +91,19 @@ void FreqScannerAddRangeDialog::accept() }; m_frequencies.append(FRS_GMRSFreqs); } + else if (ui->preset->currentText() == "HF ATC") + { + static const QList hfFreqs = { + 2872000, 2890000, 2899000, 2971000, + 3016000, 3446000, 3476000, 3491000, + 4675000, 5598000, 5616000, 5649000, + 6547000, 6595000, 6622000, 6667000, + 8831000, 8864000, 8879000, 8891000, + 8906000, 10021000, 11336000, 13291000, + 13306000, 17946000 + }; + m_frequencies.append(hfFreqs); + } else { qint64 start = ui->start->getValue(); @@ -151,6 +164,10 @@ void FreqScannerAddRangeDialog::on_preset_currentTextChanged(const QString& text { enableManAdjust = false; } + else if (text == "HF ATC") + { + 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 0329c9e0d..44532692e 100644 --- a/plugins/channelrx/freqscanner/freqscanneraddrangedialog.ui +++ b/plugins/channelrx/freqscanner/freqscanneraddrangedialog.ui @@ -198,6 +198,11 @@ FRS-GMRS + + + HF ATC + + @@ -232,7 +237,6 @@ -