Kludge Tracker: Gnuradio - v3.4.0-101-g7e2b45b

Parent Directory (gnuradio/gnuradio-examples)

Kludge Summary of gnuradio/gnuradio-examples/python

Total Kludges 50
Total Subdirs 8

All Directories within gnuradio/gnuradio-examples/python

All Files within gnuradio/gnuradio-examples/python

Kludge Snippets in gnuradio/gnuradio-examples/python

gnuradio/gnuradio-examples/python/apps/hf_explorer/hfx2.py

PyFlakes undefined name 'fftsink'
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
297                self.fft = fftsink2.fft_sink_c (self.panel_2, fft_size=512, sample_rate=self.af_sample_rate, average=True, size=(640,240))
298        
299        	# AM Sync carrier 
300        	if AM_SYNC_DISPLAY:
301        	   self.fft2 = fftsink.fft_sink_c (self.tb, self.panel_9, y_per_div=20, fft_size=512, sample_rate=self.af_sample_rate, average=True, size=(640,240))
302        
303                c2f = gr.complex_to_float()
304        
305        	# AM branch
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback.py — 1

PyFlakes undefined name 'pktno'
Committer Tom Rondeau
Commit ID b682d4bbe98b72e86219f1f303843b4f4f9ed1b7
166            def updatePacketInfo(self):
167                # Pull these globals in from the main thread
168                global n_rcvd, n_right, pktno
169        
170                if(pktno > 0):
171                    per = float(n_rcvd - n_right)/float(pktno)
172                else:
173                    per = 0
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback.py — 2

PyFlakes undefined name 'n_rcvd'
Committer Tom Rondeau
Commit ID b682d4bbe98b72e86219f1f303843b4f4f9ed1b7
167                # Pull these globals in from the main thread
168                global n_rcvd, n_right, pktno
169        
170                if(pktno > 0):
171                    per = float(n_rcvd - n_right)/float(pktno)
172                else:
173                    per = 0
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback.py — 3

PyFlakes undefined name 'n_right'
Committer Tom Rondeau
Commit ID b682d4bbe98b72e86219f1f303843b4f4f9ed1b7
167                # Pull these globals in from the main thread
168                global n_rcvd, n_right, pktno
169        
170                if(pktno > 0):
171                    per = float(n_rcvd - n_right)/float(pktno)
172                else:
173                    per = 0
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback.py — 4

PyFlakes undefined name 'pktno'
Committer Tom Rondeau
Commit ID b682d4bbe98b72e86219f1f303843b4f4f9ed1b7
167                # Pull these globals in from the main thread
168                global n_rcvd, n_right, pktno
169        
170                if(pktno > 0):
171                    per = float(n_rcvd - n_right)/float(pktno)
172                else:
173                    per = 0
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback.py — 5

PyFlakes undefined name 'n_rcvd'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
170                if(pktno > 0):
171                    per = float(n_rcvd - n_right)/float(pktno)
172                else:
173                    per = 0
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
177        
178        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback.py — 6

PyFlakes undefined name 'n_right'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
171                    per = float(n_rcvd - n_right)/float(pktno)
172                else:
173                    per = 0
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
177        
178        
179        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback2.py — 1

PyFlakes undefined name 'pktno'
Committer Tom Rondeau
Commit ID 517380207ba51fc127bc979dbc1d8bdc557145e6
209            def updatePacketInfo(self):
210                # Pull these globals in from the main thread
211                global n_rcvd, n_right, pktno
212        
213                if(pktno > 0):
214                    per = float(n_rcvd - n_right)/float(pktno)
215                else:
216                    per = 0
217                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback2.py — 2

PyFlakes undefined name 'n_rcvd'
Committer Tom Rondeau
Commit ID 517380207ba51fc127bc979dbc1d8bdc557145e6
210                # Pull these globals in from the main thread
211                global n_rcvd, n_right, pktno
212        
213                if(pktno > 0):
214                    per = float(n_rcvd - n_right)/float(pktno)
215                else:
216                    per = 0
217                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
218                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback2.py — 3

