Revert ""

This reverts commit 9051f3e858.
This commit is contained in:
xyy
2026-05-16 10:43:53 +08:00
parent 87e7b4cf35
commit 74e66f51d3
2 changed files with 14 additions and 0 deletions

View File

@@ -16,6 +16,13 @@ namespace 头罩视野.Services
public static double verticalAngleStep = 90.0 / (totalLights - 1); // 上下灯条用
public static double horizontalAngleStep = 180.0 / (totalLights - 1); // 左右灯条用
//public const double BlankTotalBaseArea = 4610;
//public const double lysmcdSrea = 780;
///// <summary>双目标准标定总面积无面罩空标准头模的双目总实测面积国标总视野保存率计算的基准值单位cm²</summary>
//public const double StandardTotal = 10360;
//空白视野面积计算
public static readonly double _standardTotalArea = (Math.PI * R * R) / 100;

View File

@@ -510,6 +510,11 @@ namespace 头罩视野.Views
tbTest.Background = System.Windows.Media.Brushes.LightGray;
await _modbusMaster.WriteSingleCoilAsync(1, 41, false);
}
private void Button_Click_home(object sender, RoutedEventArgs e)
{
NavigationService.Content = null;
}
//读取数据
private DispatcherTimer InitDispatcherTimer()
@@ -810,6 +815,7 @@ namespace 头罩视野.Views
_timer.Stop();
NavigationService.Content = new Views.PageTest();
}
private void GoRecord(object s, RoutedEventArgs e) => NavigationService.Content = new Views.RecordDate();
private void GoView(object s, RoutedEventArgs e) => NavigationService.Content = new Views.RecordPage();
//初始化数据
private void InitAllDataAsync()
@@ -854,6 +860,7 @@ namespace 头罩视野.Views
_modbusMaster.WriteSingleCoil(1, 0, false);
}
}
}