fix DAB coarse sync problems caused by bandpass

This commit is contained in:
Jakob Ketterl 2024-02-13 00:48:23 +01:00
parent ac0b799b11
commit 6d52538422
3 changed files with 4 additions and 5 deletions

View file

@ -33,7 +33,6 @@ class MetaProcessor(PickleModule):
self._nudgeShift(random() * -self.coarse_increment)
elif key == "fine_frequency_shift":
if abs(value) > 10:
logger.debug("ffs: %f", value)
self._nudgeShift(self.fine_increment * value)
else:
# pass through everything else

View file

@ -44,8 +44,8 @@ cd ..
rm -rf pycsdr
git clone https://github.com/jketterl/csdr-eti.git
# latest develop as of 2024-02-12 (memory leak fix)
cmakebuild csdr-eti 3f6134327c2a00840e54f9ce5d0e0f0899a2cf8c
# latest develop as of 2024-02-13 (coarse frequency shift fix)
cmakebuild csdr-eti 0a14f9dded466be227ade4d11fe1419169a9649b
git clone https://github.com/jketterl/pycsdr-eti.git
cd pycsdr-eti

View file

@ -234,8 +234,8 @@ function Demodulator(offset_frequency, modulation) {
this.state = {};
this.secondary_demod = false;
var mode = Modes.findByModulation(modulation);
this.low_cut = mode && mode.bandpass && mode.bandpass.low_cut;
this.high_cut = mode && mode.bandpass && mode.bandpass.high_cut;
this.low_cut = mode && mode.bandpass && mode.bandpass.low_cut || null;
this.high_cut = mode && mode.bandpass && mode.bandpass.high_cut || null;
this.ifRate = mode && mode.ifRate;
this.listeners = {
"frequencychange": [],