PyFlakes undefined name 'n_right'
Committer Tom Rondeau
Commit ID 517380207ba51fc127bc979dbc1d8bdc557145e6
210                # Pull these globals in from the main thread
211                global n_rcvd, n_right, pktno
212        
213                if(pktno > 0):
214                    per = float(n_rcvd - n_right)/float(pktno)
215                else:
216                    per = 0
217                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
218                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback2.py — 4

PyFlakes undefined name 'pktno'
Committer Tom Rondeau
Commit ID 517380207ba51fc127bc979dbc1d8bdc557145e6
210                # Pull these globals in from the main thread
211                global n_rcvd, n_right, pktno
212        
213                if(pktno > 0):
214                    per = float(n_rcvd - n_right)/float(pktno)
215                else:
216                    per = 0
217                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
218                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback2.py — 5

PyFlakes undefined name 'n_rcvd'
Committer Tom Rondeau
Commit ID 517380207ba51fc127bc979dbc1d8bdc557145e6
213                if(pktno > 0):
214                    per = float(n_rcvd - n_right)/float(pktno)
215                else:
216                    per = 0
217                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
218                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
219                self.gui.perEdit.setText(QtCore.QString("%1").arg(float(per), 0, 'e', 4))
220        
221        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback2.py — 6

PyFlakes undefined name 'n_right'
Committer Tom Rondeau
Commit ID 517380207ba51fc127bc979dbc1d8bdc557145e6
214                    per = float(n_rcvd - n_right)/float(pktno)
215                else:
216                    per = 0
217                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
218                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
219                self.gui.perEdit.setText(QtCore.QString("%1").arg(float(per), 0, 'e', 4))
220        
221        
222        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx.py — 1

PyFlakes undefined name 'n_rcvd'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
156            def updatePacketInfo(self):
157                # Pull these globals in from the main thread
158                global n_rcvd, n_right, pktno
159        
160                per = float(n_rcvd - n_right)/float(pktno)
161                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
162                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
163                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
164        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx.py — 2

PyFlakes undefined name 'n_right'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
156            def updatePacketInfo(self):
157                # Pull these globals in from the main thread
158                global n_rcvd, n_right, pktno
159        
160                per = float(n_rcvd - n_right)/float(pktno)
161                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
162                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
163                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
164        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx.py — 3

PyFlakes undefined name 'pktno'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
156            def updatePacketInfo(self):
157                # Pull these globals in from the main thread
158                global n_rcvd, n_right, pktno
159        
160                per = float(n_rcvd - n_right)/float(pktno)
161                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
162                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
163                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
164        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx.py — 4

PyFlakes undefined name 'n_rcvd'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
157                # Pull these globals in from the main thread
158                global n_rcvd, n_right, pktno
159        
160                per = float(n_rcvd - n_right)/float(pktno)
161                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
162                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
163                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
164        
165        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx.py — 5

PyFlakes undefined name 'n_right'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
158                global n_rcvd, n_right, pktno
159        
160                per = float(n_rcvd - n_right)/float(pktno)
161                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
162                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
163                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
164        
165        
166        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx2.py — 1

PyFlakes undefined name 'n_rcvd'
Committer Tom
Commit ID 4f03e43efdc8736c39ff6dad10052d0e31aca62f
169            def updatePacketInfo(self):
170                # Pull these globals in from the main thread
171                global n_rcvd, n_right, pktno
172        
173                per = float(n_rcvd - n_right)/float(pktno)
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per, 0, 'e', 4))
177        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx2.py — 2

PyFlakes undefined name 'n_right'
Committer Tom
Commit ID 4f03e43efdc8736c39ff6dad10052d0e31aca62f
169            def updatePacketInfo(self):
170                # Pull these globals in from the main thread
171                global n_rcvd, n_right, pktno
172        
173                per = float(n_rcvd - n_right)/float(pktno)
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per, 0, 'e', 4))
177        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx2.py — 3

PyFlakes undefined name 'pktno'
Committer Tom
Commit ID 4f03e43efdc8736c39ff6dad10052d0e31aca62f
169            def updatePacketInfo(self):
170                # Pull these globals in from the main thread
171                global n_rcvd, n_right, pktno
172        
173                per = float(n_rcvd - n_right)/float(pktno)
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per, 0, 'e', 4))
177        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx2.py — 4

