Skip to content

Commit

Permalink
Add FRS-GMRS presets
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-n00b committed Nov 18, 2023
1 parent 25a45e3 commit c1e20e4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugins/channelrx/freqscanner/freqscanneraddrangedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ void FreqScannerAddRangeDialog::accept()
};
m_frequencies.append(dabFreqs);
}
else if (ui->preset->currentText() == "FRS-GMRS")
{
static const QList<qint64> 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();
Expand Down Expand Up @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions plugins/channelrx/freqscanner/freqscanneraddrangedialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@
<string>Marine</string>
</property>
</item>
<item>
<property name="text">
<string>FRS-GMRS</string>
</property>
</item>
</widget>
</item>
<item row="0" column="0">
Expand Down

0 comments on commit c1e20e4

Please sign in to comment.