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()