1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-09 01:14:58 -04:00

Add 128 and 256 decimation for AirspyHF

This commit is contained in:
Jon Beniston
2021-02-01 16:40:23 +00:00
parent 91f0794822
commit 43d71251bf
5 changed files with 874 additions and 7 deletions
@@ -292,7 +292,7 @@ void AirspyHFGui::on_sampleRate_currentIndexChanged(int index)
void AirspyHFGui::on_decim_currentIndexChanged(int index)
{
if ((index < 0) || (index > 6))
if ((index < 0) || (index > 8))
return;
m_settings.m_log2Decim = index;
sendSettings();
+15 -5
View File
@@ -395,6 +395,16 @@
<string>64</string>
</property>
</item>
<item>
<property name="text">
<string>128</string>
</property>
</item>
<item>
<property name="text">
<string>256</string>
</property>
</item>
</widget>
</item>
<item>
@@ -591,17 +601,17 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget>
<class>ValueDial</class>
<extends>QWidget</extends>
<header>gui/valuedial.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget>
<class>TransverterButton</class>
<extends>QPushButton</extends>
@@ -111,6 +111,12 @@ void AirspyHFWorker::callbackIQ(const float* buf, qint32 len)
case 6:
m_decimatorsIQ.decimate64_cen(&it, buf, len);
break;
case 7:
m_decimatorsIQ.decimate128_cen(&it, buf, len);
break;
case 8:
m_decimatorsIQ.decimate256_cen(&it, buf, len);
break;
default:
break;
}
@@ -145,6 +151,12 @@ void AirspyHFWorker::callbackQI(const float* buf, qint32 len)
case 6:
m_decimatorsQI.decimate64_cen(&it, buf, len);
break;
case 7:
m_decimatorsQI.decimate128_cen(&it, buf, len);
break;
case 8:
m_decimatorsQI.decimate256_cen(&it, buf, len);
break;
default:
break;
}
+1 -1
View File
@@ -71,7 +71,7 @@ Although the combo box is there to present a choice of sample rates at present t
<h3>8: Decimation factor</h3>
The I/Q stream from the AirspyHF to host is downsampled by a power of two before being sent to the passband. Possible values are increasing powers of two: 1 (no decimation), 2, 4, 8, 16, 32, 64. When using audio channel plugins (AM, DSD, NFM, SSB...) please make sure that the sample rate is not less than the audio sample rate.
The I/Q stream from the AirspyHF to host is downsampled by a power of two before being sent to the passband. Possible values are increasing powers of two: 1 (no decimation), 2, 4, 8, 16, 32, 64, 128, 256. When using audio channel plugins (AM, DSD, NFM, SSB...) please make sure that the sample rate is not less than the audio sample rate.
<h3>9: Transverter mode open dialog</h3>