mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-04 14:17:50 -04:00
HackRF input: link Tx frequency button and setting
This commit is contained in:
parent
258515b5de
commit
5dac0b6712
@ -432,6 +432,8 @@ bool HackRFInput::applySettings(const HackRFInputSettings& settings, bool force)
|
|||||||
m_deviceAPI->getDeviceInputMessageQueue()->push(notif);
|
m_deviceAPI->getDeviceInputMessageQueue()->push(notif);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_settings.m_linkTxFrequency = settings.m_linkTxFrequency;
|
||||||
|
|
||||||
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 << "S/s"
|
<< " device sample rate: " << m_settings.m_devSampleRate << "S/s"
|
||||||
|
@ -250,6 +250,12 @@ void HackRFInputGui::on_iqImbalance_toggled(bool checked)
|
|||||||
sendSettings();
|
sendSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HackRFInputGui::on_linkTxFreq_toggled(bool checked)
|
||||||
|
{
|
||||||
|
m_settings.m_linkTxFrequency = checked;
|
||||||
|
sendSettings();
|
||||||
|
}
|
||||||
|
|
||||||
void HackRFInputGui::on_bbFilter_currentIndexChanged(int index)
|
void HackRFInputGui::on_bbFilter_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
int newBandwidth = HackRFBandwidths::getBandwidth(index);
|
int newBandwidth = HackRFBandwidths::getBandwidth(index);
|
||||||
|
@ -83,6 +83,7 @@ private slots:
|
|||||||
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);
|
||||||
|
void on_linkTxFreq_toggled(bool checked);
|
||||||
void on_biasT_stateChanged(int state);
|
void on_biasT_stateChanged(int state);
|
||||||
void on_decim_currentIndexChanged(int index);
|
void on_decim_currentIndexChanged(int index);
|
||||||
void on_fcPos_currentIndexChanged(int index);
|
void on_fcPos_currentIndexChanged(int index);
|
||||||
|
@ -253,7 +253,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="4">
|
<item row="0" column="5">
|
||||||
<widget class="QCheckBox" name="biasT">
|
<widget class="QCheckBox" name="biasT">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Activate antenna bias tee</string>
|
<string>Activate antenna bias tee</string>
|
||||||
@ -266,7 +266,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="5">
|
<item row="0" column="6">
|
||||||
<widget class="QCheckBox" name="lnaExt">
|
<widget class="QCheckBox" name="lnaExt">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Extra LNA +14dB</string>
|
<string>Extra LNA +14dB</string>
|
||||||
@ -292,6 +292,20 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="4">
|
||||||
|
<widget class="ButtonSwitch" name="linkTxFreq">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Toggle Tx frequency link</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>...</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="../../../sdrbase/resources/res.qrc">
|
||||||
|
<normaloff>:/link.png</normaloff>:/link.png</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
@ -39,6 +39,7 @@ void HackRFInputSettings::resetToDefaults()
|
|||||||
m_dcBlock = false;
|
m_dcBlock = false;
|
||||||
m_iqCorrection = false;
|
m_iqCorrection = false;
|
||||||
m_devSampleRate = 2400000;
|
m_devSampleRate = 2400000;
|
||||||
|
m_linkTxFrequency = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
QByteArray HackRFInputSettings::serialize() const
|
QByteArray HackRFInputSettings::serialize() const
|
||||||
@ -56,6 +57,7 @@ QByteArray HackRFInputSettings::serialize() const
|
|||||||
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);
|
s.writeU64(12, m_devSampleRate);
|
||||||
|
s.writeBool(13, m_linkTxFrequency);
|
||||||
|
|
||||||
return s.final();
|
return s.final();
|
||||||
}
|
}
|
||||||
@ -86,6 +88,7 @@ bool HackRFInputSettings::deserialize(const QByteArray& data)
|
|||||||
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);
|
d.readU64(12, &m_devSampleRate, 2400000U);
|
||||||
|
d.readBool(11, &m_linkTxFrequency, false);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,7 @@ struct HackRFInputSettings {
|
|||||||
bool m_lnaExt;
|
bool m_lnaExt;
|
||||||
bool m_dcBlock;
|
bool m_dcBlock;
|
||||||
bool m_iqCorrection;
|
bool m_iqCorrection;
|
||||||
|
bool m_linkTxFrequency;
|
||||||
|
|
||||||
HackRFInputSettings();
|
HackRFInputSettings();
|
||||||
void resetToDefaults();
|
void resetToDefaults();
|
||||||
|
BIN
sdrbase/resources/link.png
Normal file
BIN
sdrbase/resources/link.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 612 B |
@ -78,5 +78,6 @@
|
|||||||
<file>filter_bandpass.png</file>
|
<file>filter_bandpass.png</file>
|
||||||
<file>stream.png</file>
|
<file>stream.png</file>
|
||||||
<file>antenna.png</file>
|
<file>antenna.png</file>
|
||||||
|
<file>link.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user