Re-remove the RTLSDR interpolating filter. Still need to distinguish HackRF vs. RTL-SDR sources.

This commit is contained in:
Nick Foster 2013-06-10 11:24:42 -04:00
parent 244c9105f2
commit bed2aa499e
2 changed files with 5 additions and 5 deletions

View File

@ -83,7 +83,7 @@ def main():
relay.subscribe("dl_data", sbs1port.output)
tb.run()
tb.cleanup()
tb.close()
relay.close()

View File

@ -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()