Sfoglia il codice sorgente

注册LightManagerService及AddLightController对话框

在依赖注入容器中注册了ILightManagerService及其实现,并新增AddLightController对话框的注册。同时,调整了XYZU_Robot.cs中StopMove()的调用方式,便于后续调试或维护。
孝锋 徐 8 mesi fa
parent
commit
60bcb6c68d
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 2 0
      TeamAAS-VM/App.xaml.cs
  2. 1 1
      TeamAAS-VM/Core/Robots/XYZU_Robot.cs

+ 2 - 0
TeamAAS-VM/App.xaml.cs

@@ -113,6 +113,7 @@ namespace TeamAAS_VP
             containerRegistry.RegisterSingleton<IFeederService, FeederService>();
             containerRegistry.RegisterSingleton<IProductService, ProductService>();
             containerRegistry.RegisterSingleton<IRemoteCommandService, RemoteCommandService>();
+            containerRegistry.RegisterSingleton<ILightManagerService, LightManagerService>();
             containerRegistry.RegisterSingleton<Management>();
 
             // Register system database service and initializer
@@ -167,6 +168,7 @@ namespace TeamAAS_VP
             containerRegistry.RegisterDialog<CalculateOffsetU>();
             containerRegistry.RegisterDialog<VisionScriptPage>();
             containerRegistry.RegisterDialog<SelectCameraBrand>();
+            containerRegistry.RegisterDialog<AddLightController>();
             //**************************************************************************************
 
             // 注册 SQLSugar 客户端(单例模式)

+ 1 - 1
TeamAAS-VM/Core/Robots/XYZU_Robot.cs

@@ -413,7 +413,7 @@ namespace TeamAAS_VP.Core.Robots
                 Dictionary<string, object> keyValues = new Dictionary<string, object>();
 
                 // 1. 复位所有轴的开始移动命令
-                StopMove();
+                //StopMove();
 
                 keyValues = new Dictionary<string, object>();
                 foreach (var axis in Axes)