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
+1 -1
View File
@@ -83,7 +83,7 @@ def main():
relay.subscribe("dl_data", sbs1port.output) relay.subscribe("dl_data", sbs1port.output)
tb.run() tb.run()
tb.cleanup() tb.close()
relay.close() relay.close()
+4 -4
View File
@@ -179,14 +179,14 @@ class modes_radio (gr.top_block, pubsub):
###DO NOT COMMIT ###DO NOT COMMIT
self._u.set_gain(14, "RF", 0) self._u.set_gain(14, "RF", 0)
self._u.set_gain(40, "IF", 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 ###DO NOT COMMIT
self._u.set_gain(options.gain) self._u.set_gain(options.gain)
print "Gain is %i" % self._u.get_gain() print "Gain is %i" % self._u.get_gain()
#Note: this should only come into play if using an RTLSDR. #Note: this should only come into play if using an RTLSDR.
lpfiltcoeffs = gr.firdes.low_pass(1, 5*3.2e6, 1.6e6, 300e3) # lpfiltcoeffs = gr.firdes.low_pass(1, 5*3.2e6, 1.6e6, 300e3)
self._resample = blks2.rational_resampler_ccf(interpolation=5, decimation=4, taps=lpfiltcoeffs) # self._resample = blks2.rational_resampler_ccf(interpolation=5, decimation=4, taps=lpfiltcoeffs)
else: else:
#semantically detect whether it's ip.ip.ip.ip:port or filename #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,) print "Rate is %i" % (options.rate,)
def cleanup(self): def close(self):
self._sender.close() self._sender.close()