PyFlakes undefined name 'n_rcvd'
Committer Tom
Commit ID 4f03e43efdc8736c39ff6dad10052d0e31aca62f
170                # Pull these globals in from the main thread
171                global n_rcvd, n_right, pktno
172        
173                per = float(n_rcvd - n_right)/float(pktno)
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per, 0, 'e', 4))
177        
178        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx2.py — 5

PyFlakes undefined name 'n_right'
Committer Tom
Commit ID 4f03e43efdc8736c39ff6dad10052d0e31aca62f
171                global n_rcvd, n_right, pktno
172        
173                per = float(n_rcvd - n_right)/float(pktno)
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per, 0, 'e', 4))
177        
178        
179        
				

gnuradio/gnuradio-examples/python/digital/usrp_receive_path.py

PyFlakes undefined name 'sys'
Committer jcorgan
Commit ID e921d54419e95c097cdecf21a2de7c393eb75f18
56                gr.hier_block2.__init__(self, "usrp_receive_path",
57                        gr.io_signature(0, 0, 0),                    # Input signature
58                        gr.io_signature(0, 0, 0)) # Output signature
59                if options.rx_freq is None:
60                    sys.stderr.write("-f FREQ or --freq FREQ or --rx-freq FREQ must be specified\n")
61                    raise SystemExit
62        
63                #setup usrp
64                self._demod_class = demod_class
				

gnuradio/gnuradio-examples/python/digital/usrp_receive_path2.py

PyFlakes undefined name 'sys'
Committer Tom Rondeau
Commit ID ec8e9c7e113046c66176498f12ec79f11d3da65e
56                gr.hier_block2.__init__(self, "usrp_receive_path",
57                        gr.io_signature(0, 0, 0),                    # Input signature
58                        gr.io_signature(0, 0, 0)) # Output signature
59                if options.rx_freq is None:
60                    sys.stderr.write("-f FREQ or --freq FREQ or --rx-freq FREQ must be specified\n")
61                    raise SystemExit
62        
63                #setup usrp
64                self._demod_class = demod_class
				

gnuradio/gnuradio-examples/python/digital/usrp_transmit_path.py

PyFlakes undefined name 'sys'
Committer jcorgan
Commit ID e921d54419e95c097cdecf21a2de7c393eb75f18
55                gr.hier_block2.__init__(self, "usrp_transmit_path",
56                        gr.io_signature(0, 0, 0),                    # Input signature
57                        gr.io_signature(0, 0, 0)) # Output signature
58                if options.tx_freq is None:
59                    sys.stderr.write("-f FREQ or --freq FREQ or --tx-freq FREQ must be specified\n")
60                    raise SystemExit
61        
62                #setup usrp
63                self._modulator_class = modulator_class
				

gnuradio/gnuradio-examples/python/digital/usrp_transmit_path2.py

PyFlakes undefined name 'sys'
Committer Tom Rondeau
Commit ID 52ae8be371d71f8c0817b2a88593ff6c378b9613
55                gr.hier_block2.__init__(self, "usrp_transmit_path",
56                        gr.io_signature(0, 0, 0),                    # Input signature
57                        gr.io_signature(0, 0, 0)) # Output signature
58                if options.tx_freq is None:
59                    sys.stderr.write("-f FREQ or --freq FREQ or --tx-freq FREQ must be specified\n")
60                    raise SystemExit
61        
62                #setup usrp
63                self._modulator_class = modulator_class
				

gnuradio/gnuradio-examples/python/mp-sched/wfm_rcv_pll_to_wav.py

Category FIXME
Committer eb
Commit ID ab9413edc46d05d534f4771e8274676fd2f69de6
72        
73                #self.guts = blks2.wfm_rcv (demod_rate, audio_decimation)
74                self.guts = blks2.wfm_rcv_pll (demod_rate, audio_decimation)
75        
76                # FIXME rework {add,multiply}_const_* to handle multiple streams
77                self.volume_control_l = gr.multiply_const_ff(self.vol)
78                self.volume_control_r = gr.multiply_const_ff(self.vol)
79        
80                # wave file as final sink
				

gnuradio/gnuradio-examples/python/multi-antenna/multi_fft.py

