wanghan 7 ماه پیش
والد
کامیت
d868ef5851
1فایلهای تغییر یافته به همراه9 افزوده شده و 9 حذف شده
  1. 9 9
      TeamAAS-VM/Services/CameraCalibrationService.cs

+ 9 - 9
TeamAAS-VM/Services/CameraCalibrationService.cs

@@ -1038,7 +1038,7 @@ namespace TeamAAS_VP.Services
 
                 //移动机器人至中心位置
                 isSuccess= await robot.CalibMotionAsync(calibrationInfo.CenterPoint, null);
-                if (isSuccess)
+                if (!isSuccess)
                 {
                     return (false, null, null, null);
                 }
@@ -1071,7 +1071,7 @@ namespace TeamAAS_VP.Services
             {
                 //移动机器人至中心位置
                 isSuccess= await robot.CalibMotionAsync(calibrationInfo.CenterPoint, null);
-                if (isSuccess)
+                if (!isSuccess)
                 {
                     return (false, null, null, null);
                 }
@@ -1276,7 +1276,7 @@ namespace TeamAAS_VP.Services
             {
                 //移动机器人至中心位置
                 isSuccess= await robot.CalibMotionAsync(calibrationInfo.CenterPoint, null);
-                if (isSuccess)
+                if (!isSuccess)
                 {
                     return (false, null, null, null);
                 }
@@ -1306,7 +1306,7 @@ namespace TeamAAS_VP.Services
                 if (calibrationInfo.CameraMount == Enums.CameraMount.FixedDown)
                 {
                     isSuccess= await robot.CalibMotionAsync(rPoints[i], null);
-                    if (isSuccess)
+                    if (!isSuccess)
                     {
                         return (false, null, null, null);
                     }
@@ -1318,7 +1318,7 @@ namespace TeamAAS_VP.Services
                     await robot.CalibOutIOAsync(false);
                     //移动机器人至待机位置
                     isSuccess= await robot.CalibMotionAsync(calibrationInfo.HomePoint, null);
-                    if (isSuccess)
+                    if (!isSuccess)
                     {
                         return (false, null, null, null);
                     }
@@ -1326,7 +1326,7 @@ namespace TeamAAS_VP.Services
                 else
                 {
                     isSuccess= await robot.CalibMotionAsync(rPoints[i], rPoints[i].Z);
-                    if (isSuccess)
+                    if (!isSuccess)
                     {
                         return (false, null, null, null);
                     }
@@ -1349,7 +1349,7 @@ namespace TeamAAS_VP.Services
                 {
                     //移动机器人至i
                     isSuccess= await robot.CalibMotionAsync(rPoints[i], null);
-                    if (isSuccess)
+                    if (!isSuccess)
                     {
                         return (false, null, null, null);
                     }
@@ -1376,7 +1376,7 @@ namespace TeamAAS_VP.Services
             {
                 //移动机器人至待机位置
                 isSuccess= await robot.CalibMotionAsync(calibrationInfo.HomePoint, null);
-                if (isSuccess)
+                if (!isSuccess)
                 {
                     return (false, null, null, null);
                 }
@@ -1896,7 +1896,7 @@ namespace TeamAAS_VP.Services
 
             // 2.移动机器人至中心位置
             bool isSuccess = await robot.CalibMotionAsync(calibrationInfo.CenterPoint, null);
-            if (isSuccess)
+            if (!isSuccess)
             {
                 return (false, null, null);
             }