From aded9ddfbc0605df9748fe108d8a969769ae0c5c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 26 Sep 2020 20:33:49 +0800 Subject: [PATCH] adjust throttle factor based on sample rate --- dmi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dmi.py b/dmi.py index 34d6d27..afec8cf 100644 --- a/dmi.py +++ b/dmi.py @@ -1,3 +1,5 @@ +from math import ceil + import SoapySDR import numpy as np import gc @@ -13,6 +15,7 @@ def main(): freq_sample = 1e6 freq_base = 1088230e3 block_size = 4096 + throttle_factor = ceil(freq_sample/125e3) gui = GUI(freq_sample, freq_base, block_size) try: @@ -36,7 +39,6 @@ def main(): buf_sdr.start() try: throttle = 0 - throttle_factor = 8 position_acc = 0.0 while True: buffers = buf_sdr.get()