提交位移台和对焦系统代码
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using HardwareControl.Core.AxisPlatform;
|
||||
using HardwareControl.Core.FocusSystem;
|
||||
using HardwareControl.Core.HardwareServiceImpl;
|
||||
using HardwareControl.Core.HardwareServiceImpl.HardwareService;
|
||||
using HardwareControl.Core.SampleAnalysis;
|
||||
@@ -56,6 +58,15 @@ builder.Services.AddSingleton<BackgroundDiffSegmenter>();
|
||||
builder.Services.AddSingleton<TargetOutlineAnalyzer>();
|
||||
builder.Services.AddSingleton<ISampleAnalysisService, SampleAnalysisService>();
|
||||
|
||||
// 9. 位移台:串口优先取系统参数 translation_com,未配置时回退到 appsettings 的 AxisStage:ComPort
|
||||
builder.Services.Configure<AxisStageOptions>(
|
||||
builder.Configuration.GetSection(AxisStageOptions.SectionName));
|
||||
builder.Services.AddSingleton<IAxisStageService, AxisStageService>();
|
||||
|
||||
// 10. 对焦系统:串口优先取系统参数 focus_com,未配置时回退到 appsettings 的 FocusSystem:ComPort
|
||||
builder.Services.Configure<FocusSystemOptions>(
|
||||
builder.Configuration.GetSection(FocusSystemOptions.SectionName));
|
||||
builder.Services.AddSingleton<IFocusSystemService, FocusSystemService>();
|
||||
|
||||
builder.Services.AddControllers();
|
||||
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
||||
|
||||
Reference in New Issue
Block a user