范式相关代码修改完成

This commit is contained in:
2026-06-07 11:05:24 +08:00
parent d576cae3c0
commit 880caa9f7b
16 changed files with 121 additions and 237 deletions

View File

@@ -4,6 +4,7 @@
"""
import numpy as np
import threading
from scipy import signal
from logs.log import algo_log
class FilterRingBuffer:
@@ -16,7 +17,7 @@ class FilterRingBuffer:
self.n_chan = n_chan
self.n_points = n_points
self.buffer = np.zeros((n_chan, n_points), dtype=np.float64)
self.buffer = np.zeros((n_chan, n_points), dtype=np.float32)
self.current_ptr = 0 # 写入指针
self.total_samples = 0 # 已写入总点数