mirror of
https://github.com/brmlab/osmo-tetra.git
synced 2025-06-07 17:34:10 +02:00
osmosdr-tetra_demod_fft.py: More verbose fine-tuning messages
This commit is contained in:
parent
0be1bc99c1
commit
624a0c1561
1 changed files with 2 additions and 2 deletions
|
@ -173,8 +173,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(),
|
||||
|
@ -195,7 +195,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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue