mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-31 13:02:27 -04:00
Compare commits
No commits in common. "8ff41d60fd9157ed6cf99b0a502a9d95e739ee45" and "81bae39a2296468038ab0621692d7ba6a60dcb94" have entirely different histories.
8ff41d60fd
...
81bae39a22
@ -807,9 +807,7 @@ bool LimeSDROutput::applySettings(const LimeSDROutputSettings& settings, const Q
|
||||
if (settingsKeys.contains("devSampleRate")
|
||||
|| settingsKeys.contains("log2HardInterp") || force)
|
||||
{
|
||||
//forwardChangeAllDSP = true; //m_settings.m_devSampleRate != settings.m_devSampleRate;
|
||||
forwardChangeTxDSP = m_settings.m_log2HardInterp != settings.m_log2HardInterp;
|
||||
forwardChangeAllDSP = m_settings.m_devSampleRate != settings.m_devSampleRate;
|
||||
forwardChangeAllDSP = true; //m_settings.m_devSampleRate != settings.m_devSampleRate;
|
||||
|
||||
if (m_deviceShared.m_deviceParams->getDevice())
|
||||
{
|
||||
|
@ -969,14 +969,8 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, const QLi
|
||||
if (settingsKeys.contains("devSampleRate")
|
||||
|| settingsKeys.contains("log2HardDecim") || force)
|
||||
{
|
||||
|
||||
if(!settings.m_splitFreq) {
|
||||
forwardChangeAllDSP = true; //m_settings.m_devSampleRate != settings.m_devSampleRate;
|
||||
qDebug() << "LimeSDRInput::applySettings: Split is false, val:" << settings.m_splitFreq;
|
||||
}else{
|
||||
forwardChangeRxDSP = m_settings.m_log2HardDecim != settings.m_log2HardDecim;
|
||||
forwardChangeAllDSP = m_settings.m_devSampleRate != settings.m_devSampleRate;
|
||||
}
|
||||
forwardChangeAllDSP = true; //m_settings.m_devSampleRate != settings.m_devSampleRate;
|
||||
|
||||
if (m_deviceShared.m_deviceParams->getDevice() && m_channelAcquired)
|
||||
{
|
||||
if (LMS_SetSampleRateDir(m_deviceShared.m_deviceParams->getDevice(),
|
||||
@ -1445,9 +1439,6 @@ void LimeSDRInput::webapiUpdateDeviceSettings(
|
||||
if (deviceSettingsKeys.contains("dcBlock")) {
|
||||
settings.m_dcBlock = response.getLimeSdrInputSettings()->getDcBlock() != 0;
|
||||
}
|
||||
if (deviceSettingsKeys.contains("splitFreq")) {
|
||||
settings.m_splitFreq = response.getLimeSdrInputSettings()->getSplitFreq() != 0;
|
||||
}
|
||||
if (deviceSettingsKeys.contains("devSampleRate")) {
|
||||
settings.m_devSampleRate = response.getLimeSdrInputSettings()->getDevSampleRate();
|
||||
}
|
||||
@ -1530,7 +1521,6 @@ void LimeSDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re
|
||||
response.getLimeSdrInputSettings()->setAntennaPath((int) settings.m_antennaPath);
|
||||
response.getLimeSdrInputSettings()->setCenterFrequency(settings.m_centerFrequency);
|
||||
response.getLimeSdrInputSettings()->setDcBlock(settings.m_dcBlock ? 1 : 0);
|
||||
response.getLimeSdrInputSettings()->setSplitFreq(settings.m_splitFreq ? 1 : 0);
|
||||
response.getLimeSdrInputSettings()->setDevSampleRate(settings.m_devSampleRate);
|
||||
response.getLimeSdrInputSettings()->setExtClock(settings.m_extClock ? 1 : 0);
|
||||
response.getLimeSdrInputSettings()->setExtClockFreq(settings.m_extClockFreq);
|
||||
@ -1663,9 +1653,6 @@ void LimeSDRInput::webapiReverseSendSettings(const QList<QString>& deviceSetting
|
||||
if (deviceSettingsKeys.contains("dcBlock") || force) {
|
||||
swgLimeSdrInputSettings->setDcBlock(settings.m_dcBlock ? 1 : 0);
|
||||
}
|
||||
if (deviceSettingsKeys.contains("splitFreq") || force) {
|
||||
swgLimeSdrInputSettings->setSplitFreq(settings.m_splitFreq ? 1 : 0);
|
||||
}
|
||||
if (deviceSettingsKeys.contains("devSampleRate") || force) {
|
||||
swgLimeSdrInputSettings->setDevSampleRate(settings.m_devSampleRate);
|
||||
}
|
||||
|
@ -428,7 +428,6 @@ void LimeSDRInputGUI::displaySettings()
|
||||
displaySampleRate();
|
||||
|
||||
ui->dcOffset->setChecked(m_settings.m_dcBlock);
|
||||
ui->splitFreq->setChecked(m_settings.m_splitFreq);
|
||||
ui->iqImbalance->setChecked(m_settings.m_iqCorrection);
|
||||
|
||||
ui->hwDecim->setCurrentIndex(m_settings.m_log2HardDecim);
|
||||
@ -636,13 +635,6 @@ void LimeSDRInputGUI::on_dcOffset_toggled(bool checked)
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void LimeSDRInputGUI::on_splitFreq_toggled(bool checked)
|
||||
{
|
||||
m_settings.m_splitFreq = checked;
|
||||
m_settingsKeys.append("splitFreq");
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void LimeSDRInputGUI::on_iqImbalance_toggled(bool checked)
|
||||
{
|
||||
m_settings.m_iqCorrection = checked;
|
||||
@ -947,7 +939,6 @@ void LimeSDRInputGUI::makeUIConnections()
|
||||
QObject::connect(ui->ncoFrequency, &ValueDialZ::changed, this, &LimeSDRInputGUI::on_ncoFrequency_changed);
|
||||
QObject::connect(ui->ncoEnable, &ButtonSwitch::toggled, this, &LimeSDRInputGUI::on_ncoEnable_toggled);
|
||||
QObject::connect(ui->dcOffset, &ButtonSwitch::toggled, this, &LimeSDRInputGUI::on_dcOffset_toggled);
|
||||
QObject::connect(ui->splitFreq, &ButtonSwitch::toggled, this, &LimeSDRInputGUI::on_splitFreq_toggled);
|
||||
QObject::connect(ui->iqImbalance, &ButtonSwitch::toggled, this, &LimeSDRInputGUI::on_iqImbalance_toggled);
|
||||
QObject::connect(ui->sampleRate, &ValueDial::changed, this, &LimeSDRInputGUI::on_sampleRate_changed);
|
||||
QObject::connect(ui->hwDecim, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &LimeSDRInputGUI::on_hwDecim_currentIndexChanged);
|
||||
|
@ -89,7 +89,6 @@ private slots:
|
||||
void on_ncoFrequency_changed(qint64 value);
|
||||
void on_ncoEnable_toggled(bool checked);
|
||||
void on_dcOffset_toggled(bool checked);
|
||||
void on_splitFreq_toggled(bool checked);
|
||||
void on_iqImbalance_toggled(bool checked);
|
||||
void on_sampleRate_changed(quint64 value);
|
||||
void on_hwDecim_currentIndexChanged(int index);
|
||||
|
@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>386</width>
|
||||
<width>360</width>
|
||||
<height>255</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -312,16 +312,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="ButtonSwitch" name="splitFreq">
|
||||
<property name="toolTip">
|
||||
<string>Disable RX/TX frequency being locked</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Split</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
|
@ -31,7 +31,6 @@ void LimeSDRInputSettings::resetToDefaults()
|
||||
m_devSampleRate = 5000000;
|
||||
m_log2HardDecim = 3;
|
||||
m_dcBlock = false;
|
||||
m_splitFreq = false;
|
||||
m_iqCorrection = false;
|
||||
m_log2SoftDecim = 0;
|
||||
m_lpfBW = 4.5e6f;
|
||||
@ -97,7 +96,6 @@ QByteArray LimeSDRInputSettings::serialize() const
|
||||
s.writeFloat(30, m_replayLength);
|
||||
s.writeFloat(31, m_replayStep);
|
||||
s.writeBool(32, m_replayLoop);
|
||||
s.writeBool(33, m_splitFreq);
|
||||
|
||||
return s.final();
|
||||
}
|
||||
@ -160,7 +158,6 @@ bool LimeSDRInputSettings::deserialize(const QByteArray& data)
|
||||
d.readFloat(30, &m_replayLength, 20.0f);
|
||||
d.readFloat(31, &m_replayStep, 5.0f);
|
||||
d.readBool(32, &m_replayLoop, false);
|
||||
d.readBool(33, &m_splitFreq, false);
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -186,9 +183,6 @@ void LimeSDRInputSettings::applySettings(const QStringList& settingsKeys, const
|
||||
if (settingsKeys.contains("dcBlock")) {
|
||||
m_dcBlock = settings.m_dcBlock;
|
||||
}
|
||||
if (settingsKeys.contains("splitFreq")) {
|
||||
m_splitFreq = settings.m_splitFreq;
|
||||
}
|
||||
if (settingsKeys.contains("iqCorrection")) {
|
||||
m_iqCorrection = settings.m_iqCorrection;
|
||||
}
|
||||
@ -291,9 +285,6 @@ QString LimeSDRInputSettings::getDebugString(const QStringList& settingsKeys, bo
|
||||
if (settingsKeys.contains("dcBlock") || force) {
|
||||
ostr << " m_dcBlock: " << m_dcBlock;
|
||||
}
|
||||
if (settingsKeys.contains("splitFreq") || force) {
|
||||
ostr << " m_splitFreq: " << m_splitFreq;
|
||||
}
|
||||
if (settingsKeys.contains("iqCorrection") || force) {
|
||||
ostr << " m_iqCorrection: " << m_iqCorrection;
|
||||
}
|
||||
|
@ -51,7 +51,6 @@ struct LimeSDRInputSettings
|
||||
uint32_t m_log2HardDecim;
|
||||
// channel settings
|
||||
bool m_dcBlock;
|
||||
bool m_splitFreq;
|
||||
bool m_iqCorrection;
|
||||
uint32_t m_log2SoftDecim;
|
||||
float m_lpfBW; //!< LMS amalog lowpass filter bandwidth (Hz)
|
||||
|
@ -10,8 +10,6 @@ LimeSdrInputSettings:
|
||||
type: integer
|
||||
dcBlock:
|
||||
type: integer
|
||||
splitFreq:
|
||||
type: integer
|
||||
iqCorrection:
|
||||
type: integer
|
||||
log2SoftDecim:
|
||||
|
@ -35,9 +35,7 @@ SWGLimeSdrInputSettings::SWGLimeSdrInputSettings() {
|
||||
log2_hard_decim = 0;
|
||||
m_log2_hard_decim_isSet = false;
|
||||
dc_block = 0;
|
||||
splitFreq = 0;
|
||||
m_dc_block_isSet = false;
|
||||
m_splitFreq_isSet = false;
|
||||
iq_correction = 0;
|
||||
m_iq_correction_isSet = false;
|
||||
log2_soft_decim = 0;
|
||||
@ -102,8 +100,6 @@ SWGLimeSdrInputSettings::init() {
|
||||
m_log2_hard_decim_isSet = false;
|
||||
dc_block = 0;
|
||||
m_dc_block_isSet = false;
|
||||
splitFreq = 0;
|
||||
m_splitFreq_isSet = false;
|
||||
iq_correction = 0;
|
||||
m_iq_correction_isSet = false;
|
||||
log2_soft_decim = 0;
|
||||
@ -206,8 +202,6 @@ SWGLimeSdrInputSettings::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&log2_hard_decim, pJson["log2HardDecim"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&dc_block, pJson["dcBlock"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&splitFreq, pJson["splitFreq"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", "");
|
||||
|
||||
@ -285,9 +279,6 @@ SWGLimeSdrInputSettings::asJsonObject() {
|
||||
if(m_dc_block_isSet){
|
||||
obj->insert("dcBlock", QJsonValue(dc_block));
|
||||
}
|
||||
if(m_splitFreq_isSet){
|
||||
obj->insert("splitFreq", QJsonValue(splitFreq));
|
||||
}
|
||||
if(m_iq_correction_isSet){
|
||||
obj->insert("iqCorrection", QJsonValue(iq_correction));
|
||||
}
|
||||
@ -404,16 +395,6 @@ SWGLimeSdrInputSettings::setDcBlock(qint32 dc_block) {
|
||||
this->m_dc_block_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLimeSdrInputSettings::getSplitFreq() {
|
||||
return splitFreq;
|
||||
}
|
||||
void
|
||||
SWGLimeSdrInputSettings::setSplitFreq(qint32 splitFreq) {
|
||||
this->splitFreq = splitFreq;
|
||||
this->m_splitFreq_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLimeSdrInputSettings::getIqCorrection() {
|
||||
return iq_correction;
|
||||
@ -671,9 +652,6 @@ SWGLimeSdrInputSettings::isSet(){
|
||||
if(m_dc_block_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_splitFreq_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_iq_correction_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
|
@ -52,10 +52,7 @@ public:
|
||||
void setLog2HardDecim(qint32 log2_hard_decim);
|
||||
|
||||
qint32 getDcBlock();
|
||||
void setDcBlock(qint32 splitFreq);
|
||||
|
||||
qint32 getSplitFreq();
|
||||
void setSplitFreq(qint32 splitFreq);
|
||||
void setDcBlock(qint32 dc_block);
|
||||
|
||||
qint32 getIqCorrection();
|
||||
void setIqCorrection(qint32 iq_correction);
|
||||
@ -145,9 +142,6 @@ private:
|
||||
qint32 dc_block;
|
||||
bool m_dc_block_isSet;
|
||||
|
||||
qint32 splitFreq;
|
||||
bool m_splitFreq_isSet;
|
||||
|
||||
qint32 iq_correction;
|
||||
bool m_iq_correction_isSet;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user