Re-remove the RTLSDR interpolating filter. Still need to distinguish HackRF vs. RTL-SDR sources.
This commit is contained in:
parent
244c9105f2
commit
bed2aa499e
@ -83,7 +83,7 @@ def main():
|
||||
relay.subscribe("dl_data", sbs1port.output)
|
||||
|
||||
tb.run()
|
||||
tb.cleanup()
|
||||
tb.close()
|
||||
|
||||
relay.close()
|
||||
|
||||
|
@ -179,14 +179,14 @@ class modes_radio (gr.top_block, pubsub):
|
||||
###DO NOT COMMIT
|
||||
self._u.set_gain(14, "RF", 0)
|
||||
self._u.set_gain(40, "IF", 0)
|
||||
self._u.set_gain(14, "BB", 0)
|
||||
#self._u.set_gain(14, "BB", 0)
|
||||
###DO NOT COMMIT
|
||||
self._u.set_gain(options.gain)
|
||||
print "Gain is %i" % self._u.get_gain()
|
||||
|
||||
#Note: this should only come into play if using an RTLSDR.
|
||||
lpfiltcoeffs = gr.firdes.low_pass(1, 5*3.2e6, 1.6e6, 300e3)
|
||||
self._resample = blks2.rational_resampler_ccf(interpolation=5, decimation=4, taps=lpfiltcoeffs)
|
||||
# lpfiltcoeffs = gr.firdes.low_pass(1, 5*3.2e6, 1.6e6, 300e3)
|
||||
# self._resample = blks2.rational_resampler_ccf(interpolation=5, decimation=4, taps=lpfiltcoeffs)
|
||||
|
||||
else:
|
||||
#semantically detect whether it's ip.ip.ip.ip:port or filename
|
||||
@ -203,5 +203,5 @@ class modes_radio (gr.top_block, pubsub):
|
||||
|
||||
print "Rate is %i" % (options.rate,)
|
||||
|
||||
def cleanup(self):
|
||||
def close(self):
|
||||
self._sender.close()
|
||||
|
Loading…
Reference in New Issue
Block a user