PyFlakes redefinition of unused 'eng_notation' from line 3
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
2        
3        from gnuradio import gr, gru, eng_notation
4        from gnuradio import usrp
5        from gnuradio.eng_option import eng_option
6        from gnuradio import eng_notation
7        from gnuradio import optfir
8        from optparse import OptionParser
9        from gnuradio.wxgui import stdgui2, fftsink2, waterfallsink2, scopesink2, form, slider
10        import wx
				

gnuradio/gnuradio-examples/python/multi-antenna/multi_file.py

PyFlakes redefinition of unused 'eng_notation' from line 3
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
2        
3        from gnuradio import gr, gru, eng_notation
4        from gnuradio import usrp
5        from gnuradio.eng_option import eng_option
6        from gnuradio import eng_notation
7        from gnuradio import optfir
8        from optparse import OptionParser
9        from usrpm import usrp_dbid
10        import time
				

gnuradio/gnuradio-examples/python/multi-antenna/multi_scope.py

PyFlakes redefinition of unused 'eng_notation' from line 3
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
2        
3        from gnuradio import gr, gru, eng_notation
4        from gnuradio import usrp
5        from gnuradio.eng_option import eng_option
6        from gnuradio import eng_notation
7        from gnuradio import optfir
8        from optparse import OptionParser
9        from gnuradio.wxgui import stdgui2, fftsink2, waterfallsink2, scopesink2, form, slider
10        import wx
				

gnuradio/gnuradio-examples/python/multi_usrp/multi_usrp_oscope.py

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
225        
226            def _build_subpanel(self, vbox_arg):
227                # build a secondary information panel (sometimes hidden)
228        
229                # FIXME figure out how to have this be a subpanel that is always
230                # created, but has its visibility controlled by foo.Show(True/False)
231                
232                if not(self.show_debug_info):
233                    return
				

gnuradio/gnuradio-examples/python/ofdm/ofdm_mod_demod_test.py

PyFlakes undefined name 'fg'
Committer trondeau
Commit ID c7dbfcc7d78275f76d8c2a8ef21e3100721874be
99            n_rcvd = 0
100            n_right = 0
101                
102            def send_pkt(payload='', eof=False):
103                return fg.send_pkt(payload, eof)
104                
105            def rx_callback(ok, payload):
106                global n_rcvd, n_right
107                n_rcvd += 1
				

gnuradio/gnuradio-examples/python/usrp/usrp_nbfm_ptt.py — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
127                    return self.set_freq(kv['freq'])
128                    
129                self.panel = panel
130                
131                # FIXME This REALLY needs to be replaced with a hand-crafted button
132                # that sends both button down and button up events
133                hbox = wx.BoxSizer(wx.HORIZONTAL)
134                hbox.Add((10,0), 1)
135                self.status_msg = wx.StaticText(panel, -1, "Press Space Bar to Transmit")
				

gnuradio/gnuradio-examples/python/usrp/usrp_nbfm_ptt.py — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
212        
213            def _build_subpanel(self, vbox_arg):
214                # build a secondary information panel (sometimes hidden)
215        
216                # FIXME figure out how to have this be a subpanel that is always
217                # created, but has its visibility controlled by foo.Show(True/False)
218                
219                #if not(self.show_debug_info):
220                #    return
				

gnuradio/gnuradio-examples/python/usrp/usrp_nbfm_rcv.py — 1

PyFlakes undefined name 'audio_rate'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
120                    vbox.Add (post_deemph_fft.win, 4, wx.EXPAND)
121        
122                if 0:
123                    post_filt_fft = fftsink2.fft_sink_f(self.panel, title="Post Filter", 
124                                                        fft_size=512, sample_rate=audio_rate,
125                                                        y_per_div=10, ref_level=-40)
126                    self.connect (self.guts.audio_filter, post_filt)
127                    vbox.Add (fft_win4, 4, wx.EXPAND)
128        
				

gnuradio/gnuradio-examples/python/usrp/usrp_nbfm_rcv.py — 2

