From 42d4400c99f15bbb7477de522d6d021b4053e79b Mon Sep 17 00:00:00 2001 From: Theodor Chikin Date: Wed, 28 Jan 2026 17:25:00 +0300 Subject: [PATCH] Number of valid points: averaging is done by 1 sec. (was 10 secs) --- RFG_ADC_dataplotter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RFG_ADC_dataplotter.py b/RFG_ADC_dataplotter.py index 88ed519..3a4c964 100755 --- a/RFG_ADC_dataplotter.py +++ b/RFG_ADC_dataplotter.py @@ -347,7 +347,7 @@ class SweepReader(threading.Thread): dt_ms = (now - self._last_sweep_ts) * 1000.0 self._last_sweep_ts = now self._n_valid_hist.append((now, n_valid_cur)) - while self._n_valid_hist and (now - self._n_valid_hist[0][0]) > 10.0: + while self._n_valid_hist and (now - self._n_valid_hist[0][0]) > 1.0: self._n_valid_hist.popleft() if self._n_valid_hist: n_valid = float(sum(v for _t, v in self._n_valid_hist) / len(self._n_valid_hist))