Kludge Tracker: Gnuradio - v3.4.0-101-g7e2b45b
Parent Directory
(gnuradio/gr-msdd6000/src)
Kludge Summary of gnuradio/gr-msdd6000/src/python-examples
| Total Kludges |
9 |
| Total Subdirs |
0 |
All Directories within gnuradio/gr-msdd6000/src/python-examples
All Files within gnuradio/gr-msdd6000/src/python-examples
Kludge Snippets in gnuradio/gr-msdd6000/src/python-examples
gnuradio/gr-msdd6000/src/python-examples/msdd_fft.py
| Category |
FIXME |
| Committer |
n4hy |
| Commit ID |
2b77cc7bc535618c4bba6ce1f3d6fa388e843933 |
186
187 def _build_subpanel(self, vbox_arg):
188 # build a secondary information panel (sometimes hidden)
189
190 # FIXME figure out how to have this be a subpanel that is always
191 # created, but has its visibility controlled by foo.Show(True/False)
192
193 def _form_set_decim(kv):
194 return self.set_decim(kv['decim'])
gnuradio/gr-msdd6000/src/python-examples/msdd_rs_spec_an.py
| PyFlakes |
redefinition of unused 'qtgui' from line 27 |
| Committer |
Eric Blossom |
| Commit ID |
e820ce5ca1475a56ef52e7384d0cf094b0127932 |
28 from optparse import OptionParser
29 import sys,time
30
31 try:
32 from gnuradio.qtgui import qtgui
33 from PyQt4 import QtGui, QtCore
34 import sip
35 except ImportError:
36 print "Please install gr-qtgui."
gnuradio/gr-msdd6000/src/python-examples/msdd_spectrum_sense.py — 1
| Category |
FIXME |
| Committer |
n4hy |
| Commit ID |
2b77cc7bc535618c4bba6ce1f3d6fa388e843933 |
210
211 norm = gr.multiply_const_cc(1.0/self.fft_size)
212 c2mag = gr.complex_to_mag_squared(self.fft_size)
213
214 # FIXME the log10 primitive is dog slow
215 log = gr.nlog10_ff(10, self.fft_size,
216 -20*math.log10(self.fft_size)-10*math.log10(power/self.fft_size))
217
218 # Set the freq_step to % of the actual data throughput.
gnuradio/gr-msdd6000/src/python-examples/msdd_spectrum_sense.py — 2
| Category |
FIXME |
| Committer |
n4hy |
| Commit ID |
2b77cc7bc535618c4bba6ce1f3d6fa388e843933 |
233 self._tune_callback = tune(self) # hang on to this to keep it from being GC'd
234 stats = gr.bin_statistics_f(self.fft_size, self.msgq,
235 self._tune_callback, tune_delay, dwell_delay)
236
237 # FIXME leave out the log10 until we speed it up
238 self.connect(self.src, s2v, fft, c2mag, log, stats)
239
240
241 def set_next_freq(self):
gnuradio/gr-msdd6000/src/python-examples/msdd_spectrum_sense.py — 3
| Category |
FIXME |
| Committer |
n4hy |
| Commit ID |
2b77cc7bc535618c4bba6ce1f3d6fa388e843933 |
276
277 # Print center freq so we know that something is happening...
278 print msgparser.center_freq
279
280 # FIXME do something useful with the data...
281
282 # m.data are the mag_squared of the fft output (they are in the
283 # standard order. I.e., bin 0 == DC.)
284 # You'll probably want to do the equivalent of "fftshift" on them
gnuradio/gr-msdd6000/src/python-examples/msdd_spectrum_waterfall.py — 1
| Category |
FIXME |
| Committer |
n4hy |
| Commit ID |
2b77cc7bc535618c4bba6ce1f3d6fa388e843933 |
219
220 # calculate magnitude squared of output of FFT
221 c2mag = gr.complex_to_mag_squared(self.fft_size)
222
223 # FIXME the log10 primitive is dog slow
224 log = gr.nlog10_ff(10, self.fft_size,
225 -20*math.log10(self.fft_size)-10*math.log10(power/self.fft_size))
226
227 # Set the freq_step to % of the actual data throughput.
gnuradio/gr-msdd6000/src/python-examples/msdd_spectrum_waterfall.py — 2
| Category |
FIXME |
| Committer |
n4hy |
| Commit ID |
2b77cc7bc535618c4bba6ce1f3d6fa388e843933 |
244 # set up message callback routine to get data from bin_statistics_f block
245 self.msgq = gr.msg_queue(16)
246 self._tune_callback = tune(self) # hang on to this to keep it from being GC'd
247
248 # FIXME this block doesn't like to work with negatives because of the "d_max[i]=0" on line
249 # 151 of gr_bin_statistics_f.cc file. Set this to -10000 or something to get it to work.
250 stats = gr.bin_statistics_f(self.fft_size, self.msgq,
251 self._tune_callback, tune_delay, dwell_delay)
252
gnuradio/gr-msdd6000/src/python-examples/msdd_spectrum_waterfall.py — 3
| Category |
FIXME |
| Committer |
n4hy |
| Commit ID |
2b77cc7bc535618c4bba6ce1f3d6fa388e843933 |
249 # 151 of gr_bin_statistics_f.cc file. Set this to -10000 or something to get it to work.
250 stats = gr.bin_statistics_f(self.fft_size, self.msgq,
251 self._tune_callback, tune_delay, dwell_delay)
252
253 # FIXME there's a concern over the speed of the log calculation
254 # We can probably calculate the log inside the stats block
255 self.connect(self.src, self.conv, s2v, fft, c2mag, log, stats)
256
257
gnuradio/gr-msdd6000/src/python-examples/new_msdd_fft.py
| Category |
FIXME |
| Committer |
n4hy |
| Commit ID |
2b77cc7bc535618c4bba6ce1f3d6fa388e843933 |
180
181 def _build_subpanel(self, vbox_arg):
182 # build a secondary information panel (sometimes hidden)
183
184 # FIXME figure out how to have this be a subpanel that is always
185 # created, but has its visibility controlled by foo.Show(True/False)
186
187 def _form_set_decim(kv):
188 return self.set_decim(kv['decim'])