PyFlakes undefined name 'post_filt'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
122                if 0:
123                    post_filt_fft = fftsink2.fft_sink_f(self.panel, title="Post Filter", 
124                                                        fft_size=512, sample_rate=audio_rate,
125                                                        y_per_div=10, ref_level=-40)
126                    self.connect (self.guts.audio_filter, post_filt)
127                    vbox.Add (fft_win4, 4, wx.EXPAND)
128        
129                
130                # control area form at bottom
				

gnuradio/gnuradio-examples/python/usrp/usrp_nbfm_rcv.py — 3

PyFlakes undefined name 'fft_win4'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
123                    post_filt_fft = fftsink2.fft_sink_f(self.panel, title="Post Filter", 
124                                                        fft_size=512, sample_rate=audio_rate,
125                                                        y_per_div=10, ref_level=-40)
126                    self.connect (self.guts.audio_filter, post_filt)
127                    vbox.Add (fft_win4, 4, wx.EXPAND)
128        
129                
130                # control area form at bottom
131                self.myform = myform = form.form()
				

gnuradio/gnuradio-examples/python/usrp/usrp_spectrum_sense.py — 1

Category FIXME
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
67                self.center_freq = msg.arg1()
68                self.vlen = int(msg.arg2())
69                assert(msg.length() == self.vlen * gr.sizeof_float)
70        
71                # FIXME consider using Numarray or NumPy vector
72                t = msg.to_string()
73                self.raw_data = t
74                self.data = struct.unpack('%df' % (self.vlen,), t)
75        
				

gnuradio/gnuradio-examples/python/usrp/usrp_spectrum_sense.py — 2

Category FIXME
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
165                    power += tap*tap
166                    
167                c2mag = gr.complex_to_mag_squared(self.fft_size)
168        
169                # FIXME the log10 primitive is dog slow
170                log = gr.nlog10_ff(10, self.fft_size,
171                                   -20*math.log10(self.fft_size)-10*math.log10(power/self.fft_size))
172        		
173                # Set the freq_step to 75% of the actual data throughput.
				

gnuradio/gnuradio-examples/python/usrp/usrp_spectrum_sense.py — 3

Category FIXME
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
187                self._tune_callback = tune(self)        # hang on to this to keep it from being GC'd
188                stats = gr.bin_statistics_f(self.fft_size, self.msgq,
189                                            self._tune_callback, tune_delay, dwell_delay)
190        
191                # FIXME leave out the log10 until we speed it up
192        	#self.connect(self.u, s2v, fft, c2mag, log, stats)
193        	self.connect(self.u, s2v, fft, c2mag, stats)
194        
195                if options.gain is None:
				

gnuradio/gnuradio-examples/python/usrp/usrp_spectrum_sense.py — 4

Category FIXME
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
241        
242                # Print center freq so we know that something is happening...
243                print m.center_freq
244        
245                # FIXME do something useful with the data...
246                
247                # m.data are the mag_squared of the fft output (they are in the
248                # standard order.  I.e., bin 0 == DC.)
249                # You'll probably want to do the equivalent of "fftshift" on them
				

gnuradio/gnuradio-examples/python/usrp/usrp_tv_rcv.py — 1

PyFlakes undefined name 's2f'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
207                  self.connect (self.src, self.agc,self.am_demod,self.invert_and_scale, self.set_blacklevel,f2uc,self.dst)
208                elif process_type=='do_tv_sync_adv':
209                  #defaults: gr.tv_sync_adv (double sampling_freq, unsigned int tv_format,bool output_active_video_only=false, bool do_invert=false, double wanted_black_level=0.0, double wanted_white_level=255.0, double avg_alpha=0.1, double initial_gain=1.0, double initial_offset=0.0,bool debug=false)
210                  self.tv_sync_adv=gr.tv_sync_adv(usrp_rate,0,False,False,0.0,255.0,0.01,1.0,0.0,False) #note, this block is not yet in cvs
211                  self.connect (self.src, self.am_demod,self.invert_and_scale,self.tv_sync_adv,s2f,f2uc,self.dst) 
212                elif process_type=='do_nullsink':
213                  #self.connect (self.src, self.am_demod,self.invert_and_scale,f2uc,video_sink)
214                  c2r=gr.complex_to_real()
215                  nullsink=gr.null_sink(gr.sizeof_float)
				

