基本值调整
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user