From efd99f2395add0e6004d6486f13a3ecd9499e159 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 09 五月 2024 13:40:01 +0800
Subject: [PATCH] #

---
 src/components/agv.jsx |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/components/agv.jsx b/src/components/agv.jsx
index 008b5c6..2930607 100644
--- a/src/components/agv.jsx
+++ b/src/components/agv.jsx
@@ -30,11 +30,12 @@
 }
 
 const getLoaderHasBox = (loaderAngle, finger1, finger2, finger3, finger4) => {
+    // console.log(loaderAngle, finger1, finger2, finger3, finger4);
     if (loaderAngle > 360 - 10 || loaderAngle < 0 + 10) {
-        return finger3 && finger4;
+        return finger1 && finger2;  // 鍙栬揣鏄鐨�
     }
     if (loaderAngle > 180 - 10 && loaderAngle < 180 + 10) {
-        return finger3 && finger4;
+        return finger3 && finger4;  // 鏀捐揣鏄鐨�
     }
     if (loaderAngle > 270 - 10 && loaderAngle < 270 + 10) {
         return finger1 && finger2;
@@ -50,7 +51,7 @@
     const theta = -props.theta;
     const height = props.height * 0.0655;
     const forkLength = props.forkLength * 0.1;
-    // console.log(props.forkLength);
+    console.log(props.forkLength);
     const loaderTheta = Number(props.loaderTheta?.toFixed(1));
 
     const [groupPos, setGroupPos] = useState({ x: 0, y: 0, z: 0 });

--
Gitblit v1.9.1