add sleep if open impedence
This commit is contained in:
@@ -56,7 +56,7 @@ EMPTY_FRAME = b""
|
||||
|
||||
# 仿真信号配置
|
||||
TARGET_CHANNEL = 0
|
||||
SIGNAL_FREQ_LIST = [3, 13]
|
||||
SIGNAL_FREQ_LIST = [13]
|
||||
SIGNAL_AMP = 1.8
|
||||
NOISE_GAUSSIAN_AMP = 0.4
|
||||
NOISE_POWER50_AMP = 0.3
|
||||
@@ -128,8 +128,8 @@ def generate_eeg_packet(pkt_idx: int) -> np.ndarray:
|
||||
sig = 0.0
|
||||
for freq in SIGNAL_FREQ_LIST:
|
||||
sig += SIGNAL_AMP * np.sin(2 * np.pi * freq * t_arr)
|
||||
sig += NOISE_POWER50_AMP * np.sin(2 * np.pi * 50 * t_arr)
|
||||
sig += NOISE_GAUSSIAN_AMP * np.random.randn(n_point)
|
||||
# sig += NOISE_POWER50_AMP * np.sin(2 * np.pi * 50 * t_arr)
|
||||
# sig += NOISE_GAUSSIAN_AMP * np.random.randn(n_point)
|
||||
data[:, ch] = sig
|
||||
|
||||
# 事件通道、保留通道
|
||||
|
||||
Reference in New Issue
Block a user