Kludge Tracker: Gnuradio - v3.4.0-101-g7e2b45b
Parent Directory
(gnuradio/gr-msdd6000)
Kludge Summary of gnuradio/gr-msdd6000/src
| Total Kludges |
14 |
| Total Subdirs |
1 |
All Directories within gnuradio/gr-msdd6000/src
All Files within gnuradio/gr-msdd6000/src
Kludge Snippets in gnuradio/gr-msdd6000/src
gnuradio/gr-msdd6000/src/msdd6000.cc
| Category |
FIXME |
| Committer |
eb |
| Commit ID |
a36b922fa54458ccc432e794a47415115519bf6a |
115 }
116
117
118 // SET UP SOME SYSTEM WIDE TCP SOCKET PARAMETERS
119 // FIXME seems like kind of a big hammer. Are you sure you need this?
120 FILE* fd = fopen("/proc/sys/net/core/netdev_max_backlog", "w");
121 if (fd){
122 fwrite("10000", 1, strlen("10000"), fd);
123 fclose(fd);
gnuradio/gr-msdd6000/src/msdd6000_rs.cc
| Category |
FIXME |
| Committer |
Eric Blossom |
| Commit ID |
e820ce5ca1475a56ef52e7384d0cf094b0127932 |
121 }
122
123
124 // SET UP SOME SYSTEM WIDE TCP SOCKET PARAMETERS
125 // FIXME seems like kind of a big hammer. Are you sure you need this?
126 FILE* fd = fopen("/proc/sys/net/core/netdev_max_backlog", "w");
127 if (fd){
128 fwrite("10000", 1, strlen("10000"), fd);
129 fclose(fd);
gnuradio/gr-msdd6000/src/msdd_rs_source_simple.cc — 1
| Category |
FIXME |
| Committer |
Eric Blossom |
| Commit ID |
e820ce5ca1475a56ef52e7384d0cf094b0127932 |
70
71 char type = buffer[0];
72 //printf("Sequence %d\n",seq);
73
74 // FIXME get rid of these magic 366's!
75 if(d_lastseq == -366)
76 {
77 if (type != 0){
78 /* Received control packet -- parse and update locally stored parameters */
gnuradio/gr-msdd6000/src/msdd_rs_source_simple.cc — 2
| Category |
Magic |
| Committer |
Eric Blossom |
| Commit ID |
e820ce5ca1475a56ef52e7384d0cf094b0127932 |
70
71 char type = buffer[0];
72 //printf("Sequence %d\n",seq);
73
74 // FIXME get rid of these magic 366's!
75 if(d_lastseq == -366)
76 {
77 if (type != 0){
78 /* Received control packet -- parse and update locally stored parameters */
gnuradio/gr-msdd6000/src/msdd_rs_source_simple.cc — 3
| Category |
FIXME |
| Committer |
Eric Blossom |
| Commit ID |
e820ce5ca1475a56ef52e7384d0cf094b0127932 |
124 }
125
126 //bool msdd_rs_source_simple::set_decim_rate(unsigned int rate)
127 //{
128 // // FIXME seems buggy. How about a floor or ceil?
129 // rcv->set_decim((int) log2(rate));
130 // return true;
131 //}
132
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'])