Skip to content

Commit

Permalink
use dbsrx filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Foster committed Jun 12, 2011
1 parent e1b3e55 commit ba7a608
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/python/uhd_modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,14 @@ def __init__(self, options, args, queue):

#the DBSRX especially tends to be spur-prone; the LPF keeps out the
#spur multiple that shows up at 2MHz
#self.lpfiltcoeffs = gr.firdes.low_pass(1, rate, 1.8e6, 200e3)
#self.lpfilter = gr.fir_filter_fff(1, self.lpfiltcoeffs)

#self.filter = gr.fir_filter_fff(1, self.filtcoeffs)
#rate = int(2e6)
self.lpfiltcoeffs = gr.firdes.low_pass(1, rate, 1.8e6, 200e3)
self.lpfilter = gr.fir_filter_ccc(1, self.lpfiltcoeffs)

self.preamble = air.modes_preamble(rate, options.threshold)
#self.framer = air.modes_framer(rate)
self.slicer = air.modes_slicer(rate, queue)

self.connect(self.u, self.demod)
self.connect(self.u, self.lpfilter, self.demod)
self.connect(self.demod, self.avg)
self.connect(self.demod, (self.preamble, 0))
self.connect(self.avg, (self.preamble, 1))
Expand Down

0 comments on commit ba7a608

Please sign in to comment.