aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Baudis <pasky@ucw.cz>2012-07-03 23:43:08 +0200
committerHarald Welte <laforge@gnumonks.org>2015-08-21 01:52:27 +0200
commit7d6f7287d7b8a7db5aa6f172b06b1f51fe198283 (patch)
tree00e962f207ec13ce0365f04353b788efcc500d77
parent89f01f35013094ba5fbc2f7bbcd70601bc562824 (diff)
osmosdr-tetra_demod_fft.py: More verbose fine-tuning messages
-rwxr-xr-xsrc/demod/python/osmosdr-tetra_demod_fft.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demod/python/osmosdr-tetra_demod_fft.py b/src/demod/python/osmosdr-tetra_demod_fft.py
index 2b2918a..c8585bf 100755
--- a/src/demod/python/osmosdr-tetra_demod_fft.py
+++ b/src/demod/python/osmosdr-tetra_demod_fft.py
@@ -169,8 +169,8 @@ class top_block(grc_wxgui.top_block_gui):
if abs(x / (sample_rate / 2)) > 0.9:
set_ifreq(self.ifreq + x / 2)
else:
- sys.stderr.write("coarse tuned to: %d Hz\n" % x)
self.offset = -x
+ sys.stderr.write("coarse tuned to: %d Hz => %d Hz\n" % (self.offset, (self.ifreq + self.offset)))
self.tuner.set_center_freq(self.offset)
self.scope = fftsink2.fft_sink_c(self.Main.GetPage(0).GetWin(),
@@ -191,7 +191,7 @@ class top_block(grc_wxgui.top_block_gui):
def fftsink2_callback2(x, y):
self.offset = self.offset - (x / 10)
- sys.stderr.write("fine tuned to: %d Hz\n" % self.offset)
+ sys.stderr.write("fine tuned to: %d Hz => %d Hz\n" % (self.offset, (self.ifreq + self.offset)))
self.tuner.set_center_freq(self.offset)
self.scope2 = fftsink2.fft_sink_c(self.Main.GetPage(1).GetWin(),