make the secondary fft run faster again

This commit is contained in:
Jakob Ketterl 2020-09-17 22:57:40 +02:00
parent b9e19421c1
commit a3285d5943

View File

@ -320,10 +320,10 @@ class dsp(object):
self.restart() self.restart()
def secondary_fft_block_size(self): def secondary_fft_block_size(self):
base = (self.samp_rate / self.decimation) / (self.fft_fps * 2)
if self.fft_averages == 0: if self.fft_averages == 0:
return (self.samp_rate / self.decimation) / self.fft_fps return base
else: return base / self.fft_averages
return (self.samp_rate / self.decimation) / self.fft_fps / self.fft_averages
def secondary_decimation(self): def secondary_decimation(self):
return 1 # currently unused return 1 # currently unused