From aed059714fe9cfa344e22be1fe4abe883f454af5 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 10 五月 2024 14:13:31 +0800
Subject: [PATCH] #
---
src/assets/data/agv.js | 2 +-
src/components/agv.jsx | 13 +++++++------
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/assets/data/agv.js b/src/assets/data/agv.js
index 946b2ba..9c667d8 100644
--- a/src/assets/data/agv.js
+++ b/src/assets/data/agv.js
@@ -2,7 +2,7 @@
[
{
no: 1,
- position: [3300, 0, 100],
+ position: [2420, 0, 0],
theta: 90,
height: 1778,
loaderTheta: 0,
diff --git a/src/components/agv.jsx b/src/components/agv.jsx
index 9c74ec6..2253df5 100644
--- a/src/components/agv.jsx
+++ b/src/components/agv.jsx
@@ -87,22 +87,23 @@
}
const forkLengthFn = (forkLen, loaderAngle) => {
+ let maxVal = 800;
if (loaderAngle > 360 - 10 || loaderAngle < 0 + 10) {
-
+ maxVal = 1100;
}
if (loaderAngle > 180 - 10 && loaderAngle < 180 + 10) {
-
+ maxVal = 1100;
}
if (loaderAngle > 90 - 10 && loaderAngle < 90 + 10) {
-
+ maxVal = 800;
}
if (loaderAngle > 270 - 10 && loaderAngle < 270 + 10) {
-
+ maxVal = 800;
}
if (forkLen < 0) {
- return -800 * 0.077;
+ return -maxVal * 0.077;
} else if (forkLen > 0) {
- return 800 * 0.077;
+ return maxVal * 0.077;
} else {
return 0;
}
--
Gitblit v1.9.1