aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoman Khassraf <roman@khassraf.at>2016-11-20 22:11:46 +0100
committerRoman Khassraf <roman@khassraf.at>2016-11-20 22:11:46 +0100
commita5f5a315598a1f835abbb7e61a178979b8811812 (patch)
tree688d1c5c9fb6ffb1176f8f29f904e322f2398cfb /apps
parent1591cdebdff5393a884544b21bece270a0648840 (diff)
Fixes incorrect arguments in wideband_scanner
Diffstat (limited to 'apps')
-rwxr-xr-xapps/grgsm_scanner4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/grgsm_scanner b/apps/grgsm_scanner
index acd48d9..1688310 100755
--- a/apps/grgsm_scanner
+++ b/apps/grgsm_scanner
@@ -220,7 +220,7 @@ class wideband_scanner(gr.top_block):
# correction of central frequency
# if the receiver has large frequency offset
# the value of this variable should be set close to that offset in ppm
- self.rtlsdr_source.set_freq_corr(options.ppm, 0)
+ self.rtlsdr_source.set_freq_corr(ppm, 0)
self.rtlsdr_source.set_dc_offset_mode(2, 0)
self.rtlsdr_source.set_iq_balance_mode(0, 0)
@@ -230,7 +230,7 @@ class wideband_scanner(gr.top_block):
self.head = blocks.head(gr.sizeof_gr_complex * 1, int(rec_len * sample_rate))
# shift again by -0.1MHz in order to align channel center in 0Hz
- self.blocks_rotator_cc = blocks.rotator_cc(-2 * pi * 0.1e6 / options.samp_rate)
+ self.blocks_rotator_cc = blocks.rotator_cc(-2 * pi * 0.1e6 / sample_rate)
self.wideband_receiver = wideband_receiver(OSR=4, fc=carrier_frequency, samp_rate=sample_rate)
self.gsm_extract_system_info = grgsm.extract_system_info()