@@ -71,7 +71,8 @@ def __init__(self):
71
71
self ._rf_gain_config = ConfigParser .ConfigParser ()
72
72
self ._rf_gain_config .read (file_name )
73
73
try : rf_gain = self ._rf_gain_config .getfloat ('tx' , 'tx_rf_gain' )
74
- except : rf_gain = 10
74
+ except : rf_gain = 60
75
+ print ("RF Gain: " + str (rf_gain ))
75
76
self .rf_gain = rf_gain
76
77
self ._offset_config = ConfigParser .ConfigParser ()
77
78
self ._offset_config .read (file_name )
@@ -131,6 +132,8 @@ def __init__(self):
131
132
self .osmosdr_sink_0 .set_bandwidth (0 , 0 )
132
133
133
134
self .blocks_wavfile_source_0 = blocks .wavfile_source (wav_file , False )
135
+ self .band_pass_filter_af = filter .fir_filter_fff (1 , firdes .band_pass (
136
+ 1 , wav_samp_rate , 300 , 2700 , 150 , firdes .WIN_HAMMING , 6.76 ))
134
137
self .blocks_multiply_xx_0_0 = blocks .multiply_vcc (1 )
135
138
self .blocks_multiply_xx_0 = blocks .multiply_vcc (1 )
136
139
self .blocks_multiply_const_vxx_0 = blocks .multiply_const_vff ((audio_gain , ))
@@ -154,7 +157,8 @@ def __init__(self):
154
157
self .connect ((self .blocks_multiply_const_vxx_0 , 0 ), (self .rational_resampler_xxx_0 , 0 ))
155
158
self .connect ((self .blocks_multiply_xx_0 , 0 ), (self .band_pass_filter_0 , 0 ))
156
159
self .connect ((self .blocks_multiply_xx_0_0 , 0 ), (self .rational_resampler_xxx_0_0 , 0 ))
157
- self .connect ((self .blocks_wavfile_source_0 , 0 ), (self .blocks_multiply_const_vxx_0 , 0 ))
160
+ self .connect ((self .blocks_wavfile_source_0 , 0 ), (self .band_pass_filter_af , 0 ))
161
+ self .connect ((self .band_pass_filter_af , 0 ), (self .blocks_multiply_const_vxx_0 , 0 ))
158
162
self .connect ((self .rational_resampler_xxx_0 , 0 ), (self .blocks_float_to_complex_0 , 1 ))
159
163
self .connect ((self .rational_resampler_xxx_0_0 , 0 ), (self .osmosdr_sink_0 , 0 ))
160
164
@@ -372,10 +376,10 @@ def check_time(cycle):
372
376
else :
373
377
if now < 30 :
374
378
print ("Waiting for 30 second mark" )
375
- time .sleep (30 - now )
379
+ time .sleep (( 30 - 0.4 ) - now )
376
380
else :
377
381
print ("Waiting for the top of the minute..." )
378
- time .sleep (60 - now )
382
+ time .sleep (( 60 - 0.4 ) - now )
379
383
380
384
def main (top_block_cls = usb_tx_bpf , options = None ):
381
385
0 commit comments