mirror of
				https://github.com/brmlab/osmo-tetra.git
				synced 2025-10-30 15:04:01 +01:00 
			
		
		
		
	osmosdr-tetra_demod_fft.py: More verbose fine-tuning messages
This commit is contained in:
		
							parent
							
								
									89f01f3501
								
							
						
					
					
						commit
						7d6f7287d7
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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(), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Petr Baudis
						Petr Baudis