avoid saturating SDR

This commit is contained in:
Sebastien Bourdeauducq 2020-08-16 17:45:51 +08:00
parent 5c4f541669
commit 8fcec4b17c
1 changed files with 1 additions and 1 deletions

2
dmi.py
View File

@ -30,7 +30,7 @@ def main():
for channel in range(2): for channel in range(2):
sdr.setSampleRate(SoapySDR.SOAPY_SDR_RX, channel, freq_sample) sdr.setSampleRate(SoapySDR.SOAPY_SDR_RX, channel, freq_sample)
sdr.setFrequency(SoapySDR.SOAPY_SDR_RX, channel, freq_base) sdr.setFrequency(SoapySDR.SOAPY_SDR_RX, channel, freq_base)
sdr.setGain(SoapySDR.SOAPY_SDR_RX, channel, 57.0) sdr.setGain(SoapySDR.SOAPY_SDR_RX, channel, 55.0)
buf_sdr = BufferedSDR(sdr, [0, 1], block_size, 32) buf_sdr = BufferedSDR(sdr, [0, 1], block_size, 32)
buf_sdr.start() buf_sdr.start()