This commit is contained in:
2026-04-28 09:14:00 +08:00
parent 789fabde02
commit 8d3efaeb4c

View File

@@ -40,7 +40,7 @@ namespace 头罩视野.Services
{
if (Math.Abs(data[i] - data[i - 1]) > OutlierDiffThreshold && Math.Abs(data[i] - data[i + 1]) > OutlierDiffThreshold)
{
data[i] = (ushort)((data[i - 1] + data[i + 1]) / 2);
data[i] = (dynamic)((data[i - 1] + data[i + 1]) / 2);
}
//过滤无效信号
if (data[i] < threshold)