mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
HackRF input: continuous sample rate setting
This commit is contained in:
parent
ad6b33c280
commit
813d79a115
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
sdrangel (3.3.3-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* HackRF, BladeRF, RTLSDR plugins: continuous sample rate setting
|
||||||
|
|
||||||
|
-- Edouard Griffiths, F4EXB <f4exb06@gmail.com> Sun, 16 Apr 2017 23:14:18 +0100
|
||||||
|
|
||||||
sdrangel (3.3.2-1) unstable; urgency=medium
|
sdrangel (3.3.2-1) unstable; urgency=medium
|
||||||
|
|
||||||
* ATV plugins: added 405 lines, 20 and 16 FPS modes
|
* ATV plugins: added 405 lines, 20 and 16 FPS modes
|
||||||
|
@ -287,11 +287,11 @@ bool HackRFInput::applySettings(const HackRFInputSettings& settings, bool force)
|
|||||||
|
|
||||||
if (rc != HACKRF_SUCCESS)
|
if (rc != HACKRF_SUCCESS)
|
||||||
{
|
{
|
||||||
qCritical("HackRFInput::applySettings: could not set sample rate TO %d kS/s: %s", m_settings.m_devSampleRate, hackrf_error_name(rc));
|
qCritical("HackRFInput::applySettings: could not set sample rate TO %llu S/s: %s", m_settings.m_devSampleRate, hackrf_error_name(rc));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
qDebug("HackRFInput::applySettings: sample rate set to %d kS/s", m_settings.m_devSampleRate);
|
qDebug("HackRFInput::applySettings: sample rate set to %llu S/s", m_settings.m_devSampleRate);
|
||||||
m_hackRFThread->setSamplerate(m_settings.m_devSampleRate);
|
m_hackRFThread->setSamplerate(m_settings.m_devSampleRate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -469,8 +469,8 @@ bool HackRFInput::applySettings(const HackRFInputSettings& settings, bool force)
|
|||||||
|
|
||||||
qDebug() << "HackRFInput::applySettings: center freq: " << m_settings.m_centerFrequency << " Hz"
|
qDebug() << "HackRFInput::applySettings: center freq: " << m_settings.m_centerFrequency << " Hz"
|
||||||
<< " device center freq: " << deviceCenterFrequency << " Hz"
|
<< " device center freq: " << deviceCenterFrequency << " Hz"
|
||||||
<< " device sample rate: " << m_settings.m_devSampleRate << "Hz"
|
<< " device sample rate: " << m_settings.m_devSampleRate << "S/s"
|
||||||
<< " Actual sample rate: " << m_settings.m_devSampleRate/(1<<m_settings.m_log2Decim) << "Hz";
|
<< " Actual sample rate: " << m_settings.m_devSampleRate/(1<<m_settings.m_log2Decim) << "S/s";
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,9 @@ HackRFInputGui::HackRFInputGui(DeviceSourceAPI *deviceAPI, QWidget* parent) :
|
|||||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::ReverseGold));
|
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::ReverseGold));
|
||||||
ui->centerFrequency->setValueRange(7, 0U, 7250000U);
|
ui->centerFrequency->setValueRange(7, 0U, 7250000U);
|
||||||
|
|
||||||
|
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::ReverseGreenYellow));
|
||||||
|
ui->sampleRate->setValueRange(8, 2400000U, 20000000U);
|
||||||
|
|
||||||
connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware()));
|
connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware()));
|
||||||
connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus()));
|
connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus()));
|
||||||
m_statusTimer.start(500);
|
m_statusTimer.start(500);
|
||||||
@ -51,7 +54,6 @@ HackRFInputGui::HackRFInputGui(DeviceSourceAPI *deviceAPI, QWidget* parent) :
|
|||||||
|
|
||||||
m_sampleSource = new HackRFInput(m_deviceAPI);
|
m_sampleSource = new HackRFInput(m_deviceAPI);
|
||||||
|
|
||||||
displaySampleRates();
|
|
||||||
displayBandwidths();
|
displayBandwidths();
|
||||||
|
|
||||||
m_deviceAPI->setSource(m_sampleSource);
|
m_deviceAPI->setSource(m_sampleSource);
|
||||||
@ -165,7 +167,7 @@ void HackRFInputGui::updateSampleRateAndFrequency()
|
|||||||
{
|
{
|
||||||
m_deviceAPI->getSpectrum()->setSampleRate(m_sampleRate);
|
m_deviceAPI->getSpectrum()->setSampleRate(m_sampleRate);
|
||||||
m_deviceAPI->getSpectrum()->setCenterFrequency(m_deviceCenterFrequency);
|
m_deviceAPI->getSpectrum()->setCenterFrequency(m_deviceCenterFrequency);
|
||||||
ui->deviceRateText->setText(tr("%1k").arg((float)m_sampleRate / 1000));
|
ui->deviceRateText->setText(QString("%1k").arg(QString::number(m_sampleRate/1000.0, 'f', 0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void HackRFInputGui::displaySettings()
|
void HackRFInputGui::displaySettings()
|
||||||
@ -178,8 +180,7 @@ void HackRFInputGui::displaySettings()
|
|||||||
ui->dcOffset->setChecked(m_settings.m_dcBlock);
|
ui->dcOffset->setChecked(m_settings.m_dcBlock);
|
||||||
ui->iqImbalance->setChecked(m_settings.m_iqCorrection);
|
ui->iqImbalance->setChecked(m_settings.m_iqCorrection);
|
||||||
|
|
||||||
unsigned int sampleRateIndex = HackRFSampleRates::getRateIndex(m_settings.m_devSampleRate);
|
ui->sampleRate->setValue(m_settings.m_devSampleRate);
|
||||||
ui->sampleRate->setCurrentIndex(sampleRateIndex);
|
|
||||||
|
|
||||||
ui->biasT->setChecked(m_settings.m_biasT);
|
ui->biasT->setChecked(m_settings.m_biasT);
|
||||||
|
|
||||||
@ -198,29 +199,6 @@ void HackRFInputGui::displaySettings()
|
|||||||
ui->vga->setValue(m_settings.m_vgaGain);
|
ui->vga->setValue(m_settings.m_vgaGain);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HackRFInputGui::displaySampleRates()
|
|
||||||
{
|
|
||||||
int savedIndex = HackRFSampleRates::getRateIndex(m_settings.m_devSampleRate);
|
|
||||||
ui->sampleRate->blockSignals(true);
|
|
||||||
ui->sampleRate->clear();
|
|
||||||
|
|
||||||
for (int i = 0; i < HackRFSampleRates::m_nb_rates; i++)
|
|
||||||
{
|
|
||||||
ui->sampleRate->addItem(QString("%1").arg(QString::number(HackRFSampleRates::m_rates[i] / 1000.0f, 'f', 0)));
|
|
||||||
}
|
|
||||||
|
|
||||||
ui->sampleRate->blockSignals(false);
|
|
||||||
|
|
||||||
if (savedIndex < HackRFSampleRates::m_nb_rates)
|
|
||||||
{
|
|
||||||
ui->sampleRate->setCurrentIndex(savedIndex);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ui->sampleRate->setCurrentIndex((int) HackRFSampleRates::m_nb_rates-1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void HackRFInputGui::displayBandwidths()
|
void HackRFInputGui::displayBandwidths()
|
||||||
{
|
{
|
||||||
int savedIndex = HackRFBandwidths::getBandwidthIndex(m_settings.m_bandwidth/1000);
|
int savedIndex = HackRFBandwidths::getBandwidthIndex(m_settings.m_bandwidth/1000);
|
||||||
@ -250,12 +228,6 @@ void HackRFInputGui::sendSettings()
|
|||||||
m_updateTimer.start(100);
|
m_updateTimer.start(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HackRFInputGui::on_centerFrequency_changed(quint64 value)
|
|
||||||
{
|
|
||||||
m_settings.m_centerFrequency = value * 1000;
|
|
||||||
sendSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void HackRFInputGui::on_LOppm_valueChanged(int value)
|
void HackRFInputGui::on_LOppm_valueChanged(int value)
|
||||||
{
|
{
|
||||||
m_settings.m_LOppmTenths = value;
|
m_settings.m_LOppmTenths = value;
|
||||||
@ -277,9 +249,9 @@ void HackRFInputGui::on_iqImbalance_toggled(bool checked)
|
|||||||
|
|
||||||
void HackRFInputGui::on_sampleRate_currentIndexChanged(int index)
|
void HackRFInputGui::on_sampleRate_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
int newrate = HackRFSampleRates::getRate(index);
|
// int newrate = HackRFSampleRates::getRate(index);
|
||||||
m_settings.m_devSampleRate = newrate;
|
// m_settings.m_devOldSampleRate = newrate;
|
||||||
sendSettings();
|
// sendSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HackRFInputGui::on_bbFilter_currentIndexChanged(int index)
|
void HackRFInputGui::on_bbFilter_currentIndexChanged(int index)
|
||||||
@ -301,6 +273,18 @@ void HackRFInputGui::on_lnaExt_stateChanged(int state)
|
|||||||
sendSettings();
|
sendSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HackRFInputGui::on_centerFrequency_changed(quint64 value)
|
||||||
|
{
|
||||||
|
m_settings.m_centerFrequency = value * 1000;
|
||||||
|
sendSettings();
|
||||||
|
}
|
||||||
|
|
||||||
|
void HackRFInputGui::on_newSampleRate_changed(quint64 value)
|
||||||
|
{
|
||||||
|
m_settings.m_devSampleRate = value;
|
||||||
|
sendSettings();
|
||||||
|
}
|
||||||
|
|
||||||
void HackRFInputGui::on_decim_currentIndexChanged(int index)
|
void HackRFInputGui::on_decim_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
if ((index <0) || (index > 6))
|
if ((index <0) || (index > 6))
|
||||||
|
@ -71,7 +71,6 @@ private:
|
|||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
|
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
void displaySampleRates();
|
|
||||||
void displayBandwidths();
|
void displayBandwidths();
|
||||||
void sendSettings();
|
void sendSettings();
|
||||||
void updateSampleRateAndFrequency();
|
void updateSampleRateAndFrequency();
|
||||||
@ -79,6 +78,7 @@ private:
|
|||||||
private slots:
|
private slots:
|
||||||
void handleDSPMessages();
|
void handleDSPMessages();
|
||||||
void on_centerFrequency_changed(quint64 value);
|
void on_centerFrequency_changed(quint64 value);
|
||||||
|
void on_newSampleRate_changed(quint64 value);
|
||||||
void on_LOppm_valueChanged(int value);
|
void on_LOppm_valueChanged(int value);
|
||||||
void on_dcOffset_toggled(bool checked);
|
void on_dcOffset_toggled(bool checked);
|
||||||
void on_iqImbalance_toggled(bool checked);
|
void on_iqImbalance_toggled(bool checked);
|
||||||
|
@ -2,24 +2,16 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>HackRFInputGui</class>
|
<class>HackRFInputGui</class>
|
||||||
<widget class="QWidget" name="HackRFInputGui">
|
<widget class="QWidget" name="HackRFInputGui">
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>260</width>
|
|
||||||
<height>210</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>260</width>
|
<width>310</width>
|
||||||
<height>210</height>
|
<height>300</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
@ -49,6 +41,9 @@
|
|||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_freq">
|
<layout class="QHBoxLayout" name="horizontalLayout_freq">
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="deviceUILayout">
|
<layout class="QVBoxLayout" name="deviceUILayout">
|
||||||
<item>
|
<item>
|
||||||
@ -118,16 +113,10 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="ValueDial" name="centerFrequency" native="true">
|
<widget class="ValueDial" name="centerFrequency" native="true">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>32</width>
|
||||||
<height>16</height>
|
<height>50</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
@ -171,6 +160,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout_LOppm">
|
<layout class="QGridLayout" name="gridLayout_LOppm">
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>3</number>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
@ -214,6 +209,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout_corr">
|
<layout class="QGridLayout" name="gridLayout_corr">
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="ButtonSwitch" name="dcOffset">
|
<widget class="ButtonSwitch" name="dcOffset">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
@ -290,11 +291,8 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout_samplerate">
|
<layout class="QHBoxLayout" name="sampleRateLayout">
|
||||||
<property name="spacing">
|
<item>
|
||||||
<number>3</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="sampleRateLabel">
|
<widget class="QLabel" name="sampleRateLabel">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
|
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
|
||||||
@ -302,40 +300,52 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>16</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Rate</string>
|
<string>SR</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item>
|
||||||
<widget class="QComboBox" name="sampleRate">
|
<widget class="ValueDial" name="sampleRate" native="true">
|
||||||
<property name="maximumSize">
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>70</width>
|
<width>32</width>
|
||||||
<height>16777215</height>
|
<height>16</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Monospace</family>
|
||||||
|
<pointsize>12</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Device sample rate</string>
|
<string>Device sample rate</string>
|
||||||
</property>
|
</property>
|
||||||
|
<zorder>sampleRateLabel</zorder>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="4">
|
<item>
|
||||||
<widget class="QLabel" name="bbFiltLabel">
|
<widget class="QLabel" name="rateUnits">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>BBF</string>
|
<string>S/s</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="5">
|
<item>
|
||||||
<widget class="QComboBox" name="bbFilter">
|
<spacer name="horizontalSpacer_4">
|
||||||
<property name="toolTip">
|
|
||||||
<string>RF bandpas filter</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="3">
|
|
||||||
<spacer name="horizontalSpacer">
|
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
@ -347,10 +357,17 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="2">
|
<item>
|
||||||
<widget class="QLabel" name="sampleRateUnits">
|
<widget class="QLabel" name="bbFiltLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>kS/s</string>
|
<string>BBF</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="bbFilter">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>RF bandpas filter</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -358,6 +375,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout_decim" columnstretch="0,0,0,0,0">
|
<layout class="QGridLayout" name="gridLayout_decim" columnstretch="0,0,0,0,0">
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>3</number>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
@ -478,6 +501,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout_lna">
|
<layout class="QGridLayout" name="gridLayout_lna">
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>3</number>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
@ -539,6 +568,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout_vga" columnstretch="0,0,0">
|
<layout class="QGridLayout" name="gridLayout_vga" columnstretch="0,0,0">
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>2</number>
|
||||||
|
</property>
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>3</number>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
@ -592,7 +624,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="padLayout">
|
<layout class="QHBoxLayout" name="padLayout">
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticaPadlSpacer">
|
<spacer name="verticalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
const PluginDescriptor HackRFInputPlugin::m_pluginDescriptor = {
|
const PluginDescriptor HackRFInputPlugin::m_pluginDescriptor = {
|
||||||
QString("HackRF Input"),
|
QString("HackRF Input"),
|
||||||
QString("3.3.0"),
|
QString("3.3.3"),
|
||||||
QString("(c) Edouard Griffiths, F4EXB"),
|
QString("(c) Edouard Griffiths, F4EXB"),
|
||||||
QString("https://github.com/f4exb/sdrangel"),
|
QString("https://github.com/f4exb/sdrangel"),
|
||||||
true,
|
true,
|
||||||
|
@ -29,7 +29,7 @@ void HackRFInputSettings::resetToDefaults()
|
|||||||
{
|
{
|
||||||
m_centerFrequency = 435000 * 1000;
|
m_centerFrequency = 435000 * 1000;
|
||||||
m_LOppmTenths = 0;
|
m_LOppmTenths = 0;
|
||||||
m_devSampleRate = 2400000;
|
m_devOldSampleRate = 2400000;
|
||||||
m_biasT = false;
|
m_biasT = false;
|
||||||
m_log2Decim = 0;
|
m_log2Decim = 0;
|
||||||
m_fcPos = FC_POS_CENTER;
|
m_fcPos = FC_POS_CENTER;
|
||||||
@ -46,7 +46,7 @@ QByteArray HackRFInputSettings::serialize() const
|
|||||||
SimpleSerializer s(1);
|
SimpleSerializer s(1);
|
||||||
|
|
||||||
s.writeS32(1, m_LOppmTenths);
|
s.writeS32(1, m_LOppmTenths);
|
||||||
s.writeU32(2, m_devSampleRate);
|
s.writeU32(2, m_devOldSampleRate);
|
||||||
s.writeBool(3, m_biasT);
|
s.writeBool(3, m_biasT);
|
||||||
s.writeU32(4, m_log2Decim);
|
s.writeU32(4, m_log2Decim);
|
||||||
s.writeS32(5, m_fcPos);
|
s.writeS32(5, m_fcPos);
|
||||||
@ -56,6 +56,7 @@ QByteArray HackRFInputSettings::serialize() const
|
|||||||
s.writeU32(9, m_vgaGain);
|
s.writeU32(9, m_vgaGain);
|
||||||
s.writeBool(10, m_dcBlock);
|
s.writeBool(10, m_dcBlock);
|
||||||
s.writeBool(11, m_iqCorrection);
|
s.writeBool(11, m_iqCorrection);
|
||||||
|
s.writeU64(12, m_devSampleRate);
|
||||||
|
|
||||||
return s.final();
|
return s.final();
|
||||||
}
|
}
|
||||||
@ -75,7 +76,7 @@ bool HackRFInputSettings::deserialize(const QByteArray& data)
|
|||||||
int intval;
|
int intval;
|
||||||
|
|
||||||
d.readS32(1, &m_LOppmTenths, 0);
|
d.readS32(1, &m_LOppmTenths, 0);
|
||||||
d.readU32(2, &m_devSampleRate, 2400000);
|
d.readU32(2, &m_devOldSampleRate, 2400000);
|
||||||
d.readBool(3, &m_biasT, false);
|
d.readBool(3, &m_biasT, false);
|
||||||
d.readU32(4, &m_log2Decim, 0);
|
d.readU32(4, &m_log2Decim, 0);
|
||||||
d.readS32(5, &intval, 0);
|
d.readS32(5, &intval, 0);
|
||||||
@ -86,6 +87,7 @@ bool HackRFInputSettings::deserialize(const QByteArray& data)
|
|||||||
d.readU32(9, &m_vgaGain, 16);
|
d.readU32(9, &m_vgaGain, 16);
|
||||||
d.readBool(10, &m_dcBlock, false);
|
d.readBool(10, &m_dcBlock, false);
|
||||||
d.readBool(11, &m_iqCorrection, false);
|
d.readBool(11, &m_iqCorrection, false);
|
||||||
|
d.readU64(12, &m_devSampleRate, 2400000U);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -28,12 +28,13 @@ struct HackRFInputSettings {
|
|||||||
|
|
||||||
quint64 m_centerFrequency;
|
quint64 m_centerFrequency;
|
||||||
qint32 m_LOppmTenths;
|
qint32 m_LOppmTenths;
|
||||||
quint32 m_devSampleRate;
|
quint32 m_devOldSampleRate;
|
||||||
quint32 m_bandwidth;
|
quint32 m_bandwidth;
|
||||||
quint32 m_lnaGain;
|
quint32 m_lnaGain;
|
||||||
quint32 m_vgaGain;
|
quint32 m_vgaGain;
|
||||||
quint32 m_log2Decim;
|
quint32 m_log2Decim;
|
||||||
fcPos_t m_fcPos;
|
fcPos_t m_fcPos;
|
||||||
|
quint64 m_devSampleRate;
|
||||||
bool m_biasT;
|
bool m_biasT;
|
||||||
bool m_lnaExt;
|
bool m_lnaExt;
|
||||||
bool m_dcBlock;
|
bool m_dcBlock;
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><html><head/><body><p>Version 3.3.2 - Copyright (C) 2015-2017 Edouard Griffiths, F4EXB. </p><p>Code at <a href="https://github.com/f4exb/sdrangel"><span style=" text-decoration: underline; color:#0000ff;">https://github.com/f4exb/sdrangel</span></a></p><p>Many thanks to the original developers:</p><p>The osmocom developer team - especially horizon, Hoernchen &amp; tnt.</p><p>Christian Daniel from maintech GmbH.</p><p>John Greb (hexameron) for the contributions in <a href="https://github.com/hexameron/rtl-sdrangelove"><span style=" text-decoration: underline; color:#0000ff;">RTL-SDRangelove</span></a></p><p>The following rules apply to the SDRangel main application and libsdrbase:<br/>This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You should have received a copy of the GNU General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/"><span style=" text-decoration: underline; color:#0000ff;">http://www.gnu.org/licenses/</span></a>.</p><p>For the license of installed plugins, look into the plugin list.</p></body></html></string>
|
<string><html><head/><body><p>Version 3.3.3 - Copyright (C) 2015-2017 Edouard Griffiths, F4EXB. </p><p>Code at <a href="https://github.com/f4exb/sdrangel"><span style=" text-decoration: underline; color:#0000ff;">https://github.com/f4exb/sdrangel</span></a></p><p>Many thanks to the original developers:</p><p>The osmocom developer team - especially horizon, Hoernchen &amp; tnt.</p><p>Christian Daniel from maintech GmbH.</p><p>John Greb (hexameron) for the contributions in <a href="https://github.com/hexameron/rtl-sdrangelove"><span style=" text-decoration: underline; color:#0000ff;">RTL-SDRangelove</span></a></p><p>The following rules apply to the SDRangel main application and libsdrbase:<br/>This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You should have received a copy of the GNU General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/"><span style=" text-decoration: underline; color:#0000ff;">http://www.gnu.org/licenses/</span></a>.</p><p>For the license of installed plugins, look into the plugin list.</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
@ -453,9 +453,9 @@ void MainWindow::createStatusBar()
|
|||||||
{
|
{
|
||||||
QString qtVersionStr = QString("Qt %1 ").arg(QT_VERSION_STR);
|
QString qtVersionStr = QString("Qt %1 ").arg(QT_VERSION_STR);
|
||||||
#if QT_VERSION >= 0x050400
|
#if QT_VERSION >= 0x050400
|
||||||
m_showSystemWidget = new QLabel("SDRangel v3.3.2 " + qtVersionStr + QSysInfo::prettyProductName(), this);
|
m_showSystemWidget = new QLabel("SDRangel v3.3.3 " + qtVersionStr + QSysInfo::prettyProductName(), this);
|
||||||
#else
|
#else
|
||||||
m_showSystemWidget = new QLabel("SDRangel v3.3.2 " + qtVersionStr, this);
|
m_showSystemWidget = new QLabel("SDRangel v3.3.3 " + qtVersionStr, this);
|
||||||
#endif
|
#endif
|
||||||
statusBar()->addPermanentWidget(m_showSystemWidget);
|
statusBar()->addPermanentWidget(m_showSystemWidget);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user