Skip to content

Commit

Permalink
Add some sample rates for PlutoSDR
Browse files Browse the repository at this point in the history
  • Loading branch information
csete committed Aug 17, 2017
1 parent 75c8ee7 commit 7c3068c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/news.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
2.7: TBD...

NEW: PlutoSDR integration.
NEW: Restore filter low cut and high cut between sessions.
NEW: Restore FM parameters between sessions.
NEW: Restore remote control state between sessions.
Expand Down
19 changes: 19 additions & 0 deletions src/qtgui/ioconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,25 @@ void CIoConfig::updateInputSampleRates(int rate)
else
ui->inSrCombo->setCurrentIndex(4); // select 5 MHz
}
else if (ui->inDevEdit->text().contains("plutosdr"))
{
ui->inSrCombo->addItem("600000");
ui->inSrCombo->addItem("1000000");
ui->inSrCombo->addItem("1500000");
ui->inSrCombo->addItem("2000000");
ui->inSrCombo->addItem("3000000");

This comment has been minimized.

Copy link
@bogdanr

bogdanr Aug 25, 2017

Why not 4 MSPS instead of 3?
ADALM-PLUTO supports up to 4 without dropping frames.

This comment has been minimized.

Copy link
@csete

csete Aug 25, 2017

Author Collaborator

Why 4 instead of X?

This comment has been minimized.

Copy link
@csete

csete Aug 25, 2017

Author Collaborator

In case you are not aware, this is just an arbitrary list of sample rates presented to the user. The user can enter whatever rate they want.

ui->inSrCombo->addItem("6000000");
ui->inSrCombo->addItem("16000000");
ui->inSrCombo->addItem("20000000");
ui->inSrCombo->addItem("56000000");
if (rate > 0)
{
ui->inSrCombo->insertItem(0, QString("%1").arg(rate));
ui->inSrCombo->setCurrentIndex(0);
}
else
ui->inSrCombo->setCurrentIndex(2); // select 2 MHz
}
else
{
if (rate > 0)
Expand Down

0 comments on commit 7c3068c

Please sign in to comment.