LimeSDR output: set default gain to 4 db

pull/27/head
f4exb 2017-05-08 04:35:49 +02:00
rodzic 6f884d02c2
commit 140d12138a
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -165,7 +165,7 @@ bool LimeSDROutput::openDevice()
m_streamId.channel = m_deviceShared.m_channel; // channel number
m_streamId.fifoSize = 5000000; // fifo size in samples
m_streamId.throughputVsLatency = 1.0; // optimize for max throughput
m_streamId.throughputVsLatency = 0.0; // optimize for min latency
m_streamId.isTx = true; // TX channel
m_streamId.dataFmt = lms_stream_t::LMS_FMT_I12; // 12-bit integers

Wyświetl plik

@ -32,7 +32,7 @@ void LimeSDROutputSettings::resetToDefaults()
m_lpfBW = 5.5e6f;
m_lpfFIREnable = false;
m_lpfFIRBW = 2.5e6f;
m_gain = 30;
m_gain = 4;
m_ncoEnable = false;
m_ncoFrequency = 0;
m_antennaPath = PATH_RFE_NONE;
@ -76,7 +76,7 @@ bool LimeSDROutputSettings::deserialize(const QByteArray& data)
d.readFloat(7, &m_lpfBW, 1.5e6);
d.readBool(8, &m_lpfFIREnable, false);
d.readFloat(9, &m_lpfFIRBW, 1.5e6);
d.readU32(10, &m_gain, 0);
d.readU32(10, &m_gain, 4);
d.readBool(11, &m_ncoEnable, false);
d.readS32(12, &m_ncoFrequency, 0);
d.readS32(13, &intval, 0);