1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-09-04 22:27:53 -04:00

BladeRF plugin: changed sample rate and bandwidth unit displays. New 2000 kS/s rate

This commit is contained in:
f4exb 2016-03-31 19:48:06 +02:00
parent 68ed0013ea
commit 007aaaf749
3 changed files with 5 additions and 5 deletions

View File

@ -356,8 +356,8 @@ unsigned int BladerfGui::getXb200Index(bool xb_200, bladerf_xb200_path xb200Path
} }
} }
unsigned int BladerfSampleRates::m_rates[] = {1536, 1600, 2304, 2400, 3072, 3200, 4608, 4800, 6144, 7680, 9216, 9600, 10752, 12288, 18432, 19200, 24576, 30720, 36864, 39936}; unsigned int BladerfSampleRates::m_rates[] = {1536, 1600, 2000, 2304, 2400, 3072, 3200, 4608, 4800, 6144, 7680, 9216, 9600, 10752, 12288, 18432, 19200, 24576, 30720, 36864, 39936};
unsigned int BladerfSampleRates::m_nb_rates = 20; unsigned int BladerfSampleRates::m_nb_rates = 21;
unsigned int BladerfSampleRates::getRate(unsigned int rate_index) unsigned int BladerfSampleRates::getRate(unsigned int rate_index)
{ {

View File

@ -81,7 +81,7 @@ public:
static unsigned int getRateIndex(unsigned int rate); static unsigned int getRateIndex(unsigned int rate);
static unsigned int getNbRates(); static unsigned int getNbRates();
private: private:
static unsigned int m_rates[20]; static unsigned int m_rates[21];
static unsigned int m_nb_rates; static unsigned int m_nb_rates;
}; };

View File

@ -255,7 +255,7 @@
<item row="0" column="2"> <item row="0" column="2">
<widget class="QLabel" name="samplerateUnit"> <widget class="QLabel" name="samplerateUnit">
<property name="text"> <property name="text">
<string>k</string> <string>kS/s</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -301,7 +301,7 @@
<item row="0" column="6"> <item row="0" column="6">
<widget class="QLabel" name="bandwidthUnit"> <widget class="QLabel" name="bandwidthUnit">
<property name="text"> <property name="text">
<string>k</string> <string>kHz</string>
</property> </property>
</widget> </widget>
</item> </item>