summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorPiotr Krysik <perper@o2.pl>2009-04-24 19:24:17 +0200
committerPiotr Krysik <perper@o2.pl>2009-04-24 19:24:17 +0200
commit8591703b11472fa62840e273e13febfe87829bd1 (patch)
tree8d221b9f718b320af882cc0d1ea901ee6d21aed0 /src/python
parent7894933871c7c880c594949f79c4e340a286d073 (diff)
Some changes to fcch search function and added first sch search functions
Diffstat (limited to 'src/python')
-rwxr-xr-xsrc/python/gsm_findfcch.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/python/gsm_findfcch.py b/src/python/gsm_findfcch.py
index 7ab9c18..9c0620b 100755
--- a/src/python/gsm_findfcch.py
+++ b/src/python/gsm_findfcch.py
@@ -10,7 +10,7 @@ from os import sys
for extdir in ['../../debug/src/lib','../../debug/src/lib/.libs']:
if extdir not in sys.path:
sys.path.append(extdir)
-import gsm
+import gsm
class tune(gr.feval_dd):
def __init__(self, top_block):
@@ -57,13 +57,13 @@ class gsm_receiver_first_blood(gr.top_block):
self.clock_rate = clock_rate
self.input_rate = clock_rate / options.decim
self.gsm_symb_rate = 1625000.0 / 6.0
- self.sps = self.input_rate / self.gsm_symb_rate
+ self.sps = ( self.input_rate / self.gsm_symb_rate ) / options.osr
def _ustaw_filtr(self):
filter_cutoff = 145e3
filter_t_width = 10e3
offset = 0
- print "input_rate:", self.input_rate, "sample rate:", self.sps, " filter_cutoff:", filter_cutoff, " filter_t_width:", filter_t_width
+ #print "input_rate:", self.input_rate, "sample rate:", self.sps, " filter_cutoff:", filter_cutoff, " filter_t_width:", filter_t_width
filter_taps = gr.firdes.low_pass(1.0, self.input_rate, filter_cutoff, filter_t_width, gr.firdes.WIN_HAMMING)
filtr = gr.freq_xlating_fir_filter_ccf(1, filter_taps, offset, self.input_rate)
return filtr
personal git repositories of Harald Welte. Your mileage may vary