clarify s-meter interval calculations

This commit is contained in:
Jakob Ketterl 2021-07-25 00:17:27 +02:00
parent 207ada70fd
commit 6db80ec51a
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,10 @@ class DemodulatorChain(Chain):
bp_transition = 320.0 / if_samp_rate
self.bandpass = Bandpass(transition=bp_transition, use_fft=True)
self.squelch = Squelch(5, int(if_samp_rate / 6000))
readings_per_second = 4
# s-meter readings are available every 1024 samples
# the reporting interval is measured in those 1024-sample blocks
self.squelch = Squelch(5, int(if_samp_rate / (readings_per_second * 1024)))
workers = [self.shift, self.decimation]