Skip to content

Commit

Permalink
FreqScanner: Add HF ATC channels preset.
Browse files Browse the repository at this point in the history
  • Loading branch information
srcejon committed Jun 21, 2024
1 parent 28cc7c3 commit 7336cda
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
17 changes: 17 additions & 0 deletions plugins/channelrx/freqscanner/freqscanneraddrangedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,19 @@ void FreqScannerAddRangeDialog::accept()
};
m_frequencies.append(FRS_GMRSFreqs);
}
else if (ui->preset->currentText() == "HF ATC")
{
static const QList<qint64> 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();
Expand Down Expand Up @@ -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);
Expand Down
6 changes: 5 additions & 1 deletion plugins/channelrx/freqscanner/freqscanneraddrangedialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@
<string>FRS-GMRS</string>
</property>
</item>
<item>
<property name="text">
<string>HF ATC</string>
</property>
</item>
</widget>
</item>
<item row="0" column="0">
Expand Down Expand Up @@ -232,7 +237,6 @@
</customwidgets>
<resources>
<include location="../../../sdrgui/resources/res.qrc"/>
<include location="../demodapt/icons.qrc"/>
</resources>
<connections>
<connection>
Expand Down

0 comments on commit 7336cda

Please sign in to comment.