gnuradio/gnuradio-examples/python/usrp/usrp_tv_rcv.py — 2

PyFlakes undefined name 'fftsink'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
252                    return self.set_freq(kv['freq'])
253        
254        
255                if 0:
256                    self.src_fft = fftsink.fft_sink_c (self, self.panel, title="Data from USRP",
257                                                       fft_size=512, sample_rate=usrp_rate)
258                    self.connect (self.src, self.src_fft)
259                    vbox.Add (self.src_fft.win, 4, wx.EXPAND)
260        
				

gnuradio/gnuradio-examples/python/usrp/usrp_tv_rcv.py — 3

PyFlakes undefined name 'fftsink'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
258                    self.connect (self.src, self.src_fft)
259                    vbox.Add (self.src_fft.win, 4, wx.EXPAND)
260        
261                if 0:
262                    post_demod_fft = fftsink.fft_sink_f (self, self.panel, title="Post Demod",
263                                                          fft_size=512, sample_rate=demod_rate,
264                                                          y_per_div=10, ref_level=-40)
265                    self.connect (self.am_demod, post_demod_fft)
266                    vbox.Add (post_demod_fft.win, 4, wx.EXPAND)
				

gnuradio/gnuradio-examples/python/usrp/usrp_tv_rcv.py — 4

PyFlakes undefined name 'fftsink'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
265                    self.connect (self.am_demod, post_demod_fft)
266                    vbox.Add (post_demod_fft.win, 4, wx.EXPAND)
267        
268                if 0:
269                    post_filt_fft = fftsink.fft_sink_f (self, self.panel, title="Post Filter", 
270                                                        fft_size=512, sample_rate=audio_rate,
271                                                        y_per_div=10, ref_level=-40)
272                    self.connect (self.set_blacklevel, post_filt)
273                    vbox.Add (fft_win4, 4, wx.EXPAND)
				

gnuradio/gnuradio-examples/python/usrp/usrp_tv_rcv.py — 5

PyFlakes undefined name 'post_filt'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
268                if 0:
269                    post_filt_fft = fftsink.fft_sink_f (self, self.panel, title="Post Filter", 
270                                                        fft_size=512, sample_rate=audio_rate,
271                                                        y_per_div=10, ref_level=-40)
272                    self.connect (self.set_blacklevel, post_filt)
273                    vbox.Add (fft_win4, 4, wx.EXPAND)
274        
275                
276                # control area form at bottom
				

gnuradio/gnuradio-examples/python/usrp/usrp_tv_rcv.py — 6

PyFlakes undefined name 'fft_win4'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
269                    post_filt_fft = fftsink.fft_sink_f (self, self.panel, title="Post Filter", 
270                                                        fft_size=512, sample_rate=audio_rate,
271                                                        y_per_div=10, ref_level=-40)
272                    self.connect (self.set_blacklevel, post_filt)
273                    vbox.Add (fft_win4, 4, wx.EXPAND)
274        
275                
276                # control area form at bottom
277                self.myform = myform = form.form()
				

gnuradio/gnuradio-examples/python/usrp/usrp_wfm_rcv_fmdet.py

Category FIXME
Committer n4hy
Commit ID 58bd4ceaee4884652a682297a49957137cafa56d
114        
115                #self.guts = blks2.wfm_rcv (demod_rate, audio_decimation)
116                self.guts = blks2.wfm_rcv_fmdet (demod_rate, audio_decimation)
117        
118                # FIXME rework {add,multiply}_const_* to handle multiple streams
119                self.volume_control_l = gr.multiply_const_ff(self.vol)
120                self.volume_control_r = gr.multiply_const_ff(self.vol)
121        
122                # sound card as final sink
				

gnuradio/gnuradio-examples/python/usrp/usrp_wfm_rcv_pll.py

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
114        
115                #self.guts = blks2.wfm_rcv (demod_rate, audio_decimation)
116                self.guts = blks2.wfm_rcv_pll (demod_rate, audio_decimation)
117        
118                # FIXME rework {add,multiply}_const_* to handle multiple streams
119                self.volume_control_l = gr.multiply_const_ff(self.vol)
120                self.volume_control_r = gr.multiply_const_ff(self.vol)
121        
122                # sound card as final sink