From 5ae36be4c630fad93bfe9c0febabefea499a30a5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 10 Aug 2020 20:53:36 +0800 Subject: [PATCH] fix loop parameters scaling --- dmi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmi.py b/dmi.py index ffd179c..1efa5b8 100644 --- a/dmi.py +++ b/dmi.py @@ -23,7 +23,7 @@ def main(): gui.update_beat_spectrum(spectrum, peak_freq) induction.set(tuning) - stabilizer = Stabilizer(block_size, 80.0, 1088.1e6 - freq_base, 10e-6, stabilizer_cb) + stabilizer = Stabilizer(block_size, 80.0, (1088.1e6 - freq_base)/freq_sample, 50.0, stabilizer_cb) position_tracker = PositionTracker(int(0.1*freq_sample/block_size)) sdr = SoapySDR.Device()