Ejemplo n.º 1
0
 public void SetAutoState(EnumAutoState autoState)
 {
     try
     {
         Agv.EnumAutoState localPackageAutoState = GetLocalPackageAutoStateFrom(autoState);
         string            errorMessage          = "";
         if (LocalPackage.MainFlowHandler.ChangeAutoManual(localPackageAutoState, ref errorMessage))
         {
             OnModeChangeEvent?.Invoke(this, autoState);
         }
         else
         {
             OnLogDebugEvent?.Invoke(this, new MessageHandlerArgs()
             {
                 ClassMethodName = GetType().Name + ":" + System.Reflection.MethodBase.GetCurrentMethod().Name,
                 Message         = $"LocalPackage.ChangeMode fail.[Error={errorMessage}]"
             });
         }
     }
     catch (Exception ex)
     {
         OnLogErrorEvent?.Invoke(this, new MessageHandlerArgs()
         {
             ClassMethodName = GetType().Name + ":" + System.Reflection.MethodBase.GetCurrentMethod().Name,
             Message         = ex.Message
         });
     }
 }
Ejemplo n.º 2
0
 private void MainFlowHandler_OnModeChangeEvent(object sender, Agv.EnumAutoState e)
 {
     Utmc.EnumAutoState autoState = GetAutoStateFromAgvAutoState(e);
     OnModeChangeEvent?.Invoke(sender, autoState);
 }
Ejemplo n.º 3
0
 public void SetAutoState(EnumAutoState autoState)
 {
     OnModeChangeEvent?.Invoke(this, autoState);
 }