Fixed bug that under-flowed self.notches
authormleech <mleech@221aa14e-8319-0410-a670-987f0aec2ac5>
Sat, 3 Jan 2009 01:50:36 +0000 (01:50 +0000)
committermleech <mleech@221aa14e-8319-0410-a670-987f0aec2ac5>
Sat, 3 Jan 2009 01:50:36 +0000 (01:50 +0000)
increased notch resolution to 128 taps

git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10190 221aa14e-8319-0410-a670-987f0aec2ac5

gr-radio-astronomy/src/python/usrp_ra_receiver.py

index 137ed9eb791003b65ae7eec29eae54d2abaa5465..c0edbe0e91d765b7065c1262d53ab301c7714ebc 100755 (executable)
@@ -1044,7 +1044,7 @@ class app_flow_graph(stdgui2.std_top_block):
                        delfreq = -1
                        if self.use_notches == True:
                                for i in range(0,len(self.notches)):
-                                       if abs(self.notches[i] - dfreq) < ((self.bw/self.NOTCH_TAPS)/2.0):
+                                       if self.notches[i] != 0 and abs(self.notches[i] - dfreq) < ((self.bw/self.NOTCH_TAPS)/2.0):
                                                delfreq = i
                                                break
                                j = 0