Skip to content

Commit

Permalink
moved decimation in multivfo output to better match single output fun…
Browse files Browse the repository at this point in the history
…ctionality (#11)
  • Loading branch information
peads authored May 26, 2024
1 parent decdc3c commit 484c6c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dsp/vfo_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def __init__(self,

def processVfoChunk(self, y, freq) -> np.ndarray[any, np.real] | None:
try:
y = shiftFreq(y, freq, self.decimatedFs)
y = shiftFreq(y, freq, self.fs)
y = signal.decimate(y, self.decimation, ftype='fir')
y = signal.sosfilt(self.sosIn, y)
y = self.demod(y)
return applyFilters(y, self.outputFilters)
Expand Down Expand Up @@ -103,7 +104,6 @@ def processData(self, isDead: Value, pipe: Pipe, _) -> None:
y = self.correctIq.correctIq(y)
y = shiftFreq(y, self.centerFreq, self.fs)

y = signal.decimate(y, self.decimation, ftype='fir')
results = pool.map_async(partial(self.processVfoChunk, y), self.vfos)
[outWriter.send(r) for r in results.get()]
except (EOFError, KeyboardInterrupt, BrokenPipeError):
Expand Down

0 comments on commit 484c6c8

Please sign in to comment.