mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-03 06:24:48 -04:00
PluoSDR: debug (1)
This commit is contained in:
@@ -31,13 +31,12 @@ void PlutoSDRInputSettings::resetToDefaults()
|
||||
m_fcPos = FC_POS_CENTER;
|
||||
m_LOppmTenths = 0;
|
||||
m_log2Decim = 0;
|
||||
m_devSampleRate = 1536 * 1000;
|
||||
m_rateGovernor = RATEGOV_NORMAL;
|
||||
m_devSampleRate = 2500 * 1000;
|
||||
m_dcBlock = false;
|
||||
m_iqCorrection = false;
|
||||
m_lpfBW = 1500000.0f;
|
||||
m_lpfFIREnable = false;
|
||||
m_lpfFIRBW = 500000.0f;
|
||||
m_lpfFIRBW = 500000U;
|
||||
m_lpfFIRlog2Decim = 0;
|
||||
m_gain = 40;
|
||||
m_antennaPath = RFPATH_A_BAL;
|
||||
@@ -53,12 +52,11 @@ QByteArray PlutoSDRInputSettings::serialize() const
|
||||
s.writeU32(3, m_lpfFIRlog2Decim);
|
||||
s.writeU32(4, m_log2Decim);
|
||||
s.writeS32(5, m_fcPos);
|
||||
s.writeS32(6, m_rateGovernor);
|
||||
s.writeBool(7, m_dcBlock);
|
||||
s.writeBool(8, m_iqCorrection);
|
||||
s.writeFloat(9, m_lpfBW);
|
||||
s.writeBool(10, m_lpfFIREnable);
|
||||
s.writeFloat(11, m_lpfFIRBW);
|
||||
s.writeU32(11, m_lpfFIRBW);
|
||||
s.writeU64(12, m_devSampleRate);
|
||||
s.writeU32(13, m_gain);
|
||||
s.writeS32(14, (int) m_antennaPath);
|
||||
@@ -97,17 +95,11 @@ bool PlutoSDRInputSettings::deserialize(const QByteArray& data)
|
||||
} else {
|
||||
m_fcPos = (fcPos_t) intval;
|
||||
}
|
||||
d.readS32(6, &intval, 0);
|
||||
if ((intval >= 0) && (intval < (int) RATEGOV_END)) {
|
||||
m_rateGovernor = (RateGovernor) intval;
|
||||
} else {
|
||||
m_rateGovernor = RATEGOV_NORMAL;
|
||||
}
|
||||
d.readBool(7, &m_dcBlock, false);
|
||||
d.readBool(8, &m_iqCorrection, false);
|
||||
d.readFloat(9, &m_lpfBW, 1500000.0f);
|
||||
d.readBool(10, &m_lpfFIREnable, false);
|
||||
d.readFloat(11, &m_lpfFIRBW, 500000.0f);
|
||||
d.readU32(11, &m_lpfFIRBW, 500000U);
|
||||
d.readU64(12, &m_devSampleRate, 1536000U);
|
||||
d.readU32(13, &m_gain, 40);
|
||||
d.readS32(14, &intval, 0);
|
||||
@@ -132,22 +124,6 @@ bool PlutoSDRInputSettings::deserialize(const QByteArray& data)
|
||||
}
|
||||
}
|
||||
|
||||
void PlutoSDRInputSettings::translateGovernor(RateGovernor gov, QString& s)
|
||||
{
|
||||
switch(gov)
|
||||
{
|
||||
case RATEGOV_NORMAL:
|
||||
s = "normal";
|
||||
break;
|
||||
case RATEGOV_HIGHOSR:
|
||||
s = "highest_osr";
|
||||
break;
|
||||
default:
|
||||
s = "highest_osr";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void PlutoSDRInputSettings::translateRFPath(RFPath path, QString& s)
|
||||
{
|
||||
switch(path)
|
||||
|
||||
Reference in New Issue
Block a user