1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-28 15:56:33 -04:00

LimeSDR: more informative debug message on apply settings

This commit is contained in:
f4exb 2017-12-30 10:17:30 +01:00
parent f27bb2d1c2
commit f1ead09337
4 changed files with 9 additions and 3 deletions

View File

@ -35,8 +35,8 @@ const QString UDPSink::m_channelId = "UDPSink";
UDPSink::UDPSink(DeviceSinkAPI *deviceAPI) : UDPSink::UDPSink(DeviceSinkAPI *deviceAPI) :
ChannelSourceAPI(m_channelIdURI), ChannelSourceAPI(m_channelIdURI),
m_deviceAPI(deviceAPI), m_deviceAPI(deviceAPI),
m_outputSampleRate(48000),
m_basebandSampleRate(48000), m_basebandSampleRate(48000),
m_outputSampleRate(48000),
m_inputFrequencyOffset(0), m_inputFrequencyOffset(0),
m_squelch(1e-6), m_squelch(1e-6),
m_spectrum(0), m_spectrum(0),

View File

@ -1080,7 +1080,10 @@ bool LimeSDROutput::applySettings(const LimeSDROutputSettings& settings, bool fo
qDebug() << "LimeSDROutput::applySettings: center freq: " << m_settings.m_centerFrequency << " Hz" qDebug() << "LimeSDROutput::applySettings: center freq: " << m_settings.m_centerFrequency << " Hz"
<< " device stream sample rate: " << m_settings.m_devSampleRate << "S/s" << " device stream sample rate: " << m_settings.m_devSampleRate << "S/s"
<< " sample rate with soft decimation: " << m_settings.m_devSampleRate/(1<<m_settings.m_log2SoftInterp) << "S/s" << " sample rate with soft interpolation: " << m_settings.m_devSampleRate/(1<<m_settings.m_log2SoftInterp) << "S/s"
<< " DAC sample rate with hard interpolation: " << m_settings.m_devSampleRate/(1<<m_settings.m_log2HardInterp) << "S/s"
<< " m_log2HardInterp: " << m_settings.m_log2HardInterp
<< " m_log2SoftInterp: " << m_settings.m_log2SoftInterp
<< " m_gain: " << m_settings.m_gain << " m_gain: " << m_settings.m_gain
<< " m_lpfBW: " << m_settings.m_lpfBW << " m_lpfBW: " << m_settings.m_lpfBW
<< " m_lpfFIRBW: " << m_settings.m_lpfFIRBW << " m_lpfFIRBW: " << m_settings.m_lpfFIRBW

View File

@ -1234,6 +1234,9 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
qDebug() << "LimeSDRInput::applySettings: center freq: " << m_settings.m_centerFrequency << " Hz" qDebug() << "LimeSDRInput::applySettings: center freq: " << m_settings.m_centerFrequency << " Hz"
<< " device stream sample rate: " << m_settings.m_devSampleRate << "S/s" << " device stream sample rate: " << m_settings.m_devSampleRate << "S/s"
<< " sample rate with soft decimation: " << m_settings.m_devSampleRate/(1<<m_settings.m_log2SoftDecim) << "S/s" << " sample rate with soft decimation: " << m_settings.m_devSampleRate/(1<<m_settings.m_log2SoftDecim) << "S/s"
<< " ADC sample rate with hard decimation: " << m_settings.m_devSampleRate/(1<<m_settings.m_log2HardDecim) << "S/s"
<< " m_log2HardDecim: " << m_settings.m_log2HardDecim
<< " m_log2SoftDecim: " << m_settings.m_log2SoftDecim
<< " m_gain: " << m_settings.m_gain << " m_gain: " << m_settings.m_gain
<< " m_lpfBW: " << m_settings.m_lpfBW << " m_lpfBW: " << m_settings.m_lpfBW
<< " m_lpfFIRBW: " << m_settings.m_lpfFIRBW << " m_lpfFIRBW: " << m_settings.m_lpfFIRBW

View File

@ -80,7 +80,7 @@ def main():
deviceset_url = "/deviceset/%d" % options.device_index deviceset_url = "/deviceset/%d" % options.device_index
r = callAPI(deviceset_url + "/device", "PUT", None, {"hwType": "%s" % options.device_hwid, "rx": 1}, "setup device on Rx device set") r = callAPI(deviceset_url + "/device", "PUT", None, {"hwType": "%s" % options.device_hwid, "tx": 0}, "setup device on Rx device set")
if r is None: if r is None:
exit(-1) exit(-1)