SoapyRTLSDR Frequency Correction (PPM) values do not have any effect
Issue related with #64 (closed)
Incorrect setting PPM is due the fact that at the start of the source_impl.cc setting of the PPM parameter precedes the setting of the frequency parameter and also PPM = 0.
It could be solve the problem by changing the order of the initial soapy commands that were generated in the Python code. For this, in gr-soapy_source.block.yml need to move the following code:
# Setup Frequency correction. If set to 0 internally the source block # will handle the case if no frequency correction is supported self.${id}.set_frequency_correction(0,${correction0}) % if context.get('nchan')() > 1: self.${id}.set_frequency_correction(1,${correction1}) % endif
to a new place after:
% if context.get('devname')() in ['bladerf']: self.${id}.set_gain(0,"rxvga1", ${rxvga1_gain}) self.${id}.set_gain(0,"rxvga2", ${rxvga2_gain}) % endif % endif