基本值调整

This commit is contained in:
2026-04-24 18:07:58 +08:00
parent 613153e664
commit 2d91a579a9
2 changed files with 28 additions and 61 deletions

View File

@@ -86,7 +86,7 @@ public static class ModbusHelper
//// 过滤无效信号
private const int ValidSignalThreshold = 10;
private const int ValidSignalThreshold = 12;
private static void FilterInvalidSignals(List<ushort> data)
{
@@ -97,13 +97,12 @@ public static class ModbusHelper
}
}
/// <summary>
/// 计算单眼视野面积
/// </summary>
/// <param name="groupData">20组数据每组72个通道</param>
/// <param name="threshold">有效亮度阈值(如80</param>
/// <param name="standardTotalArea">标准视野面积如120</param>
/// <param name="threshold">有效亮度阈值(如12</param>
/// <param name="standardTotalArea">标准视野面积如140</param>
/// <returns>计算好的面积</returns>
///
public static double CalculateEyeArea(List<double[]> groupData, double threshold, double standardArea)
@@ -202,7 +201,7 @@ public static class ModbusHelper
/// eyeData单眼72路平均数据数组
/// threshold有效亮度阈值
/// </summary>
public static double CalcLowerAngle(double[] eyeData, double threshold = 10)
public static double CalcLowerAngle(double[] eyeData, double threshold = 12)
{
// 总72点 每点5°
int totalPoint = 72;
@@ -390,6 +389,11 @@ public static class ModbusHelper
throw new NotImplementedException();
}
internal static List<dynamic> RemoveOutliers(List<dynamic> leftEyeDataList)
{
throw new NotImplementedException();
}
// 你算出来的实际面积
//double left = 4250;