secondary fft is now complex, better display for digimodes based on FM

This commit is contained in:
Jakob Ketterl
2020-09-17 22:21:49 +02:00
parent 82825fee41
commit 6a6d4a3c9b
2 changed files with 12 additions and 23 deletions

View File

@ -278,9 +278,9 @@ class dsp(object):
chain = ["cat {input_pipe}"]
if which == "fft":
chain += [
"csdr realpart_cf",
"csdr fft_fc {secondary_fft_input_size} {secondary_fft_block_size}",
"csdr fft_cc {secondary_fft_input_size} {secondary_fft_block_size}",
"csdr logpower_cf -70",
"csdr fft_exchange_sides_ff {secondary_fft_input_size}",
]
if self.fft_compression == "adpcm":
chain += ["csdr compress_fft_adpcm_f_u8 {secondary_fft_size}"]
@ -318,9 +318,7 @@ class dsp(object):
self.restart()
def secondary_fft_block_size(self):
return (self.samp_rate / self.decimation) / (
self.fft_fps * 2
) # *2 is there because we do FFT on real signal here
return (self.samp_rate / self.decimation) / self.fft_fps
def secondary_decimation(self):
return 1 # currently unused