1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

Default to 1M S/s for "best" s/n.

This commit is contained in:
John Greb 2015-01-17 16:13:19 +00:00
parent cb4352a996
commit c917ddf058
3 changed files with 6 additions and 6 deletions

View File

@ -95,7 +95,7 @@ bool RTLSDRGui::handleMessage(Message* message)
void RTLSDRGui::displaySettings()
{
ui->centerFrequency->setValue(m_generalSettings.m_centerFrequency / 1000);
ui->samplerate->setValue(0);
ui->samplerate->setValue(1);
if(m_gains.size() > 0) {
int dist = abs(m_settings.m_gain - m_gains[0]);

View File

@ -143,7 +143,7 @@
</size>
</property>
<property name="text">
<string>288k</string>
<string>1024k</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>

View File

@ -27,14 +27,14 @@ MESSAGE_CLASS_DEFINITION(RTLSDRInput::MsgReportRTLSDR, Message)
RTLSDRInput::Settings::Settings() :
m_gain(0),
m_samplerate(288000)
m_samplerate(1024000)
{
}
void RTLSDRInput::Settings::resetToDefaults()
{
m_gain = 0;
m_samplerate = 288000;
m_samplerate = 1024000;
}
QByteArray RTLSDRInput::Settings::serialize() const
@ -111,8 +111,8 @@ bool RTLSDRInput::startInput(int device)
qWarning("RTLSDRInput open: %s %s, SN: %s", vendor, product, serial);
m_deviceDescription = QString("%1 (SN %2)").arg(product).arg(serial);
if((res = rtlsdr_set_sample_rate(m_dev, 288000)) < 0) {
qCritical("could not set sample rate: 288k S/s");
if((res = rtlsdr_set_sample_rate(m_dev, 1024000)) < 0) {
qCritical("could not set sample rate: 1024k S/s");
goto failed;
}